@font-face {
  font-family: 'FuenteChewy';
  src: url('Fuentes/Header.ttf') format('truetype');
}

@font-face {
  font-family: 'FuenteBricolage_Grotesque';
  src: url('Fuentes/Fuente Body.ttf') format('truetype');
}

@font-face {
  font-family: 'FuenteLate';
  src: url('Fuentes/Fuentenosotros.ttf') format('truetype');
}

@font-face {
  font-family: 'FuenteCaveat';
  src: url('Fuentes/Caveat.ttf') format('truetype');
}

@font-face {
  font-family: 'FuenteBreeSerif-Regular';
  src: url('Fuentes/Fuentebody.ttf') format('truetype');
}

main {
  padding: 2em 0;
}

header {
  background-color: transparent;
  color: #380c1f;
  padding: 1em 0;
  font-family: 'FuenteChewy', sans-serif;
  position: relative;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.logo img {
  height: 200px;
}

.logo span {
  font-size: 4.0em;
  font-weight: bold;
  color: #380c1f;
  text-shadow:
    -2px -2px 0 #ffe844,
     2px -2px 0 #ffe844,
    -2px  2px 0 #ffe844,
     2px  2px 0 #ffe844,
    -2px  0px 0 #ffe844,
     2px  0px 0 #ffe844,
     0px -2px 0 #ffe844,
     0px  2px 0 #ffe844;
}

.logo a {
  display: inline-flex; /* importante */
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: inherit;
}

.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:active {
  text-decoration: none;
  color: inherit;
}

/* Ajustes finales para móviles */
@media (max-width: 1024px) {
  .nav-links a {
    text-decoration: none !important;
    pointer-events: auto;
  }

  .logo a {
    text-decoration: none !important;
    pointer-events: auto;
  }
}

/* NAV LINKS - VERSIÓN ESCRITORIO */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #ffe844;
  background-color: #380c1f;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.6em;
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 20px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
  text-decoration: underline;
  color: #ffe844;
}

/* HAMBURGER ICON (oculto en escritorio) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background-color: #380c1f;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #ffe946;
  border-radius: 2px;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1em;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'FuenteBreeSerif-Regular';
  color: #380c1f;
}

body.pagina-inicio {
  background-image: url("Multimedia/Puntos1.webp");
  background-repeat: repeat;
  background-size: 500px auto;
  background-color: #ffe946;
}

.container_inicio {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1em;
  box-sizing: border-box;
}

.container_inicio h1 {
  font-size: 10.5rem;
  font-family: 'FuenteChewy';
  color: #380c1f;
  text-align: center;
  margin: 1px;
  margin-top: -0.2em;
  margin-bottom: 0.2em;  
  text-shadow:
    -2px -2px 0 #ffe844,
     2px -2px 0 #ffe844,
    -2px  2px 0 #ffe844,
     2px  2px 0 #ffe844,
    -2px  0px 0 #ffe844,
     2px  0px 0 #ffe844,
     0px -2px 0 #ffe844,
     0px  2px 0 #ffe844;
}

.container_inicio h2 {
  font-size: 4.5rem;
  font-family: 'FuenteBreeSerif-Regular';
  color: #380c1f;
  text-align: center;
  margin: 1px;
  margin-top: -0.5em;
  margin-bottom: 0.5em;
  text-shadow:
    -2px -2px 0 #ffe844,
     2px -2px 0 #ffe844,
    -2px  2px 0 #ffe844,
     2px  2px 0 #ffe844,
    -2px  0px 0 #ffe844,
     2px  0px 0 #ffe844,
     0px -2px 0 #ffe844,
     0px  2px 0 #ffe844;
}

.container_redes-sociales-inicio {
  display: flex;
  justify-content: center;
  font-size: 4.0rem;
  gap: 1em;
  margin-top: 1em;
}

.iconos-redes-inicio {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  margin-top: 1em;
}

.icono-red-social {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.icono-red-social:hover {
  transform: scale(1.1);
}

body.pagina-capitulos {
  background-image: url("Multimedia/Libros cayendo.webp");
  background-repeat: repeat;
  background-size: 500px auto;
  background-color: #f2ecd1;
}

#buscador {
  width: 100%;
  max-width: 400px;
  padding: 0.75em 1em;
  font-size: 1rem;
  border: 2px solid #380c1f;
  border-radius: 8px;
  outline: none;
  margin: 0 0 2em auto;
  display: block;
  background-color: #f8f8f8;
  color: #333;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.grid-capitulos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
  margin: 2em auto 0 auto;
  max-width: 1200px;
  padding: 0 1em;
  box-sizing: border-box;
}

.capitulo {
  display: flex;
  flex-direction: column;
  gap: 1em;
  background-color: #CD7F32;
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.capitulo-img {
  width: 230px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 4px solid #380c1f;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capitulo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.capitulo-contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  font-size: 0.85rem;
}

.capitulo-contenido p {
  line-height: 1.3;
  margin: 0.3em 0;
}

.capitulo-contenido h3 {
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}

.bloque-enlaces {
  margin-bottom: 0.8em;
}

.bloque-enlaces h4 {
  margin: 0.3em 0;
  font-size: 1em;
  color: #380c1f;
}

.linea-divisoria {
  height: 1px;
  background-color: #ccc;
  margin: 0.1em 0;
}

.boton {
  display: inline-block;
  margin: 0.3em 0.5em 0 0;
  padding: 0.4em 1em;
  background-color: #380c1f;
  color: #ffe844;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: #2a0917;
}

.boton-leer {
  background-color: #ffe844;
  color: #380c1f;
  font-weight: bold;
  margin-top: 1em;
}

.boton-leer:hover {
  background-color: #ffdf2f;
}

/* RESPONSIVE GRIDS */
@media (max-width: 1024px) {
  .grid-capitulos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin: 2em 0;
  font-family: 'FuenteBreeSerif-Regular', sans-serif;
}

