body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #fdfaf5;
  color: #333;
}

header, footer {
  background-color: #e0d7c6;
  text-align: center;
  padding: 1.5rem;
}

.nav-container {
  background-color: #a08966;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-top: 0;
}

.nav-links {
  display: none;
  flex-direction: column;
  background-color: #a08966;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-top: 1px solid #d9c8b3;
  font-weight: bold;
}

.nav-links.show {
  display: flex;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: row;
  }
  .nav-links a {
    border-top: none;
  }
  .menu-toggle {
    display: none;
  }
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 2rem 1rem;
}

img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  break-inside: avoid;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.column {
  flex: 1;
}

@media (min-width: 768px) {
  .row {
    flex-direction: row;
  }
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.centrado {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.columnas-balanceadas {
  column-count: 2;
  column-gap: 2rem;
  column-rule: 1px solid #d9c8b3;
}

@media (max-width: 767px) {
  .columnas-balanceadas {
    column-count: 1;
  }
}

.frase-impacto {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  font-weight: normal;
  text-align: center;
  color: #6b4e2f;
  margin: 2rem auto;
  line-height: 1.4;
}

h2 {
  color: #6b4e2f;
}

.boton {
  display: inline-block;
  background-color: #6b4e2f;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: #8b5e3c;
}

.seccion-actualidad {
  margin: 4rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

/* NOTICIAS LISTADO */
.noticias-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .noticias-grid {
    grid-template-columns: 1fr;
  }
}

.noticia {
  background-color: #fff;
  border: 1px solid #e6dccc;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.noticia:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.noticia-imagen-link img {
  border-radius: 0;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.noticia-contenido {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.noticia-titulo {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #6b4e2f;
}

.noticia-titulo a {
  text-decoration: none;
  color: inherit;
}

.noticia-titulo a:hover {
  text-decoration: underline;
}

.noticia-fecha {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.noticia-extracto {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.boton-lectura {
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background-color: #a08966;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-lectura:hover {
  background-color: #6b4e2f;
}

/* NOTICIA INDIVIDUAL */
.noticia-detalle {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.noticia-detalle-titulo {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #6b4e2f;
}

.noticia-detalle-fecha {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.noticia-detalle-imagen {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem auto;
  display: block;
}

.noticia-detalle-excerpt {
  font-style: italic;
  color: #5f4a35;
  background-color: #f2ebe2;
  padding: 1rem;
  border-left: 4px solid #d4c1a5;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 650px;
}

.noticia-detalle-cuerpo {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
}

/* Botón volver a noticias */
.boton-volver {
  margin-top: 2rem;
  background-color: #6b4e2f;
  padding: 0.75rem 1.25rem;
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-volver:hover {
  background-color: #8b5e3c;
}

/* Sección de sugerencias de otras noticias */
.otras-noticias {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e6dccc;
}

/* CABECERA CON IMAGEN MEJORADA */
.hero-header {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border-radius: 0 !important;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-header {
    height: 300px;
  }

  .hero-img {
    height: 100%;
  }
}

.hero-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.hero-texto h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  line-height: 1.2;
}

.hero-texto p {
  font-size: 1.2rem;
  margin: 0.3rem 0;
  line-height: 1.4;
}

img.hero-img {
  border-radius: 0 !important;
}


/* ===== Footer: iconos en fila + tooltip ===== */

footer {
  text-align: center;
  color: #6b4e2f;
  font-size: 14px;
}

/* Contenedor en fila */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 10px;
}

/* Cada enlace actúa como “botón” con tooltip */
.footer-links a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #6b4e2f;
}

/* ---- Overrides para no heredar el estilo global de img ---- */
.footer-links img {
  width: 32px;
  height: auto;
  display: inline-block;          /* evita display:block del global */
  margin: 0;                      /* anula márgenes globales */
  border-radius: 0;               /* sin esquinas redondeadas */
  transition: transform 0.2s ease-in-out;
}


/* ===== Footer responsive (móvil) ===== */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;        /* uno debajo de otro */
    gap: 14px;                     /* espacio entre elementos */
    align-items: center;
  }

  /* Icono + “caption” centrados */
  .footer-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Haz el icono un pelín más grande en móvil (opcional) */
  footer .footer-links img {
  width: 40px !important;   /* mismo ancho para todos */
  height: auto !important;  /* respeta proporciones */
  max-height: 40px;         /* evita que uno quede desproporcionado */
  transform: none !important;
}

  /* El tooltip pasa a ser un caption visible bajo el icono */
  .footer-links .tooltip {
    visibility: visible;
    opacity: 1;
    position: static;              /* deja de ser absolute */
    bottom: auto;
    left: auto;
    transform: none;
    background: transparent;       /* sin fondo para parecer texto normal */
    color: #6b4e2f;
    padding: 6px 0 0;
    border-radius: 0;
    white-space: normal;           /* por si necesita saltos de línea */
    text-align: center;
  }
}
