body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  background-color: #0F4A4D;
  
  overflow-x: hidden;
}


/* Menú navegación (pantallas grandes) */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 1.5rem;
  right: 1rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #9AE2D9;
}
.nav-container {
  background-color: #19535A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem 4rem;
  position: relative;
}

/* Logo pequeño (esquina superior izquierda) */
.nav-logo {
  position: absolute;
  top: 1.5rem;
  left: 1rem;
  width: 140px;
}

/* Botón de menú (esquina superior derecha) */
.menu-button {
  display: none; /* Oculta en escritorio */
}


.menu-button:hover img {
  transform: scale(1.1);
}


.instructions {
  margin-top: 3rem;         
  color: #77d7cd;                /* Texto blanco */
  font-size: 2.5rem;  
  font-weight: bold;         /* Tamaño legible */
  align-items: center;         /* Centrado interno */
  justify-content: center;
  padding: 2 0px;
  text-align: center;
  display: flex; /* Usamos flex para alinear */
  
}

.fanzines-title {
  margin-top: 4rem;
  text-align: center;
  color: #ffff;
  font-size: 2.5rem;
}
.fanzine-sections {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.fanzine-item {
  width: 250px;
  text-align: center;
  background: #1A5C5F;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.fanzine-item img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.fanzine-item h2 {
  font-size: 2rem;
  color: #ffff;
  margin-bottom: 1rem;
}
.fanzine-item h3 {
  font-size: 24px;
  color: #05445e;
  margin-bottom: 10px;
}

.fanzine-item p {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.fanzine-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  cursor: pointer;
}

.icono-base {
  width: 130%;
  height: 130%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.fanzine-hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
  
}

.fanzine-icon:hover .fanzine-hover-image {
  opacity: 1;
}

.btn-conoce-mas img {
  width: 200px; /* Puedes ajustar este tamaño */
  height: auto;
  display: inline-block;
}

.btn-conoce-mas {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* === FANZINE POPUP === */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 74, 77, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup.hidden {
  display: none;
}

.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: -30px;
  right: -30px;
  background: none;
  border: none;
  cursor: pointer;
}

.close-btn img {
  width: 40px;
}

.next-btn {
  margin-top: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.next-btn img {
  width: 60px;
}

/* Estilos del menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #9AE2D9;
  color: #19535A;
  font-family: 'bd-supper', sans-serif;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse; /* Esto invierte el orden: logo a la derecha */
}

.menu-logo {
  height: 50px;
  margin-left: auto; /* asegura que quede a la derecha */
}

.close-button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin-right: auto; /* asegura que quede a la izquierda */
}

.close-button img {
  width: 100%;
  height: auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #9AE2D9;
  color: #19535A;
  font-family: 'bd-supper', sans-serif;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.menu-header {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  flex-direction: row; 
  padding: 0 0.5rem;
}

.menu-logo {
  height: 50px;
}

.close-button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.close-button img {
  width: 100%;
  height: auto;
}

/* Estilo de enlaces */
.menu-links {
  list-style: none;
  margin-top: 2rem;
  padding: 0;
  font-size: 1.7rem; /* Más grande */
  font-weight: bold; /* En negrita */
  font-family: 'bd-supper', sans-serif;
}
.menu-links a,
.menu-links span {
  color: #19535A;
  text-decoration: none;
  display: block;
  font-size: inherit;
  font-weight: inherit;
}

.menu-links li {
  margin-bottom: 1rem;
}



/* Submenú */
.submenu-items {
  padding-left: 1rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.submenu-items li {
  margin-bottom: 0.5rem;
}

.footer {
  background: #19535A;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}


.alianzaBio {
  font-family: 'Poppins', sans-serif;
   font-weight: bold;
  color: #ffffff;
  font-size: 1.8rem;
  width: 100%;
  right: 3rem;
  text-align: center;
  margin: 0 8% 20px 0;
  position: relative;
  z-index: 1;
}

.image-Container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem auto;
  max-width: 1000px;
}

.image-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 80%;
}

.image-item img {
  max-width: 80px;
  height: auto;
  flex: 1 1 calc(25% - 1rem); /* 4 logos por fila con espacio entre ellos */
}

.ConoceAB {
  color: #77d7cd;
  width: 80%;
  text-align: left;
  margin: 20px auto;
  line-height: 1.5;
  padding: 15px;
  display: block;
  text-decoration: none; /* Quita subrayado */
  font-weight: bold; /* Opcional, si quieres que sea en negrita */
}

.ConoceAB:hover {
  text-decoration: none; /* Efecto al pasar el mouse */
}

/* Posicionamiento de la imagen */
.alianzaBioIMG {
  display: block;
  margin: 1rem auto; /* centra horizontalmente */
  max-width: 200px;
  height: auto;
}



.Ecos {
  font-family: 'Poppins', sans-serif;
  color: #9b9b98;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 20px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .nav-logo {
    width: 100px;
  }

  .main-logo {
    width: 90vw;
  }

  .intro-text {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .alianzaBio {
    font-size: 1.4rem;
  }

  .image-item img {
    max-width: 60px;
  }

  .alianzaBioIMG {
    max-width: 180px;
  }

  
  .nav-links {
    display: none; /* Oculta menú en móviles */
  }

 .fanzine-sections {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2rem;
  }

  .fanzine-item {
    width: 220px; /* Ajusta si lo ves muy grande o pequeño */
    text-align: center;
  }

  .btn-conoce-mas img {
    width: 100px; /* Tamaño más pequeño del botón */
  }
  /* Botón de menú (esquina superior derecha) */
.menu-button {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }

  .menu-button img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
  }

}