/* =========================================================
   style.css — Estilos base del index principal (diapositivas)
   ========================================================= */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Configuración general */
html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Lora", serif;
  background-color: #0d0d0d;
  color: #000000;
  font-size: 100%; /* base 16px relativa */
  -webkit-text-size-adjust: none;
}

/* Contenedor de todas las diapositivas */
.slides-container {
  height: 100vh;
  width: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

/* Cada diapositiva */
.slide {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  scroll-snap-align: start;
  position: relative;
  text-align: center;
  padding: 5%;
}

/* Contenido dentro de cada diapositiva 
.slide-content {
  z-index: 2;
  max-width: 80%;
  padding: 2%;
  animation: fadeInUp 1s ease forwards;
} */
 .slide-content {
  z-index: 2;
  max-width: 80%;
  padding: 2%;
}


/* Tipografía fluida con clamp */
.slide h1 {
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2%;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.slide p {
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 3%;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
}

/* Fondos pastel kawaii */
/* Diapositiva 1 — Imagen + tono rosado pastel */
#slide-1 {
  background: radial-gradient(circle at center, #ffe0eb 0%, #ffd6e0 60%, #fff0f5 100%);
  background-image: url("../imagenes/Fondos_Principales/HunmenFondoHalloween_img1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Diapositiva 2 — Verde menta */
#slide-2 {
  background: radial-gradient(circle at center, #e3ffe8 0%, #d9ffec 60%, #f0fff5 100%);
}
/* Diapositiva 3 — Azul cielo pastel */
#slide-3 {
  background: radial-gradient(circle at center, #e6f0ff 0%, #dce9ff 60%, #f3f6ff 100%);
}
/* Diapositiva 4 — Amarillo pastel */
#slide-4 {
  background: radial-gradient(circle at center, #fff9e6 0%, #fff4cc 60%, #fffef5 100%);
}
/* Diapositiva 5 — Lavanda suave */
#slide-5 {
  background: radial-gradient(circle at center, #f0e6ff 0%, #e8d9ff 60%, #f8f5ff 100%);
}
/* Diapositiva 6 — Melocotón pastel */
#slide-6 {
  background: radial-gradient(circle at center, #ffe9d9 0%, #ffdccc 60%, #fff5ee 100%);
}
/* Diapositiva 7 — Verde lima claro */
#slide-7 {
  background: radial-gradient(circle at center, #f1ffe6 0%, #e4ffd1 60%, #f8fff0 100%);
}
/* Diapositiva 8 — Verde lima claro */
#slide-8 {
  background: radial-gradient(circle at center, #f1ffe6 0%, #f9f7e0 60%, #f9f7e0 100%);
}

/* Botón "Ver más" */
.btn-ver-mas {
  display: inline-block;
  margin-top: 2%;
  background-color: #ffffff;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  border-radius: 2rem;
  padding: 0.9em 2.2em;
  transition: all 0.3s ease;
  box-shadow: 0 0.4em 1em rgba(0, 0, 0, 0.15);
}

.btn-ver-mas:hover {
  background-color: #ffb6c1;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0.6em 1.2em rgba(0, 0, 0, 0.2);
}

/* Indicadores (puntos) */
.dots {
  position: fixed;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1vh;
  z-index: 10;
}

.dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background-color: #ff9ecb;
}

/* ======================== ANIMACIONES DE TEXTO ======================== */
.slide .titulo,
.slide .descripcion,
.slide .btn-ver-mas {
  opacity: 0;
  transform: translateY(20%);
  transition: opacity 1s ease, transform 1s ease;
}

/* Cuando la diapositiva entra en vista */
.slide.visible .titulo,
.slide.visible .descripcion,
.slide.visible .btn-ver-mas {
  opacity: 1;
  transform: translateY(0);
}

/* ⏱️ Retrasos para aparición escalonada */
.slide.visible .titulo {
  transition-delay: 0.2s;
}

.slide.visible .descripcion {
  transition-delay: 0.4s;
}

.slide.visible .btn-ver-mas {
  transition-delay: 0.6s;
}


/* ======================== DIAPOSITIVA FINAL ======================== */
#slide-8 {
  background: radial-gradient(circle at center, #f1ffe6 0%, #f9f7e0 60%, #f9f7e0 100%);
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  flex-direction: row;
  text-align: left;
  gap: 3rem;
  scroll-snap-align: start;
  position: relative;
}

#slide-8 .slide-content {
  flex: 0 0 60%;
  padding-right: 2rem;
  z-index: 2;
}

#slide-8 .titulo {
  font-size: 2.6rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

#slide-8 .descripcion {
  font-size: 1.2rem;
  color: #7c2a8c;
  line-height: 1.6em;
  margin-bottom: 1rem;
}

#slide-8 .imagen-derecha {
  flex: 0 0 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#slide-8 .imagen-derecha img {
  width: 70%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  #slide-8 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
  }

  /* ✨ Nuevo: desplazamiento hacia abajo del contenido */
  #slide-8 .slide-content {
    flex: none;
    max-width: 90%;
    margin: 26% auto 0 auto; /* 10% del alto de la pantalla */
    padding: 0;
  }

  #slide-8 .titulo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  #slide-8 .slide-content p {
  margin-bottom: 0rem; /* reduce separación entre párrafos */
  }

  #slide-8 .descripcion {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  #slide-8 .imagen-derecha {
    margin-top: -2rem;
    justify-content: center;
  }

  #slide-8 .imagen-derecha img {
    width: 65%;
    max-width: 320px;
  }
}
/**/
/* ======================== FLECHA ABAJO ======================== */
.flecha {
  position: absolute;
  bottom: 10%; /* 🔹 Subida un 10% del alto de la sección */
  left: 50%; /* 🔹 Centrada horizontalmente */
  transform: translateX(-50%);
  font-size: 2rem;
  color: #86008f;
  animation: moverFlecha 1.5s infinite alternate;
}

@keyframes moverFlecha {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, 10px); }
}

/* ======================== FLECHA ARRIBA ======================== */
.flecha-arriba {
  position: absolute;
  bottom: 14%; /* 🔹 También más arriba */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #86008f;
  animation: moverFlechaArriba 1.5s infinite alternate;
}

@keyframes moverFlechaArriba {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, -10px); } /* 🔹 Animación hacia arriba */
}

/* ======================== ============= ======================== */
/* ===== COPYRIGHT (para la última diapositiva) ===== */
#slide-8 {
  position: relative; /* permite posicionar el footer internamente */
}

#slide-8 .footer-copy {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  color: #353535;
  opacity: 0.8;
  width: 100%;
  padding: 0.5rem;
}

/* En móviles, bajamos un poco más por si hay margen inferior del navegador */
@media (max-width: 768px) {
  #slide-8 .footer-copy {
    bottom: 4%;
    font-size: 0.9rem;
  }
}

/**/


/* Adaptabilidad móvil */
@media (max-width: 768px) {
  .slide-content {
    max-width: 90%;
    padding: 4%;
  }

  .dots {
    right: 2%;
  }
}

@supports (-webkit-touch-callout: none) {
  /* Safari/iOS */
  body {
    font-size: 100%;
  }
}

