/* --- Estilos base --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 120px; /* espacio para que no se tape el contenido */
  background-color: #f8f8f8;
  color: #333;
  accent-color: #7eb7b4;
  overflow-x: hidden;
}

section {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  padding-top: 10px;
}

li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f9f9f9;
  color: #444;
}

footer .redes {
  margin-top: 0.5rem;
}

footer .redes a {
  margin: 0 0.5rem;
  display: inline-block;
  transition: transform 0.3s;
}

footer .redes a:hover {
  transform: scale(1.2);
}

.footer-iconos a,
.footer-iconos svg {
  color: #7eb7b4;
  fill: #7eb7b4;
}

/* --- Tarjetas miembros --- */
.tarjetas-miembros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tarjeta {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
  border: 2px solid #7eb7b4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tarjeta img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tarjeta:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.info-adicional {
  display: none;
  margin-top: 10px;
}

.info-adicional ul {
  padding-left: 20px;
  margin-top: 10px;
}

/* --- Biblioteca --- */
.biblioteca-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
}

.imagen-biblioteca {
  max-width: 100%;
  margin-bottom: 2rem;
}

.imagen-biblioteca img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.biblioteca-section p {
  margin: 1rem 0;
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 800px;
}

.btn-biblioteca {
  text-decoration: none;
  color: white;
  background-color: #7eb7b4;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.btn-biblioteca:hover {
  background-color: #5a9b98;
}

/* --- Header y Navbar --- */
.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
  background-color: white;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header-grid img {
  max-width: 150px;
  height: auto;
}

.header-grid h1 {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 2rem;
}

.nav-derecha {
  display: flex;
  gap: 15px;
  list-style: none;
}

.nav-derecha a {
  display: block;
  background-color: #7eb7b4;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-derecha a:hover {
  background-color: #5a9b98;
}

/* --- Bloques explicativos --- */
.bloques-explicativos {
  max-width: 1100px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 1rem;
}

.bloque {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.bloque:nth-child(even) {
  flex-direction: row-reverse;
}

.bloque img {
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.bloque .texto {
  flex: 1 1 300px;
  min-width: 280px;
}

/* --- Galería de publicaciones --- */
.galeria-publicaciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.tarjeta-publicacion {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta-publicacion:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tarjeta-publicacion h3 {
  margin-bottom: 0.5rem;
}

.tarjeta-publicacion p {
  color: #444;
  line-height: 1.4;
  flex-grow: 1;
}

/* --- Menú lateral --- */
.menu-lateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  overflow-x: hidden;
  transition: width 0.3s ease;
  z-index: 1000;
}

.menu-lateral.abierto {
  width: 300px;
}

.menu-contenido {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #fff;
  padding: 1rem;
  box-sizing: border-box;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #000;
}

.imagenes-galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.imagenes-galeria img {
  width: 100px;
  height: auto;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.imagenes-galeria img:hover {
  transform: scale(1.1);
}

/* --- Intro animada --- */
.intro {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 2rem;
  max-width: 700px;
  margin: 3rem auto 2rem auto;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

.intro h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Media queries --- */
@media (max-width: 1024px) {
  .galeria-publicaciones {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 180px; /* ajusta según header apilado */
  }

  .header-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .header-grid img {
    max-width: 120px;
    order: 0;
  }

  .header-grid h1 {
    font-size: 1.5rem;
    order: 1;
    margin: 10px 0;
  }

  .nav-derecha {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-derecha ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  .bloque {
    flex-direction: column !important;
    align-items: center;
    gap: 1rem;
  }

  .bloque img,
  .bloque .texto {
    flex: none !important;
    max-width: 100%;
    width: 100%;
  }

  .bloque .texto {
    text-align: center;
  }

  section {
    padding: 1rem !important;
  }

  .galeria-publicaciones {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .galeria-publicaciones {
    grid-template-columns: 1fr;
  }

  #biblioteca .logo-nav,
  #miembros .logo-nav {
    display: none !important;
  }

  #inicio > *:not(.logo-nav) {
    display: none !important;
  }

  #inicio .logo-nav {
    display: block !important;
  }
}

#menuOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  z-index: 999;
}

#menuOverlay.abierto {
  display: block;
}

#menuLateral {
  z-index: 1000;
}

#abrirMenu {
  z-index: 1000;
  position: relative; /* si no tiene ya */
}

.imagenes-galeria {
  display: flex;
  flex-direction: column; /* ahora en columna */
  gap: 15px;              /* espacio entre imágenes */
  margin-top: 2rem;
  align-items: center;     /* centradas horizontalmente */
}

.imagenes-galeria img {
  width: 90%;       /* ocupan casi todo el ancho de la barra */
  height: auto;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.imagenes-galeria img:hover {
  transform: scale(1.05); /* un poco de efecto al pasar el mouse */
}

.menu-lateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: transparent; /* overlay transparente, el negro lo dejamos solo en menuOverlay */
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1000;
}