.paginacion button {
  background-color: #380c1f;
  color: #ffe844;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1em;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.paginacion button:hover {
  background-color: #2a0917;
}

.paginacion span {
  display: inline-block;
  min-width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border: 2px solid #380c1f;
  border-radius: 8px;
  background-color: #380c1f;
  color: #ffe844;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.paginacion .numero-pagina.activa {
  background-color: #ffe844;
  color: #380c1f;
}

.paginacion .numero-pagina:hover {
  background-color: #2a0917;
  color: #ffe844;
}

@media (max-width: 768px) {
  .grid-capitulos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-capitulos {
    grid-template-columns: 1fr;
  }
}

body.pagina-nosotros {
  background-color: #000;
  color: #fff;
}

.equipo {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 2em;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.integrante {
  display: flex;
  flex-direction: row;
  background-color: transparent;
  border-radius: 10px;
  overflow: hidden;
  align-items: flex-start;
  padding: 1em;
  gap: 4em;
  border: 1px solid rgba(255, 233, 70, 0.8);
  position: relative;
}

.integrante img {
  width: 100%;
  max-width: min(530px, 90vw);
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
}

.integrante-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-right: 2.5em;
}

.texto-biografia {
  flex-grow: 1;
}

.integrante r {
  margin: 0.2em 0;
  line-height: 2.0;
  color: #ffe844;
  font-size: 3.5em;
  font-family: 'FuenteChewy', sans-serif;
}

.integrante p {
  margin: 0.2em 0;
  line-height: 1.3;
  color: #FFFFFF;
  font-size: 2.5em;
  font-family: 'FuenteCaveat';
}

.redes-integrante {
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
  margin-top: 1em;
}

.redes-integrante img {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

.redes-integrante a:hover img {
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .integrante {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
    width: 100%;
  }

  .integrante img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .integrante-texto {
    margin-top: 0.5em;
    padding: 0 1em;
    box-sizing: border-box;
    max-width: 100%;
  }

  .integrante r {
    font-size: clamp(1.8em, 4vw, 2em);
  }

  .integrante p {
    font-size: clamp(1.2em, 3.5vw, 1.5em);
  }
    .redes-integrante {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 1em;
  }

  .redes-integrante img {
    width: 48px;
    height: 48px;
  }
}

body.pagina-contacto {
  background-image: url("Multimedia/Preguntas negras.png");
  background-repeat: repeat;
  background-size: 500px auto;
  background-color: #808080;
}

.formulario-externo {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffe844;
  border-radius: 15px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.formulario-externo iframe {
  display: block;
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
}

.formulario-externo iframe {
  border: none;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container h5 {
  font-size: 10.5rem;
  color: #380c1f;
  text-align: center;
  margin-bottom: 1em;
  font-family: 'FuenteChewy';
  text-shadow:
    -2px -2px 0 #ffe844,
     2px -2px 0 #ffe844,
    -2px  2px 0 #ffe844,
     2px  2px 0 #ffe844,
    -2px  0px 0 #ffe844,
     2px  0px 0 #ffe844,
     0px -2px 0 #ffe844,
     0px  2px 0 #ffe844;
}

body.pagina-proximamente {
  background-color: #ffe946;
  background-image: url("Multimedia/Puntos1.png");
  background-repeat: repeat;
  background-size: 400px auto;
  font-family: 'FuenteChewy', sans-serif;
  color: #380c1f;
}

.proximamente-container {
  text-align: center;
  padding: 4em 1em;
}

.proximamente-container h1 {
  font-size: 5rem;
  margin-bottom: 1em;
  text-shadow:
    -2px -2px 0 #ffe844,
     2px -2px 0 #ffe844,
    -2px  2px 0 #ffe844,
     2px  2px 0 #ffe844,
    -2px  0px 0 #ffe844,
     2px  0px 0 #ffe844,
     0px -2px 0 #ffe844,
     0px  2px 0 #ffe844;
}

.proximamente-container p {
  font-size: 2.5rem;
  margin-top: 1em;
  font-family: 'FuenteBreeSerif-Regular';
}

.proximamente-img {
  max-width: 300px;
  width: 80%;
  height: auto;
  border: 5px solid #380c1f;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .proximamente-container h1 {
    font-size: 3rem;
  }
  .proximamente-container p {
    font-size: 1.8rem;
  }
}

footer {
  background-color: #380c1f;
  color: #ffe844;
  text-align: center;
  padding: 1em 0;
  margin-top: 2em;
}

.footer-redes {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
}

.footer-redes a {
  display: inline-block;
}

.icono-footer {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease-in-out;
}

.icono-footer:hover {
  transform: scale(1.2);
}

/* ===============================
   RESPONSIVE PARA MÓVILES
   =============================== */
@media (max-width: 1024px) {

  /* Mostrar el icono hamburguesa */
  .hamburger {
    display: flex;
  }

  /* Menú oculto por defecto en móviles */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1em;
    background-color: #380c1f;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 1em;
    border-radius: 10px;
    z-index: 999;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Cuando está activo */
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.2em;
    background-color: #380c1f;
    color: #ffe844;
  }

  /* Ajuste del título principal */
  .container_inicio h1 {
    font-size: 3rem;
    padding: 0 0.5em;
  }

  .container_inicio h2 {
    font-size: 2rem;
  }

  .logo img {
    height: 100px;
  }

  .logo span {
  font-size: 3.0em;
  }
}