/* ==========================================================================
   Variables y Paleta de Colores
   ========================================================================== */
:root {
  --noche: #1b1530;
  --noche2: #2b2145;
  --noche3: #161028;
  --rosa: #ff9ec1;
  --rosa-brillo: #ff75a4;
  --mant: #ffe08a;
  --lila: #b8a4ff;
  --texto: #f6f0fa;
  --suave: #b9aed3;
  --dorado: #ffd166;
  --whatsapp: #25d366;
  --whatsapp-oscuro: #128c7e;
  --papel: #fffdfa;
  --tinta: #2c223b;
}

/* ==========================================================================
   Base y Fondo Estrellado
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0, #3a2a63 0, var(--noche) 60%) fixed;
  color: var(--texto);
  font: 400 1.05rem/1.6 "Nunito", system-ui, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Efecto de cielo estrellado titilante */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90px 120px, var(--mant), transparent),
    radial-gradient(1px 1px at 150px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 170px, var(--rosa), transparent);
  background-size: 180px 200px;
  opacity: 0.7;
  animation: brilla 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes brilla {
  to {
    opacity: 0.25;
  }
}

main {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
  z-index: 1;
}

/* ==========================================================================
   Barra Superior de Navegación (Páginas Secundarias)
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(35, 27, 56, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2rem;
  border: 1px solid rgba(255, 158, 193, 0.2);
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.nav-volver {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mant);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.nav-volver:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-3px);
  color: #fff;
}

.nav-etiqueta {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: var(--rosa);
}

/* ==========================================================================
   Tipografía y Encabezado Principal (Hero)
   ========================================================================== */
h1, h2, h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.hero {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}

h1 {
  font-size: clamp(2.4rem, 10vw, 3.8rem);
  color: var(--mant);
  text-wrap: balance;
}

.sub {
  color: var(--suave);
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
}

#cuenta {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--rosa);
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Pastel / Vela Interactiva
   ========================================================================== */
.vela {
  all: unset;
  display: block;
  margin: 1.5rem auto 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.vela:not(:disabled):hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 1rem #ff9ec166);
}

.vela:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.75;
}

.llama {
  width: 0.9rem;
  height: 1.5rem;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 70%, #fff 0, var(--mant) 40%, #ff9a3c 100%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  animation: flick 0.25s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

@keyframes flick {
  to {
    transform: scale(0.92, 1.08) rotate(3deg);
  }
}

.vela.apagada .llama {
  opacity: 0;
  animation: none;
  transition: opacity 0.3s;
}

.palo {
  width: 0.55rem;
  height: 2.8rem;
  margin: 0 auto;
  background: var(--lila);
  border-radius: 0.2rem;
}

.base {
  width: 9.5rem;
  height: 3rem;
  margin: 0 auto;
  background: var(--rosa);
  border-radius: 0.7rem;
  border-top: 0.6rem solid var(--mant);
}

.vela small {
  display: block;
  margin-top: 0.75rem;
  color: var(--suave);
  font-size: 0.95rem;
}

.mensaje-vela {
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.4rem;
  max-width: 32rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 158, 193, 0.4);
  border-radius: 1.25rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  animation: aparece 0.7s ease;
  text-align: center;
}

.mensaje-vela strong {
  display: block;
  color: var(--mant);
  font: 400 1.6rem/1.2 "DM Serif Display", Georgia, serif;
  margin-bottom: 0.5rem;
}

.mensaje-vela p {
  margin: 0;
  color: var(--texto);
}

@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Hub de Etapas (Itinerario del Día)
   ========================================================================== */
.itinerario-titulo {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  font-size: 1.8rem;
  color: var(--mant);
}

.grid-etapas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-etapas {
    grid-template-columns: 1fr 1fr;
  }
}

