html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: scroll;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Bebas Neue', sans-serif;
  background-color: #088a38;
  transition: background-color 0.5s linear;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

/*Fondo secundario*/
.fondo-secuencial img {
  width: 100%;
  display: block;
  filter: brightness(0) saturate(100%) invert(8%) sepia(24%) saturate(1500%) hue-rotate(95deg) brightness(50%) contrast(90%);
}

.fondo-secundario {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('img/fondo_01.png');
  background-size: cover;
  background-attachment: scroll;
  background-position: center top;
  opacity: 0.3;
  z-index: -1; /* Detrás del contenido */
}

.fondo-secuencial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.fondo-secuencial img {
  width: 100%;
  display: block;
}

.difuminada {
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/*Hata aqui*/

.anim-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.anim-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/*Animación entrada*/

.navbar a.activo {
  color: #088a38; /* amarillo, por ejemplo */
  font-weight: bold;
  text-decoration: underline;
}


.navbar {
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5vw 2.7vw;
  z-index: 1000;
  transition: transform 0.4s ease, background-color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4vw;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: clamp(14px, 1.2vw, 18px);
  text-transform: uppercase;
  letter-spacing: clamp(0.8px, 0.1vw, 1.5px);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: clamp(-3px, -0.3vw, -4px);
  left: 0;
  width: 0%;
  height: clamp(1px, 0.15vw, 2px);
  background-color: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.progress-bar {
  width: 13vw;
  height: 0.4vw;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.2vw;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.progress {
  height: 100%;
  width: 0%;
  background-color: white;
  transition: width 0.2s ease-out;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.35);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar.hidden:hover {
  transform: translateY(0);
}

.nav-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5vw;
  width: 100%;
  z-index: 999;
}

.contenido {
  width: 90vw;
  max-width: 65vw;
  margin: 0 auto;
  padding-top: 7vw;
}

.titulo {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding-top: 8vw;
}

.titulo h1 {
  font-size: clamp(32px, 6vw, 90px);
  color: rgb(0, 0, 0); /*CAMBIAAAAAAAAAAAAAAAAAAAAR a blanco*/
  padding: 0 2vw;
}

.texto-curaduria {
  margin-top: 30vw;
  margin-bottom: 60vw;
  margin-left: auto;
  margin-right: auto;
  max-width: 65vw;
  padding: 0 1vw;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.6;
  color: white;
  text-align: justify;
  text-align-last: center;
  font-weight: normal;
  border: 1px solid rgb(255, 255, 255);
}

.fecha-evento {
  margin-top: 10vw;
  margin-bottom: 10vw;
  text-align: center;
}


.fecha {
  display: inline-block;
  background-color: white;
  color: #2b2b2b;
  padding: 1vw 3vw;
  border-radius: 2vw;
  font-weight: bold;
  font-size: clamp(14px, 1.3vw, 22px);
  font-family: 'Courier New', Courier, monospace;
}

.texto {
margin-top: clamp(20px, 4vw, 60px);
margin-bottom: clamp(20px, 4vw, 60px);
  margin-left: auto;
  margin-right: auto;
  max-width: 65vw;
  padding: 0 1vw;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.6;
  color: white;
  text-align: justify;
  text-align-last: center;
  font-weight: normal;
}
.subtexto {
  margin-top: 1vw;
  margin-bottom: 1vw;
  margin-left: auto;
  margin-right: auto;
  max-width: 65vw;
  padding: 0 2vw;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.6;
  color: white;
  text-align: justify;
  text-align-last: center;
  font-weight: normal;
}

.boton-evento {
  margin-top: 30px;
  text-align: center;
}

.fecha-sola {
  margin-top: 15vw;
  margin-bottom: 15vw;
  text-align: center;
}

.fecha-sola-sola {
  color: #ffffff;
  font-weight: bold;
  font-size: clamp(16px, 2.2vw, 36px);
  font-family: 'Courier New', Courier, monospace;
}

.imagen {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 400px;
}

/* ESTILOS GENERALES DE LA FLIP CARD */
.flip-card {
  width: 65vw;
  height: 55vw;
  margin: 1vw auto;
  perspective: 65vw;
  cursor: pointer;
  position: relative;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

/* CARAS (FRONTAL Y TRASERA) */
.flip-front,
.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}
.carousel button {
  pointer-events: auto;
  z-index: 100;
}

.flip-back .carousel * {
  pointer-events: auto;
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flip-back {
  color: white;
  transform: rotateY(180deg);
}

/* CONTENEDOR DEL REVERSO */
.flip-back-content {
  width: 100%;
  height: 80%; 
  max-width: 60vw;
  max-height: 70vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(0.5em, 1vw, 1em);
  margin: 0 auto;
  padding: 0.1em;
  border-radius: clamp(0.3em, 0.5vw, 0.8em);
  background-color: #222;
  overflow: auto;
}

/* Videooooo flip*/

.flip-back-content.video-content {
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Alinea contenido arriba */
  align-items: center;
  text-align: center;
  gap: 0.5em;
  padding: 1em;
  background-color: #222;
  border-radius: 0.3em;
  overflow: hidden;
}

/* Contenedor del video */
.video-container {
  width: 75%; 
  height: 65vh; 
  min-height: 250px;
  max-height: 400px;
  margin: 0.5em 0;
  background: #000;
  border: 1px solid #333;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

/* Textos ajustados */
.video-content .fuente {
  font-size: 0.90rem;
  margin-top: auto; /* Fija en la parte inferior */
  padding-top: 0.1em;
  color: #999;
}

.video-content .fuente a {
  color: #a3d4ff;
}

.flip-back-content p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.90rem;
  text-align: center;
}

.flip-back-content .fuente a {
  color: white;
  text-decoration: underline;
}

.flip-back-content .fuente a:hover {
  color: #ccc;
}

/* CONTENEDOR PRINCIPAL DEL CARRUSEL */
.image-footer a {
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

.image-footer a:hover {
  color: #088a38;
  text-decoration: underline;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: clamp(300px, 50vw, 550px);
  height: clamp(200px, 30vw, 300px);
  margin: clamp(10px, 2vw, 20px) auto;
  overflow: hidden;
  border-radius: clamp(6px, 1vw, 10px);
  box-shadow: 0 clamp(3px, 0.5vw, 5px) clamp(10px, 1vw, 15px) rgba(0,0,0,0.2);
  background-color: #000000;
}

/* CONTENEDOR DE IMÁGENES */
.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

/* IMÁGENES */
.carousel-images img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  filter: drop-shadow(0 clamp(2px, 0.4vw, 4px) clamp(8px, 0.8vw, 8px) rgba(0,0,0,0.3));
  z-index: 1;
  opacity: 0;
  will-change: transform, filter; /* Optimiza para animaciones */
  backface-visibility: hidden; /* Mejora el rendimiento */
}

.carousel-images img {
  filter: grayscale(100%); /* Estado por defecto */
  transition: filter 0.4s ease;
}

.carousel-images img.active {
  opacity: 1;
  transform: translate(-50%, -50%);
  z-index: 3;
  filter: grayscale(100%) drop-shadow(0 clamp(2px, 0.4vw, 4px) clamp(8px, 0.8vw, 8px) rgba(0,0,0,0.3));
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1), 
              transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.carousel-images img.active:hover {
  filter: grayscale(0%) drop-shadow(0 clamp(2px, 0.4vw, 4px) clamp(8px, 0.8vw, 8px) rgba(0,0,0,0.3));
}



/* Animaciones */
@keyframes slideInLeft {
  from { transform: translate(-150%, -50%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translate(50%, -50%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes slideOutLeft {
  from { transform: translate(-50%, -50%); opacity: 1; }
  to { transform: translate(-150%, -50%); opacity: 0; }
}

@keyframes slideOutRight {
  from { transform: translate(-50%, -50%); opacity: 1; }
  to { transform: translate(50%, -50%); opacity: 0; }
}

.slide-in-left {
  animation: slideInLeft 0.6s forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.6s forwards;
}

.slide-out-right {
  animation: slideOutRight 0.6s forwards;
}
.carousel-images img.prev-slide {
  opacity: 0;
  transform: translate(-150%, -50%);
  z-index: 2;
}

.carousel-images img.next-slide {
  opacity: 0;
  transform: translate(50%, -50%);
  z-index: 2;
}





/* FLECHAS DE NAVEGACIÓN */
.carousel button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: clamp(16px, 2vw, 24px);
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.carousel:hover button {
  opacity: 1;
}

.carousel .prev {
  left: clamp(10px, 2vw, 15px);
}

.carousel .next {
  right: clamp(10px, 2vw, 15px);
}

.carousel button:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.15);
}


/* OVERLAY GRADIENT */
.carousel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 4;
}


/* MODAL PARA IMÁGENES AMPLIADAS */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
  padding: clamp(10px, 2vw, 20px);
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: clamp(10px, 2vw, 15px);
  right: clamp(20px, 3vw, 35px);
  color: #f1f1f1;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #088a38;
}

.image-footer {
  width: 100%;
  max-width: clamp(300px, 80vw, 800px);
  margin-top: clamp(10px, 2vw, 20px);
  color: white;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
}


/* TUTORIAL MODAL */
.tutorial-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.tutorial-content {
  max-width: 50vw;
  max-height: 70vh;
  background: #111;
  border-radius: clamp(1em, 2vw, 1.25rem);
  padding: clamp(1em, 1.5vw, 1.25rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.tutorial-content video {
  width: 100%;
  max-height: 50vh;
  border-radius: clamp(0.5em, 1vw, 0.75rem);
  object-fit: contain;
}

.tutorial-content button {
  margin-top: clamp(1em, 2vw, 1.25rem);
  padding: clamp(0.5em, 1vw, 0.75rem) clamp(1em, 2vw, 1.25rem);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-family: 'Courier New', monospace;
  background-color: rgb(30, 30, 30);
  color: #ffffff;
  border: none;
  border-radius: clamp(0.5em, 1vw, 0.625rem);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  z-index: 2;
  position: relative;
}

.tutorial-content button:hover {
  background-color: #5a191d;
  color: #ffffff;
}

/* Animación entrada pantalla blanca */
.entrada-animacion {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 2000;
  transform: translate(-50%, -50%);
  animation: encogerCentro 1.5s ease forwards;
}

@keyframes encogerCentro {
  0% {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  50% {
    width: 25vw;
    height: 18vh;
    border-radius: 3vw;
  }
  100% {
    width: 0;
    height: 0;
    border-radius: 3vw;
  }
}
.paginacion {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 50px);
  margin: clamp(24px, 5vw, 60px) 0 clamp(16px, 3vw, 40px) 0;
  font-family: 'Bebas Neue', sans-serif;
}

.paginacion .btn {
  position: relative;
  text-decoration: none;
  color: #088a38;
  font-size: clamp(16px, 2vw, 22px);
  padding-bottom: clamp(2px, 0.5vw, 4px);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.paginacion .btn:hover {
  color: #088a38;
  border-bottom-color: #088a38;
}

.paginacion .btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #088a38;
  transition: width 0.3s ease;
}

.paginacion .btn:hover::after {
  width: 100%;
  background-color: #088a38;
}

.contenedor-vineta {
  max-width: 70vw;
  margin-top: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(20px, 4vw, 60px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  height: 70vw;
  perspective: 65vw;
  cursor: pointer;
  position: relative;
}

.vineta-estatica {
  max-width: 70vw;
  margin-top: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(20px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.vineta-estatica img, .vineta-estatica-sola img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  margin-top: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(20px, 4vw, 60px);
}

.audio-debajo {
  margin-top: clamp(10px, 2vw, 30px);
  width: 80%;
  max-width: clamp(300px, 50vw, 800px);
  background-color: #222;
  padding: clamp(10px, 2vw, 20px);
  border-radius: clamp(6px, 1.5vw, 12px);
  display: flex;
  justify-content: center;
}

.audio-debajo audio {
  width: 100%;
  border-radius: clamp(4px, 1vw, 8px);
}

.audio-arriba {
  margin-top: 0;
  width: 80%;
  max-width: clamp(300px, 50vw, 800px);
  background-color: #222;
  padding: clamp(10px, 2vw, 20px);
  border-radius: clamp(6px, 1.5vw, 12px);
  display: flex;
  justify-content: center;
}

.audio-arriba audio {
  width: 100%;
  border-radius: clamp(4px, 1vw, 8px);
}

.vineta-estatica, .vineta-estatica-sola {
  max-width: 70vw;
  margin-top: clamp(10px, 2vw, 30px);
  margin-bottom: clamp(10px, 2vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.vineta-estatica img, .vineta-estatica-sola img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  margin-top: clamp(10px, 2vw, 30px);
  margin-bottom: clamp(10px, 2vw, 30px);
}
/* Audio */
.audio-debajo {
  width: 100%; /* Asegura que use todo el ancho disponible */
  display: flex;
  justify-content: center;
  align-items: center; /* opcional: centra también verticalmente si cambia la altura */
  margin-top: clamp(6px, 1.5vw, 10px);
  position: relative;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.audio-debajo audio {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  width: clamp(200px, 30vw, 300px);
  height: clamp(20px, 2vw, 30px);
}

.audio-separado {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(20px, 4vw, 60px);
}

.audio-contenedor {
  margin-top: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(20px, 4vw, 60px);
  text-align: center;
}

.audio-descripcion {
  font-size: 16px;
  color: #cccccc; /* gris claro */
  margin-bottom: 8px;
  font-family: 'Courier New', Courier, monospace;
}

.audio-contenedor audio {
  width: 100%;
  height: clamp(25px, 3vw, 40px);
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}


.vineta-estatica audio {
  width: 100%;
  border-radius: clamp(4px, 1vw, 8px);
}

.contenedor-columna-texto-izquierda {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 24px);
  max-width: 100vw;
  margin: 0 auto;
  
}

.texto-izquierda {
  flex: 1;

  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.6;
  color: white;
  text-align: justify;
  text-align-last: center;
  font-weight: bold;

}

.imagen-derecha {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.imagen-derecha img {
  width: 100%;
  max-width: 32vw;
  height: auto;
  display: block;
}

.contenedor-columna-texto-derecha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 48px);
  
  max-width: 65vw;
  margin: 0 auto;
  
}

.texto-derecha {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.6;
  color: white;
  text-align: justify;
  text-align-last: center;
  font-weight: bold;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(10px, 1.5vw, 20px);

}

.imagen-izquierda {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  
}

.imagen-izquierda img {
  max-width: 100%;
  height: auto;
  display: block;
}

.audio-reproductor {
  padding: clamp(10px, 2vw, 20px);
  background-color: #222;
  border-radius: clamp(6px, 1.5vw, 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: clamp(250px, 40vw, 400px);
}

.audio-reproductor audio {
  width: 100%;
  border-radius: clamp(4px, 1vw, 8px);
}

/* Responsive celu */
@media (max-width: 767px) {
  html, body {
    position: relative;
  }

  body {
    background-color: #000;
    transition: background-color 0.3s ease;
  }


  body::after {
    content: "";
    display: block;
    height: 150vh;
  }

  .navbar {
    padding: 1.2vw 2.7vw;
  }

  a[href="index.html"],
  #tutorial-link,
  a[href="creditos.html"] {
    font-size: 0;
    color: transparent;
    position: relative;
  }

  a[href="index.html"]::before,
  #tutorial-link::before,
  a[href="creditos.html"]::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  a[href="index.html"]::before {
    background-image: url('../img/adicional/inicio_icono.webp');
  }

  #tutorial-link::before {
    background-image: url('../img/adicional/tutorial_icono.webp');
  }

  a[href="creditos.html"]::before {
    background-image: url('../img/adicional/nosotrxs_icono.webp');
  }

  .nav-links {
    gap: 7vw;
  }

  .nav-links a:not([href="index.html"]):not(#tutorial-link):not([href="creditos.html"]) {
    font-size: 10px;
  }

  .progress-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  main.contenido {
    padding: 5px 8px;
    margin: 0 auto;
    max-width: 100vw;
  }

section.titulo h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 50px;
}

@media (max-width: 767px) {
  section.texto-curaduria {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 5px 8px;
    margin: 500px auto 20px;
    max-width: 100vw;
    text-align: justify;
  }
}

  section.fecha-evento {
    padding: 5px 8px;
    margin: 200px auto 20px;
    max-width: 100vw;
  }

  section.fecha-evento .fecha {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
  }

  section.fecha-evento .subtexto {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 5px 5px;
    margin: 0 3px 10px;
    max-width: 100%;
    text-align: justify;
  }
}

@media (max-width: 767px) {
  .flip-card {
    /*width: calc(100vw - 16px);*/
    height: 100%;
    margin: 20px auto;
    background: none;
    box-sizing: border-box;
    transform: scale(1.08);
    transform-origin: center center;
  }
  .carousel {
    width: calc(100% - 35px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
  }
  
  .flip-inner {
    width: 100%;
    position: relative;
    transform-style: scale(1.05);
    transform-origin: center center;
    transition: transform 0.6s;
    transform: none !important;
  }

  .flip-front,
  .flip-back {
    width: 100%;
    position: static;
    backface-visibility: visible;
    overflow: hidden;
    transform: none;
  }

  .flip-front img {
    width: 100%;
    height: auto;
    object-fit: cover;

  }

  .flip-back {
    display: none;
    padding: 10px 15px;
    background: none;
  }

  .flip-card.flipped .flip-back {
    display: block;
  }

  .flip-card.flipped .flip-front {
    display: none;
  }

  .carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
  }

  .carousel-images img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    padding: 10px;
    border: none;
    z-index: 10;
    cursor: pointer;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }
}


@media (max-width: 480px) {
  #imageModal .modal-content {
position: fixed;
top: 30%;
left: 35%;
transform: translate(-30%, -30%);
  }

  #imageDescription, #imageSourceLink {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .vineta-estatica {
    width: calc(100vw - 16px);
    margin: 20px auto;
    background: none;
    box-sizing: border-box;
    transform: scale(1.08);
    transform-origin: center center;
  }

  .vineta-estatica img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  section.texto {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 10px 15px;
    margin: 0 auto 20px;
    max-width: 95vw;
    text-align: justify;
  }

  section.texto p {
    margin-bottom: 12px;
  }
}

/* Estilos responsive para móviles */
@media (max-width: 767px) {
  section.poema {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 10px 15px;
    margin: 0 auto 20px;
    max-width: 95vw;
  }

  section.poema p {
    margin-bottom: 12px;
  }
}



@media (max-width: 767px) {
  .flip-back-content.video-content {
    width: 99vw;
    max-width: 65vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    background-color: #222;
    text-align: center;
  }

  .video-container {
    width: 90%;
    max-width: 90%;
    min-height: 150px;
    margin: 0 auto;
    padding: 0;
    background: black;
  }


  .video-content h2 {
    font-size: 0.7rem;
    margin: 0;
    color: #fff;
  }

  .video-content h3 {
    font-size: 0.6rem;
    margin: 0;
    color: #bbb;
  }

  .video-content .fuente {
    font-size: 0.5rem;
    margin-top: 0.5em;
    color: #999;
    padding-top: 0;
  }
}


@media (max-width: 600px) {
  .tutorial-content {
    max-width: 95vw;
    max-height: 80vh;
    padding: 1em;
    border-radius: 0.8em;
  }

  .tutorial-content video {
    max-height: 60vh;
    border-radius: 0.6em;
  }

  .tutorial-content button {
    font-size: 0.9rem;
    padding: 0.5em 1em;
    margin-top: 1em;
  }
}

@media (max-width: 767px) {
  .contenedor-columna-texto-derecha,
  .contenedor-columna-texto-izquierda {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .contenedor-columna-texto-derecha .texto-derecha,
  .contenedor-columna-texto-izquierda .texto-izquierda {
    order: -1; /* Mostrar texto arriba */
  }

  .texto-derecha,
  .texto-izquierda {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 10px 12px;
    margin: 0 auto 15px;
    max-width: 95vw;
    text-align: justify;
  }

  .imagen-izquierda img,
  .imagen-derecha img {
    width: calc(100vw - 16px); /* Imagen ocupa casi todo el ancho */
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  } 
}