.menu-lateral.abierto {
  width: 300px;
}

.menu-contenido {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #fff;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto; /* ahora sí se puede scrollear y siempre se ve blanco de fondo */
}

  /*Carrusel biblioteca*/
 .carrusel-biblioteca {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.carrusel-biblioteca img {
  flex: 0 0 auto;
  width: auto; /* ancho fijo para cada imagen */
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.carrusel-biblioteca img:hover {
  transform: scale(1.05);
}

.carrusel-btn {
  background-color: #7eb7b4;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 0px;
  transition: 0.2s;
}

.carrusel-btn:hover {
  background-color: #5a9b98;
}

.carrusel-biblioteca {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* habilita el “snap” horizontal */
  scroll-behavior: smooth;
  gap: 10px;
  padding: 1rem 0;
}

.carrusel-biblioteca img {
  flex: 0 0 90%; /* cada imagen ocupa casi todo el ancho */
  height: 400px; /* alto fijo */
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start; /* alinea el inicio de la imagen al hacer scroll */
  transition: transform 0.3s;
  cursor: pointer;
}

.carrusel-biblioteca img:hover {
  transform: scale(1.05);
}

.carrusel-biblioteca {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 10px;
  padding: 1rem 0;
}

.carrusel-biblioteca img {
  flex: 0 0 90%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s;
}

.carrusel-biblioteca img:hover {
  transform: scale(1.05);
}

.carrusel-biblioteca {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; /* engancha a cada slide */
  width: 100%;
}

.slide {
  flex: 0 0 100%; /* cada slide ocupa toda la vista horizontal */
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.carrusel-biblioteca {
  display: flex;
  overflow: hidden; /* oculta scrollbar */
  gap: 10px;
  padding: 1rem 0;
}


.carrusel-biblioteca img {
  flex: 0 0 60%; /* ancho de cada imagen principal */
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.carrusel-biblioteca img:hover {
  transform: scale(1.05);
}

.carrusel-biblioteca-container {
  position: relative;
  width: 100%;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background-color 0.2s;
}

.carrusel-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.carrusel-biblioteca {
  display: flex;
  overflow: hidden; /* Oculta lo que sobra */
  scroll-behavior: smooth;
}

.carrusel-biblioteca img {
  flex: 0 0 100%; /* Cada imagen ocupa todo el ancho visible */
  height: 400px;  /* ajusta según quieras */
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.carrusel-biblioteca {
  display: flex;
  overflow-x: hidden; /* ocultamos scroll */
  gap: 10px;
  padding: 1rem 0;
}

.carrusel-biblioteca img {
  max-width: 100%;    /* nunca más ancho que el contenedor */
  max-height: 400px;  /* límite de altura */
  object-fit: contain; /* mantiene proporción completa */
  border-radius: 10px;
  cursor: pointer;
}

/* --- Estilos base --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 120px; /* espacio para header fijo */
  background-color: #f8f8f8;
  color: #333;
  accent-color: #7eb7b4;
  overflow-x: hidden;
}

section {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  padding-top: 10px;
}

li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f9f9f9;
  color: #444;
}

footer .redes {
  margin-top: 0.5rem;
}

footer .redes a {
  margin: 0 0.5rem;
  display: inline-block;
  transition: transform 0.3s;
}

footer .redes a:hover {
  transform: scale(1.2);
}

.footer-iconos a,
.footer-iconos svg {
  color: #7eb7b4;
  fill: #7eb7b4;
}

/* --- Tarjetas miembros --- */
.tarjetas-miembros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tarjeta {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
  border: 2px solid #7eb7b4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tarjeta img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tarjeta:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.info-adicional {
  display: none;
  margin-top: 10px;
}

.info-adicional ul {
  padding-left: 20px;
  margin-top: 10px;
}

/* --- Header y Navbar --- */
.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
  background-color: white;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header-grid img {
  max-width: 150px;
  height: auto;
}

.nav-derecha {
  display: flex;
  gap: 15px;
  list-style: none;
}

.nav-derecha a {
  display: block;
  background-color: #7eb7b4;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-derecha a:hover {
  background-color: #5a9b98;
}

/* --- Bloques explicativos --- */
.bloques-explicativos {
  max-width: 1100px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 1rem;
}

.bloque {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.bloque:nth-child(even) {
  flex-direction: row-reverse;
}

.bloque img {
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.bloque .texto {
  flex: 1 1 300px;
  min-width: 280px;
}

/* --- Galería de publicaciones --- */
.galeria-publicaciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* --- Menú lateral --- */
.menu-lateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: transparent; 
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1000;
}

.menu-lateral.abierto {
  width: 300px;
}

.menu-contenido {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #fff;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

#menuOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  z-index: 999;
}

#menuOverlay.abierto {
  display: block;
}

/* --- Carrusel Biblioteca --- */
.carrusel-biblioteca-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.carrusel-biblioteca {
  display: flex;
  overflow-x: hidden; /* ocultamos scrollbar */
  gap: 10px;
  scroll-behavior: smooth;
}

.carrusel-biblioteca img {
  flex: 0 0 90%; /* ancho principal */
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.carrusel-biblioteca img:hover {
  transform: scale(1.05);
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background-color 0.2s;
}

.carrusel-btn.izquierda {
  left: 10px;
}

.carrusel-btn.derecha {
  right: 10px;
}

.carrusel-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

/* --- Media queries --- */
@media (max-width: 1024px) {
  .galeria-publicaciones {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 180px; /* header apilado */
  }

  .header-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .header-grid img {
    max-width: 120px;
  }

  .nav-derecha {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .bloque {
    flex-direction: column !important;
    align-items: center;
    gap: 1rem;
  }

  .bloque img,
  .bloque .texto {
    flex: none !important;
    max-width: 100%;
    width: 100%;
  }

  .bloque .texto {
    text-align: center;
  }

  section {
    padding: 1rem !important;
  }

  .galeria-publicaciones {
    grid-template-columns: repeat(2, 1fr);
  }

  .carrusel-biblioteca img {
    flex: 0 0 95%;
    max-height: 300px;
  }
}

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

  .carrusel-biblioteca img {
    flex: 0 0 100%;
    max-height: 250px;
  }

  .nav-derecha a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Botón hamburguesa */
#abrirMenu {
  display: none;
  background-color: #7eb7b4;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Nav por defecto oculto en móviles */
.nav-derecha {
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  #abrirMenu {
    display: block;
  }

  .nav-derecha {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: white;
    flex-direction: column;
    padding-top: 60px;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav-derecha.abierto {
    right: 0;
  }
}


  /* --- Nav principal --- */
.nav-derecha {
  display: flex;
  gap: 15px;
  list-style: none;
}

.nav-derecha a {
  display: block;
  background-color: #7eb7b4;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-derecha a:hover {
  background-color: #5a9b98;
}

/* --- Nav hamburguesa en móvil --- */
@media (max-width: 768px) {
  .nav-derecha {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* oculto por defecto */
    height: 100%;
    width: 200px;
    background-color: #ffffff00;
    padding-top: 80px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0);
    z-index: 999;
  }

  .nav-derecha.abierto {
    right: 0; /* se muestra al abrir */
  }

  #abrirMenu {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
  }
}

.btn-hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-hamburguesa span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .btn-hamburguesa {
    display: flex;
  }
}

/* Por defecto en pantallas chicas, la navbar está oculta */
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background: #fff;  /* podés cambiar el color */
    position: absolute;
    top: 60px; /* altura del header */
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .navbar ul.abierto {
    display: flex;
  }
}

/* Estilo básico del botón */
.hamburguesa {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* oculto por defecto */
  margin-left: auto; /* empuja la nav a la derecha */
}

/* Solo mostrar en pantallas chicas */
@media (max-width: 768px) {
  .hamburguesa {
    display: block;
  }

  .nav-derecha {
    display: none; /* ocultar nav por defecto en mobile */
    flex-direction: column;
    position: absolute;
    top: 60px; /* debajo del header */
    right: 10px;
    background: rgba(255, 255, 255, 0);
    padding: 10px;
  }

  .nav-derecha.abierto {
    display: flex;
  }
}

.nav-derecha.abierto {
  background: rgba(255, 255, 255, 0); /* blanco semi-transparente, podés cambiar color */
  position: absolute; /* para que quede encima de todo */
  top: auto;
  right: 0;
  z-index: 1001; /* mayor que el menú lateral (por ejemplo 1000) */
}

/* Menú hamburguesa */
#menuHamburguesa {
  z-index: 1000; /* debajo del nav cuando este abierto */
}
.biblioteca p {
  text-align: center;
}

.btn-biblioteca {
  display: inline-block; /* para que respete el centrado */
}
.carrusel-biblioteca {
  display: flex;
  align-items: center; /* opcional, centra verticalmente si querés */
  overflow-x: auto; /* ya lo tenés para scroll */
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;      /* Firefox */
}

.carrusel-biblioteca img {
  flex-shrink: 0; /* evita que la imagen se achique */
  max-width: 100%; /* se adapta al contenedor si es necesario */
  margin: 0 10px; /* separa un poquito entre imágenes */
}


.carrusel-biblioteca::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.carrusel-biblioteca {
  scroll-snap-type: x mandatory;
}

.carrusel-biblioteca img {
  scroll-snap-align: center;
}

.carrusel-biblioteca {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
}

.carrusel-biblioteca img {
  flex: 0 0 1920px; /* ancho fijo 1080p horizontal completo */
  height: 1080px;   /* alto fijo 1080p */
  object-fit: contain; /* mantiene proporción */
  background-color: rgba(0, 0, 0, 0.349); /* relleno negro semi-transparente */
  border-radius: 10px;
}

.miembros-asociados {
  margin-top: 2rem;
  font-size: 1rem;
  color: #555;
}

.miembros-asociados h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #333;
}