.tarjeta-etapa {
  position: relative;
  background: var(--noche2);
  border: 2px solid rgba(184, 164, 255, 0.2);
  border-radius: 1.3rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.tarjeta-etapa.desbloqueada {
  border-color: rgba(255, 158, 193, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.tarjeta-etapa.desbloqueada:hover {
  transform: translateY(-5px);
  border-color: var(--rosa);
  box-shadow: 0 15px 35px rgba(255, 158, 193, 0.25);
  background: #332752;
}

.tarjeta-etapa.bloqueada {
  opacity: 0.65;
  filter: grayscale(0.2);
  cursor: not-allowed;
}

.etapa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.etapa-hora-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 224, 138, 0.15);
  color: var(--mant);
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.etapa-estado-badge {
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
}

.desbloqueada .etapa-estado-badge {
  background: rgba(255, 158, 193, 0.2);
  color: var(--rosa);
}

.bloqueada .etapa-estado-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--suave);
}

.etapa-icono {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.tarjeta-etapa h3 {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.etapa-desc {
  font-size: 0.95rem;
  color: var(--suave);
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.etapa-boton-accion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  width: 100%;
}

.desbloqueada .etapa-boton-accion {
  background: linear-gradient(135deg, var(--rosa), #e06d96);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 158, 193, 0.35);
}

.tarjeta-etapa.desbloqueada:hover .etapa-boton-accion {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.bloqueada .etapa-boton-accion {
  background: rgba(255, 255, 255, 0.06);
  color: var(--suave);
}

/* ==========================================================================
   ETAPA 1: Carta y Sobre Interactivo
   ========================================================================== */
.carta-escenario {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 3rem;
  perspective: 1200px;
}

.sobre-envoltorio {
  position: relative;
  width: 100%;
  max-width: 32rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sobre-cuerpo {
  position: relative;
  width: 100%;
  height: 220px;
  background: #e8d8be;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: visible;
}

/* Solapa triangular superior */
.sobre-solapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 16rem solid transparent;
  border-right: 16rem solid transparent;
  border-top: 120px solid #d8c4a4;
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s;
  z-index: 4;
}

@media (max-width: 540px) {
  .sobre-solapa {
    border-left-width: 45vw;
    border-right-width: 45vw;
    border-top-width: 100px;
  }
}

.sobre-abierto .sobre-solapa {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Bolsillo frontal del sobre */
.sobre-bolsillo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  border-left: 16rem solid #dfccad;
  border-right: 16rem solid #dfccad;
  border-bottom: 120px solid #ceb895;
  border-radius: 0 0 1rem 1rem;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 540px) {
  .sobre-bolsillo {
    border-left-width: 45vw;
    border-right-width: 45vw;
    border-bottom-width: 100px;
  }
}

/* Sello de lacre */
.sello-lacre {
  position: absolute;
  top: 95px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 35%, #e63946, #9b1d20);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  z-index: 5;
  transition: transform 0.4s ease, opacity 0.4s ease;
  user-select: none;
}

.sello-lacre:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.sobre-abierto .sello-lacre {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
}

.indicador-toque {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--mant);
  font-size: 1.1rem;
  animation: palpita 1.5s ease-in-out infinite;
}

@keyframes palpita {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* Hoja de carta desplegable */
.hoja-carta {
  width: 100%;
  max-width: 38rem;
  background: var(--papel);
  color: var(--tinta);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.hoja-carta.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.carta-encabezado {
  border-bottom: 2px dashed rgba(200, 150, 170, 0.4);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.carta-remitente, .carta-destinatario {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  margin: 0;
  color: #7b435b;
}

.carta-cuerpo {
  font-family: "Nunito", sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3b2d4a;
  white-space: pre-line;
}

.carta-firma {
  margin-top: 2rem;
  text-align: right;
  font-family: "Caveat", cursive;
  font-size: 1.7rem;
  color: #e63946;
}

/* Versículo decorativo en carta */
.carta-versiculo {
  background: #fdf6ec;
  border-left: 4px solid var(--dorado);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.carta-versiculo-cita {
  font-family: "DM Serif Display", serif;
  font-size: 1.2rem;
  color: #a05a2c;
  margin: 0 0 0.5rem;
}

.carta-versiculo-texto {
  font-style: italic;
  color: #5a4638;
  margin: 0;
}

.carta-versiculo-frase {
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  color: #b0416b;
  margin: 0.75rem 0 0;
}

/* ==========================================================================
   ETAPA 2: El Frasco de las Razones
   ========================================================================== */
.progreso-frasco {
  max-width: 32rem;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 158, 193, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.progreso-texto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--mant);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.progreso-barra-fondo {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 1rem;
  overflow: hidden;
}

.progreso-barra-relleno {
  height: 100%;
  background: linear-gradient(90deg, var(--lila), var(--rosa));
  border-radius: 1rem;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.escenario-frasco {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.frasco-contenedor {
  position: relative;
  width: 180px;
  height: 240px;
  margin: 1rem auto;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease;
}

.frasco-contenedor:hover {
  transform: scale(1.05) translateY(-4px);
}

.frasco-contenedor:active {
  transform: scale(0.97);
}

.frasco-contenedor.agitando {
  animation: agitarFrasco 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes agitarFrasco {
  10%, 90% { transform: translate3d(-3px, 0, 0) rotate(-4deg); }
  20%, 80% { transform: translate3d(5px, 0, 0) rotate(5deg); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0) rotate(-6deg); }
  40%, 60% { transform: translate3d(6px, 0, 0) rotate(6deg); }
}

.tapa-corcho {
  width: 100px;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, #bfa074, #8b6d43);
  border-radius: 6px 6px 3px 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cuello-frasco {
  position: relative;
  width: 120px;
  height: 22px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazo-frasco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cuerpo-frasco {
  position: relative;
  width: 180px;
  height: 190px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px 20px 30px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.brillo-cristal {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 14px;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 10px;
  pointer-events: none;
}

.papelitos-interior {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 1.5rem;
}

.papelito {
  font-size: 1.6rem;
  display: inline-block;
  animation: flotarPapelito 3s ease-in-out infinite alternate;
}

.papelito.p1 { animation-delay: 0.2s; transform: rotate(-15deg); }
.papelito.p2 { animation-delay: 0.8s; transform: rotate(10deg); }
.papelito.p3 { animation-delay: 1.4s; transform: rotate(-8deg); }
.papelito.p4 { animation-delay: 0.5s; transform: rotate(20deg); }
.papelito.p5 { animation-delay: 1.1s; transform: rotate(-12deg); }
.papelito.p6 { animation-delay: 1.7s; transform: rotate(5deg); }

@keyframes flotarPapelito {
  0% { transform: translateY(0) rotate(-10deg); }
  100% { transform: translateY(-8px) rotate(10deg); }
}

.btn-sacar-razon {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--rosa), #d65b87);
  color: #fff;
  border: 0;
  padding: 0.85rem 1.6rem;
  border-radius: 2rem;
  font: 700 1.05rem "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 158, 193, 0.4);
  transition: all 0.25s ease;
}

.btn-sacar-razon:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(255, 158, 193, 0.55);
}

.btn-sacar-razon.completado {
  background: linear-gradient(135deg, #7b61ff, #5a3ee0);
  box-shadow: 0 8px 25px rgba(123, 97, 255, 0.35);
}

/* Nota desdoblada actual */
.nota-desplegada {
  position: relative;
  max-width: 34rem;
  width: 100%;
  margin: 2rem auto 0;
  background: var(--papel);
  color: var(--tinta);
  border-radius: 1rem;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.nota-desplegada.animar-desdoble {
  animation: desdoblarNota 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes desdoblarNota {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(40px) rotate(-4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

.cinta-nota {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: rgba(255, 158, 193, 0.65);
  border-left: 2px dashed rgba(255, 255, 255, 0.5);
  border-right: 2px dashed rgba(255, 255, 255, 0.5);
}

.nota-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.nota-numero {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: #b0416b;
  font-weight: 700;
}

.nota-icono {
  font-size: 1.8rem;
}

.nota-titulo {
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  color: #3b2348;
  margin: 0.25rem 0 0.8rem;
}

.nota-texto {
  font-family: "Nunito", sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #433355;
  margin: 0 0 1.5rem;
}

.btn-guardar-nota {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  background: #3b2348;
  color: #fff;
  font: 700 0.95rem "Nunito", sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-guardar-nota:hover {
  background: #543466;
  transform: translateY(-2px);
}

/* Mensaje final al completar las 10 razones */
.mensaje-final-razones {
  text-align: center;
  margin: 2rem auto;
  max-width: 32rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--mant);
  border-radius: 1.25rem;
  padding: 1.6rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  animation: aparece 0.5s ease;
}

.corona-icono {
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
}

.mensaje-final-razones h3 {
  color: var(--mant);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.mensaje-final-razones p {
  color: var(--texto);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Colección de notas descubiertas */
.seccion-coleccion {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.coleccion-titulo {
  text-align: center;
  font-size: 1.7rem;
  color: var(--mant);
  margin-bottom: 1.5rem;
}

.grid-coleccion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .grid-coleccion {
    grid-template-columns: 1fr 1fr;
  }
}

.tarjeta-nota-coleccion {
  background: var(--noche2);
  border: 1px solid rgba(184, 164, 255, 0.25);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tarjeta-nota-coleccion:hover {
  transform: translateY(-4px);
  border-color: var(--rosa);
}

.nota-coleccion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.num-coleccion {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  color: var(--rosa);
  font-weight: 700;
}

.icon-coleccion {
  font-size: 1.3rem;
}

.tarjeta-nota-coleccion h4 {
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.tarjeta-nota-coleccion p {
  font-size: 0.95rem;
  color: var(--suave);
  line-height: 1.5;
  margin: 0;
}

.sin-notas {
  text-align: center;
  color: var(--suave);
  font-style: italic;
  grid-column: 1 / -1;
  padding: 2rem 0;
}

/* Tarjeta de la Torta de Cumpleaños */
.tarjeta-torta {
  margin-top: 3.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 158, 193, 0.4);
  border-radius: 1.4rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.torta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.torta-icono {
  font-size: 2.2rem;
}

.tarjeta-torta h2 {
  font-size: 1.65rem;
  color: var(--mant);
  margin: 0;
}

.torta-sub {
  color: var(--texto);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.torta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.chip-sabor {
  all: unset;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mant);
  border: 1px solid rgba(255, 224, 138, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-sabor:hover {
  background: rgba(255, 224, 138, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.torta-input-wrapper {
  max-width: 26rem;
  margin: 0 auto 1.25rem;
}

.input-torta {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 1rem;
  background: rgba(20, 14, 34, 0.7);
  border: 1.5px solid rgba(255, 158, 193, 0.4);
  color: #fff;
  font: 500 1.05rem "Nunito", sans-serif;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.input-torta:focus {
  border-color: var(--rosa);
  box-shadow: 0 0 15px rgba(255, 158, 193, 0.3);
}

.btn-whatsapp-torta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
}

.btn-whatsapp-torta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  filter: brightness(1.08);
}

/* ==========================================================================
   ETAPA 3: Carrusel Táctil de Recuerdos
   ========================================================================== */
.carrusel-contenedor {
  position: relative;
  max-width: 32rem;
  margin: 2rem auto 0;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 1rem 0 2rem;
}

.carrusel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: pan-y;
  cursor: grab;
}

.carrusel-track:active {
  cursor: grabbing;
}

.carrusel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.polaroid-carrusel {
  position: relative;
  background: #fff;
  padding: 0.9rem 0.9rem 1.6rem;
  border-radius: 0.35rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  color: #332742;
  max-width: 26rem;
  width: 100%;
}

.polaroid-carrusel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.2rem;
  display: block;
}

.carrusel-info {
  margin-top: 1.1rem;
  text-align: center;
}

.carrusel-fecha {
  font-size: 0.85rem;
  color: #9283a8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.carrusel-texto {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #3b2850;
  margin: 0.4rem 0 1rem;
  line-height: 1.3;
}

/* Botón de corazones interactivo */
.btn-corazon {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff0f5;
  border: 1.5px solid #ff9ec1;
  color: #d81e5b;
  padding: 0.5rem 1.1rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-corazon:hover {
  transform: scale(1.06);
  background: #ffe3ed;
}

.btn-corazon:active {
  transform: scale(0.95);
}

.corazon-flotante {
  position: fixed;
  font-size: 1.8rem;
  pointer-events: none;
  animation: subirCorazon 1.4s ease-out forwards;
  z-index: 99;
}

@keyframes subirCorazon {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -120px) scale(1.2) rotate(-10deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -220px) scale(1.5) rotate(15deg);
  }
}

/* Controles del carrusel */
.carrusel-flecha {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(35, 27, 56, 0.85);
  color: var(--mant);
  border: 1px solid rgba(255, 158, 193, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carrusel-flecha:hover {
  background: var(--noche2);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carrusel-flecha.izq { left: 0.5rem; }
.carrusel-flecha.der { right: 0.5rem; }

.carrusel-indicadores {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.indicador-punto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.indicador-punto.activo {
  width: 24px;
  border-radius: 1rem;
  background: var(--rosa);
}

/* ==========================================================================
   ETAPA 4: Selector de Regalos y Agradecimiento
   ========================================================================== */
.carta-agradecimiento {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 158, 193, 0.3);
  border-radius: 1.3rem;
  padding: 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carta-agradecimiento p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--texto);
  white-space: pre-line;
}

.selector-regalos-titulo {
  text-align: center;
  font-size: 1.7rem;
  color: var(--mant);
  margin-bottom: 1.25rem;
}

.grid-opciones-regalo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .grid-opciones-regalo {
    grid-template-columns: 1fr 1fr;
  }
}

.tarjeta-regalo {
  position: relative;
  background: var(--noche2);
  border: 2.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.6rem 1.4rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta-regalo:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 158, 193, 0.4);
  background: #332752;
}

.tarjeta-regalo.seleccionada {
  border-color: var(--rosa);
  background: linear-gradient(145deg, #382b5c, #261b40);
  box-shadow: 0 0 25px rgba(255, 158, 193, 0.35);
  transform: scale(1.02);
}

.regalo-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: transparent;
  transition: all 0.2s ease;
}

.tarjeta-regalo.seleccionada .regalo-check {
  background: var(--rosa);
  border-color: var(--rosa);
  color: #fff;
}

.regalo-icono {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.regalo-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 224, 138, 0.2);
  color: var(--mant);
  margin-bottom: 0.6rem;
}

.tarjeta-regalo h3 {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.regalo-desc {
  font-size: 0.95rem;
  color: var(--suave);
  margin: 0;
  line-height: 1.5;
}

/* Área de confirmación y WhatsApp */
.panel-confirmacion {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 158, 193, 0.25);
  animation: aparece 0.4s ease;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
  margin-top: 1rem;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  filter: brightness(1.08);
}

/* ==========================================================================
   Elementos Compartidos: Confeti y Botón de Música
   ========================================================================== */
#musica {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  border: 0;
  border-radius: 2rem;
  padding: 0.65rem 1.15rem;
  background: var(--lila);
  color: var(--noche);
  font: 700 0.92rem "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}

#musica:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

#musica:focus-visible {
  outline: 3px solid #fff;
}

#confeti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.fin {
  text-align: center;
  font: 600 1.6rem "Caveat", cursive;
  color: var(--rosa);
  margin-top: 2rem;
}

/* Modo Accesibilidad: Reducción de Movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  body::before {
    animation: none !important;
    transition: none !important;
  }
}
