/*
 * Invitación Web — Quinceañera Camila Alessandra (18 Jul 2026)
 * styles.css — Estilos completos: tokens, layout, secciones, animaciones.
 * Concepto: "Jardín en flor" — acuarelado, floral, berry-rosa + dorado botánico.
 * Mobile-first · sin framework · fuentes Google: Cormorant Garamond + Jost.
 */

/* Asegurar que [hidden] siempre oculte aunque haya display:flex en la clase */
[hidden] { display: none !important; }

/* ══════════════════════════════════════════════════════
   TOKENS — Paleta "Jardín en flor"
   Actualizada 2026-06-20 según imagen de referencia
   ══════════════════════════════════════════════════════ */
:root {
  --blanco-flor:      #FDF6F6;
  --rosa-acuarela:    #F2C4C8;
  --berry-rosa:       #A8445E;
  --dorado-botanico:  #C9A84C;
  --carbon-texto:     #2C1A20;

  /* Derivados */
  --berry-hover:      #8B3249;
  --berry-light:      #F8EEF1;
  --text-muted:       #7A5060;
  --border-subtle:    rgba(168, 68, 94, 0.15);
  --section-soft-bg:  rgba(242, 196, 200, 0.18);

  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, -apple-system, sans-serif;

  /* Espaciado fluido */
  --pad-section: clamp(4rem, 9vw, 7rem);
  --container:   min(780px, 100% - 3rem);

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--blanco-flor);
  color: var(--carbon-texto);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { list-style: none; }
fieldset { border: none; }

/* ══════════════════════════════════════════════════════
   ACCESIBILIDAD
   ══════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2.5px solid var(--berry-rosa);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════
   TIPOGRAFÍA UTILITARIA
   ══════════════════════════════════════════════════════ */
.font-util {
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-label {
  display: block;
  color: var(--berry-rosa);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--carbon-texto);
  line-height: 1.15;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════
   LAYOUT BASE
   ══════════════════════════════════════════════════════ */
.container { width: var(--container); margin-inline: auto; }

.section-full {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-pad {
  padding-block: var(--pad-section);
  position: relative;
  overflow: hidden;
}

.section-dark {
  background: var(--carbon-texto);
  color: var(--blanco-flor);
}

.section-soft { background: var(--section-soft-bg); }

/* ══════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--berry-rosa);
  color: var(--blanco-flor);
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2.25rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), transform 0.15s;
}
.btn-primary:hover  { background: var(--berry-hover); }
.btn-primary:active { transform: scale(0.97); }

.btn--full { width: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid var(--berry-rosa);
  color: var(--berry-rosa);
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 1.6vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.35rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--berry-rosa); color: var(--blanco-flor); }

/* ══════════════════════════════════════════════════════
   DIVISORES ORGÁNICOS
   ══════════════════════════════════════════════════════ */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ══════════════════════════════════════════════════════
   SPLASH — SOBRE PREMIUM CON SELLO CTA
   ══════════════════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100svh;
  z-index: 900;
  background: linear-gradient(170deg, #FDF6F6 0%, #FAE8EC 55%, #F5DDE2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  transition: opacity 0.65s var(--ease-out);
}
#splash.fade-out { opacity: 0; pointer-events: none; }

/* Ramas botánicas laterales */
.env-flora {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 7vw, 76px);
  pointer-events: none;
  z-index: 0;
}
.env-flora--left  { left: 0; }
.env-flora--right { right: 0; }
.env-flora svg    { width: 100%; height: auto; display: block; }

/* Escena: stage full-width — el sobre vive aquí */
.env-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  animation: env-fadein 0.9s var(--ease-out) both;
}

@keyframes env-fadein {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Sobre principal */
.env-card {
  position: relative;
  width: min(96vw, 420px);
  min-height: 460px;
  background: linear-gradient(158deg, #FBECEE 0%, #F5DCE0 55%, #EECCD4 100%);
  border-radius: 6px;
  box-shadow:
    0 28px 70px rgba(168,68,94,0.22),
    0 6px 22px rgba(0,0,0,0.10);
  overflow: visible;
}

/* Interior del sobre con pliegues en V */
.env-card__back {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  z-index: 0;
}
.env-back__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Tarjeta blanca de invitación (peeking sobre el sobre) */
.env-inner {
  position: absolute;
  top: -34px;          /* sobresale 34px — se ve dentro del sobre */
  bottom: 42px;
  left: 5%;            /* 90% del ancho del sobre en mobile */
  right: 5%;
  background: #fff;
  border-radius: 4px 4px 3px 3px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.13), 0 2px 10px rgba(168,68,94,0.08);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.env-stage.is-opening .env-inner { transform: translateY(-12px); }

/* Contenido textual de la tarjeta */
.env-inner__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1rem 0.6rem;
  gap: 0.22rem;
}

.env-inner__pre {
  font-size: clamp(0.54rem, 1.6vw, 0.62rem);
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.75;
  text-transform: uppercase;
}

.env-xv-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 0;
}

.env-xv {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 16vw, 4.6rem);
  font-style: italic;
  line-height: 0.88;
  background: linear-gradient(
    105deg,
    var(--berry-rosa) 0%, #CF3D5F 18%,
    var(--dorado-botanico) 40%, #F0D880 50%,
    var(--dorado-botanico) 60%, #CF3D5F 82%,
    var(--berry-rosa) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: xv-shimmer 7s linear infinite;
}

.env-anos {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 3.5vw, 1.3rem);
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.05em;
}

.env-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 7vw, 2rem);
  font-style: italic;
  color: var(--carbon-texto);
  margin-top: 0.15rem;
}

.env-divider {
  width: clamp(90px, 28vw, 130px);
  margin: 0.35rem auto 0.12rem;
}
.env-divider svg { width: 100%; display: block; }

.env-fecha {
  display: block;
  font-size: clamp(0.54rem, 1.6vw, 0.64rem);
  letter-spacing: 0.13em;
  color: var(--text-muted);
}

/* Ilustración quinceañera — por encima de todo, peeking */
.env-ilustracion {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: clamp(145px, 46vw, 190px);
  pointer-events: none;
  z-index: 7;
  opacity: 1;
  filter: drop-shadow(-5px 3px 18px rgba(168,68,94,0.17));
}

/* Cara delantera del sobre — doblez en diamante */
.env-card__front {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(175deg, #F6D6DC 0%, #EACAD2 55%, #E2BAC3 100%);
  clip-path: polygon(0% 100%, 0% 22%, 50% 0%, 100% 22%, 100% 100%);
  z-index: 5;
  transform-origin: top center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease 0.1s;
}
.env-stage.is-opening .env-card__front {
  transform: perspective(700px) rotateX(-172deg);
  opacity: 0;
}

/* Sello de cera — botón CTA principal */
.env-seal-button {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
}
.env-seal-button:hover  { transform: translateX(-50%) scale(1.06); }
.env-seal-button:active { transform: translateX(-50%) scale(0.96); }
.env-seal-button:focus-visible {
  outline: 2px dashed var(--dorado-botanico);
  outline-offset: 7px;
  border-radius: 50%;
}
.env-stage.is-opening .env-seal-button {
  transform: translateX(-50%) scale(1.12);
  opacity: 0;
}

.env-seal__svg {
  width: clamp(86px, 22vw, 108px);
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(201,168,76,0.50));
  animation: seal-glow 3s ease-in-out infinite alternate;
  display: block;
}

@keyframes seal-glow {
  from { filter: drop-shadow(0 4px 12px rgba(201,168,76,0.32)); }
  to   { filter: drop-shadow(0 9px 30px rgba(201,168,76,0.68)); }
}

/* Botón de ayuda (secundario, texto discreto) */
.env-hint-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(0.54rem, 1.5vw, 0.62rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.68;
  padding: 0.35rem 0.6rem;
  text-decoration: underline;
  text-decoration-color: rgba(168,68,94,0.25);
  text-underline-offset: 3px;
  transition: opacity 0.2s, color 0.2s;
  margin: 0;
}
.env-hint-btn:hover { opacity: 0.9; color: var(--berry-rosa); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE SPLASH
   ══════════════════════════════════════════════════════ */

/* ── Mobile pequeño (≤390 px) ── */
@media (max-width: 390px) {
  .env-card    { width: min(96vw, 390px); min-height: 420px; }
  .env-inner   { top: -28px; bottom: 38px; left: 5%; right: 5%; }
  .env-inner__text { padding: 1.1rem 0.9rem 0.5rem; }
  .env-xv      { font-size: clamp(3rem, 14vw, 3.8rem); }
  .env-name    { font-size: clamp(1.3rem, 6.5vw, 1.65rem); }
  .env-seal__svg { width: 82px; }
  .env-seal-button { bottom: 18px; }
  .env-ilustracion { width: clamp(130px, 42vw, 160px); right: -6px; bottom: -4px; }
}

/* ── Tablet (768–1023 px) ── */
@media (min-width: 768px) {
  #splash        { padding: 1.5rem; }
  .env-card      { width: min(92vw, 860px); min-height: 500px; }
  .env-inner     { top: -38px; bottom: 50px; left: 6%; right: 6%; } /* 88% ancho */
  .env-inner__text { padding: 1.6rem 1.4rem 0.8rem; }
  .env-xv        { font-size: clamp(4rem, 7.5vw, 5.2rem); }
  .env-name      { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
  .env-inner__pre,
  .env-fecha     { font-size: 0.66rem; }
  .env-ilustracion { width: clamp(185px, 22vw, 240px); right: -12px; bottom: -10px; }
  .env-seal__svg   { width: 96px; }
  .env-seal-button { bottom: 22px; }
}

/* ── Desktop (≥1024 px) ── */
@media (min-width: 1024px) {
  #splash        { padding: 2rem; }
  .env-card      { width: min(84vw, 1040px); min-height: 520px; } /* menos ancho que antes */
  .env-inner     { top: -42px; bottom: 46px; left: 7%; right: 7%; } /* 86% ancho */
  .env-inner__text {
    padding: 2.2rem 255px 1rem 2rem;
    text-align: left;
    align-items: flex-start;
    gap: 0.28rem;
  }
  .env-xv-wrap   { align-items: flex-start; }
  .env-xv        { font-size: clamp(4.8rem, 7vw, 6.4rem); }
  .env-anos      { font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
  .env-name      { font-size: clamp(1.9rem, 2.8vw, 2.8rem); }
  .env-inner__pre,
  .env-fecha     { font-size: 0.68rem; }
  .env-divider   { margin: 0.55rem 0 0.25rem; }
  .env-ilustracion { width: clamp(230px, 20vw, 290px); right: -18px; bottom: -18px; }
  .env-seal-button { bottom: 26px; }
  .env-seal__svg   { width: clamp(100px, 8.5vw, 112px); }
}

/* ── Extra-large (≥1440 px) ── */
@media (min-width: 1440px) {
  .env-card      { width: min(82vw, 1100px); min-height: 540px; } /* proporcional */
  .env-inner     { top: -44px; bottom: 50px; left: 7%; right: 7%; }
  .env-inner__text { padding: 2.4rem 270px 1.2rem 2.2rem; }
  .env-ilustracion { width: clamp(250px, 19vw, 310px); right: -20px; bottom: -20px; }
  .env-seal-button { bottom: 28px; }
  .env-seal__svg   { width: 116px; }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  .env-stage       { animation: none; opacity: 1; }
  .env-seal__svg   { animation: none; }
  .env-inner       { transition: none; }
  .env-card__front { transition: none; }
  .env-seal-button { transition: none; }
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__wash::before {
  content: '';
  position: absolute;
  width: 70%;
  height: 65%;
  top: -20%;
  right: -18%;
  background: radial-gradient(ellipse at center, var(--rosa-acuarela) 0%, transparent 68%);
  opacity: 0.32;
  border-radius: 55% 45% 50% 60% / 60% 50% 45% 55%;
}
.hero__wash::after {
  content: '';
  position: absolute;
  width: 55%;
  height: 55%;
  bottom: -12%;
  left: -12%;
  background: radial-gradient(ellipse at center, var(--rosa-acuarela) 0%, transparent 68%);
  opacity: 0.22;
  border-radius: 50% 60% 55% 45% / 45% 55% 60% 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(6rem, 12vw, 9rem) 1.5rem clamp(4rem, 8vw, 6rem);
  width: 100%;
  max-width: 620px;
}

.hero__eyebrow {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero__xv {
  display: block;
  font-size: clamp(5rem, 22vw, 10rem);
  font-style: italic;
  line-height: 0.85;
  position: relative;
  color: var(--berry-rosa); /* fallback si background-clip no aplica */
}

/* Cada letra es un bloque independiente para el shimmer + drop animation */
.xv-x,
.xv-v {
  display: inline-block;
  background: linear-gradient(
    105deg,
    var(--berry-rosa) 0%,
    #CF3D5F 18%,
    var(--dorado-botanico) 38%,
    #F0D880 50%,
    var(--dorado-botanico) 62%,
    #CF3D5F 82%,
    var(--berry-rosa) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: xv-shimmer 7s linear infinite;
}

/* Al disparar --animate: drop de cada letra + shimmer continúa */
.hero__xv--animate .xv-x {
  animation:
    letter-drop 1.05s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    xv-shimmer 7s linear infinite;
}
.hero__xv--animate .xv-v {
  animation:
    letter-drop 1.05s 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    xv-shimmer 7s 0.24s linear infinite;
}

/* Partículas flotantes doradas alrededor del XV */
.xv-sparkles {
  position: absolute;
  inset: -24px;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.xv-spark {
  position: absolute;
  border-radius: 50%;
  animation: xv-spark-float var(--dur, 3.2s) var(--del, 0s) ease-out infinite;
}

.hero__anos {
  display: block;
  font-size: clamp(1.6rem, 6.5vw, 3.8rem);
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.1em;
}

.hero__name {
  display: block;
  font-size: clamp(2.8rem, 11vw, 6.5rem);
  font-style: italic;
  color: var(--carbon-texto);
  margin-top: 0.1em;
}

.hero__fecha {
  color: var(--berry-rosa);
  margin-bottom: 1.25rem;
}

.hero__frase {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 3rem;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--berry-rosa);
  text-decoration: none;
  opacity: 0.65;
  animation: bob 2.2s ease-in-out infinite;
  transition: opacity 0.2s;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll svg { width: 22px; height: 22px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ══════════════════════════════════════════════════════
   VINE (enredadera animada — elemento firma)
   ══════════════════════════════════════════════════════ */
.vine-container {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: clamp(90px, 20vw, 170px);
}

/* Guirnalda botánica — elemento horizontal, flujo normal */
.ubi-garland {
  position: relative !important;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 2rem;
  height: 70px;
}

.vine--tl   { top: 0;    left: 0; }
.vine--br   { bottom: 0; right: 0; transform: rotate(180deg); }
.vine--rsvp { bottom: 0; left: 0;  transform: scaleX(-1); }

.vine-svg { display: block; width: 100%; height: auto; }

.vine-path-main {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.2s var(--ease-out);
}

.vine-leaf {
  transition: opacity 0.5s 2s var(--ease-out);
}

.vine-container.is-visible .vine-path-main {
  stroke-dashoffset: 0;
}
.vine-container.is-visible .vine-leaf {
  opacity: 0.8 !important;
}

/* Las rosas de la guirnalda usan delay mayor al de las ramas (2.2s) */
.ubi-rose {
  transition: opacity 0.8s 1.9s var(--ease-out) !important;
}
.ubi-garland.is-visible .ubi-rose {
  opacity: 1 !important;
}
/* Pequeños capullos y hojas entran aún más tarde */
.ubi-garland .vine-leaf:not(.ubi-rose) {
  transition: opacity 0.5s 2.3s var(--ease-out) !important;
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger automático para elementos hermanos */
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }
.reveal:nth-child(5) { transition-delay: 0.28s; }
.reveal:nth-child(6) { transition-delay: 0.35s; }

/* ══════════════════════════════════════════════════════
   BIENVENIDA
   ══════════════════════════════════════════════════════ */
#bienvenida { text-align: center; }

.bienvenida__inner { max-width: 600px; margin-inline: auto; }

.bienvenida__texto {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  color: var(--carbon-texto);
  border: none;
  padding: 0;
  margin-block: 1.25rem 1.5rem;
}

.bienvenida__firma {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════════
   CUENTA REGRESIVA
   ══════════════════════════════════════════════════════ */
.countdown__fecha {
  color: rgba(242, 196, 200, 0.75);
  margin-bottom: 2.25rem;
}

.countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 1.5rem);
  flex-wrap: wrap;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 11vw, 5.5rem);
  font-weight: 300;
  color: var(--blanco-flor);
  line-height: 1;
  min-width: clamp(68px, 16vw, 100px);
  text-align: center;
  background: rgba(253, 246, 246, 0.06);
  border: 1px solid rgba(242, 196, 200, 0.25);
  border-radius: 3px;
  padding: 0.4rem 0.5rem;
}

.countdown__lbl { color: var(--rosa-acuarela); }

.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: rgba(242, 196, 200, 0.4);
  line-height: 1;
  margin-top: -1.2rem;
  align-self: flex-start;
}

/* ══════════════════════════════════════════════════════
   ITINERARIO — TIMELINE
   ══════════════════════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin-inline: auto;
}

.timeline__item {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}

.timeline__stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.timeline__dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--berry-rosa);
  background: var(--blanco-flor);
  margin-top: 0.25rem;
  position: relative;
}
.timeline__dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--berry-rosa);
  border-radius: 50%;
}

.timeline__stem::after {
  content: '';
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--rosa-acuarela), transparent);
  opacity: 0.5;
  margin-top: 5px;
}
.timeline__item:last-child .timeline__stem::after { display: none; }

.timeline__body {
  padding-bottom: 2.25rem;
  flex: 1;
}
.timeline__item:last-child .timeline__body { padding-bottom: 0; }

.timeline__time {
  color: var(--berry-rosa);
  display: block;
  margin-bottom: 0.2rem;
}

.timeline__heading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--carbon-texto);
  margin-bottom: 0.15rem;
}

.timeline__place {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   UBICACIÓN — tarjetas con animación de pin
   ══════════════════════════════════════════════════════ */
.ubicacion__cards {
  display: grid;
  gap: 1.5rem;
}

/* ══ Nueva tarjeta de ubicación ══ */
.ubi-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(168,68,94,0.08);
  box-shadow: 0 4px 28px rgba(168,68,94,0.09), 0 1px 6px rgba(0,0,0,0.05);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
}
.ubi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(168,68,94,0.16), 0 2px 10px rgba(0,0,0,0.07);
}
.ubi-card--gold {
  border-color: rgba(201,168,76,0.10);
  box-shadow: 0 4px 28px rgba(201,168,76,0.10), 0 1px 6px rgba(0,0,0,0.05);
}
.ubi-card--gold:hover {
  box-shadow: 0 14px 44px rgba(201,168,76,0.18), 0 2px 10px rgba(0,0,0,0.07);
}

/* Banda de cabecera */
.ubi-card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(110deg, var(--berry-rosa) 0%, #bf3d5a 100%);
  color: #fff;
}
.ubi-card__head--gold {
  background: linear-gradient(110deg, #9c7420 0%, var(--dorado-botanico) 55%, #d9b84e 100%);
}

.ubi-card__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.ubi-card__head-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ubi-card__tipo {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}
.ubi-card__hora {
  font-size: 0.70rem;
  letter-spacing: 0.09em;
  opacity: 0.80;
}

/* Cuerpo */
.ubi-card__body {
  padding: 1.5rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ubi-card__nombre {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.8vw, 1.65rem);
  font-weight: 400;
  font-style: normal;
  color: var(--carbon-texto);
  line-height: 1.25;
  margin: 0 0 0.2rem;
}
.ubi-card__nombre em {
  font-style: italic;
  color: var(--berry-rosa);
}
.ubi-card--gold .ubi-card__nombre em {
  color: #8a6b1a;
}

.ubi-card__dir {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 0.4rem;
}

.ubi-card__btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

/* Botones de navegación */
.ubi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.52em 1.1em;
  border-radius: 30px;
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s, background 0.22s, color 0.22s;
  background: var(--berry-rosa);
  color: #fff;
  box-shadow: 0 3px 14px rgba(168,68,94,0.28);
}
.ubi-btn:hover, .ubi-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(168,68,94,0.40);
}
.ubi-btn--outline {
  background: transparent;
  color: var(--berry-rosa);
  border-color: rgba(168,68,94,0.35);
  box-shadow: none;
}
.ubi-btn--outline:hover, .ubi-btn--outline:focus-visible {
  background: rgba(168,68,94,0.05);
  border-color: var(--berry-rosa);
  box-shadow: 0 3px 12px rgba(168,68,94,0.14);
  transform: translateY(-2px);
}
.ubi-btn--gold {
  background: var(--dorado-botanico);
  color: #fff;
  box-shadow: 0 3px 14px rgba(201,168,76,0.30);
}
.ubi-btn--gold:hover, .ubi-btn--gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(201,168,76,0.44);
}
.ubi-btn--gold-outline {
  background: transparent;
  color: #7a5e12;
  border-color: rgba(201,168,76,0.40);
  box-shadow: none;
}
.ubi-btn--gold-outline:hover, .ubi-btn--gold-outline:focus-visible {
  background: rgba(201,168,76,0.07);
  border-color: var(--dorado-botanico);
  box-shadow: 0 3px 12px rgba(201,168,76,0.16);
  transform: translateY(-2px);
}

/* Decoración botánica esquina */
.ubi-card__flor {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90px;
  height: 90px;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   PADRINOS
   ══════════════════════════════════════════════════════ */
.padrinos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.padrino__card {
  text-align: center;
  padding: 1.5rem 0.75rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: rgba(253, 246, 246, 0.7);
}

.padrino__icon svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.6rem;
}

.padrino__cat {
  color: var(--berry-rosa);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
}

.padrino__nombre {
  font-size: 0.9rem;
  color: var(--carbon-texto);
}

/* ══════════════════════════════════════════════════════
   CÓDIGO DE VESTIMENTA
   ══════════════════════════════════════════════════════ */
.vestimenta__desc {
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.vestimenta__paleta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(44, 26, 32, 0.1);
  box-shadow: 0 2px 8px rgba(44, 26, 32, 0.08);
  transition: transform 0.18s var(--ease-out);
}
.swatch:hover { transform: scale(1.14); }

.vestimenta__sublabel {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.vestimenta__nota {
  color: var(--text-muted);
  margin-top: 1rem;
}

.swatch--avoid {
  position: relative;
  opacity: 0.75;
}
.swatch--avoid::before,
.swatch--avoid::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 65%; height: 2px;
  background: rgba(44, 26, 32, 0.55);
  border-radius: 1px;
}
.swatch--avoid::before { transform: translate(-50%, -50%) rotate(45deg); }
.swatch--avoid::after  { transform: translate(-50%, -50%) rotate(-45deg); }


/* ══════════════════════════════════════════════════════
   SECCIÓN INVITACIÓN PERSONAL
   ══════════════════════════════════════════════════════ */
.section-invitation {
  background:
    radial-gradient(ellipse 72% 52% at 50% 38%, rgba(168,68,94,0.10) 0%, transparent 68%),
    linear-gradient(165deg, #FDF6F6 0%, #FAE8EC 58%, #F3D4DA 100%);
  position: relative;
  overflow: hidden;
}

/* ── Pétalos que caen desde arriba ── */
.inv-petal {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  top: -30px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: petalFall linear infinite;
}

.inv-petal:nth-child(1) { left:8%;  width:15px; height:21px; background:rgba(242,196,200,0.85); animation-duration:12s; animation-delay:0s; }
.inv-petal:nth-child(2) { left:25%; width:11px; height:16px; background:rgba(232,176,184,0.75); animation-duration:15s; animation-delay:2.5s; }
.inv-petal:nth-child(3) { left:60%; width:18px; height:13px; background:rgba(242,196,200,0.80); animation-duration:13s; animation-delay:5s; }
.inv-petal:nth-child(4) { left:80%; width:12px; height:18px; background:rgba(232,176,184,0.72); animation-duration:17s; animation-delay:1s; }
.inv-petal:nth-child(5) { left:45%; width:14px; height:19px; background:rgba(245,204,210,0.80); animation-duration:20s; animation-delay:8s; }

@keyframes petalFall {
  0%   { transform: translate(0, 0)       rotate(0deg);   opacity: 0; }
  6%   { opacity: 0.50; }
  40%  { transform: translate(22px, 42vh)  rotate(95deg);  }
  85%  { opacity: 0.35; }
  100% { transform: translate(-14px, 95vh) rotate(220deg); opacity: 0; }
}

/* ── Rosas de fondo que se pintan ── */
.bg-rose {
  position: absolute;
  pointer-events: none;
  opacity: 0.13;
  filter: blur(0.8px);
}
/* Posición y tamaño de cada rosa */
.bg-rose--1 { bottom: -30px; left: -40px;  width: 260px; height: 260px; transform: rotate(-18deg); }
.bg-rose--2 { top: -20px;    right: -35px; width: 210px; height: 210px; transform: rotate(22deg);  }
.bg-rose--3 { top: 42%;      left: 52%;    width: 150px; height: 150px; transform: rotate(-8deg); opacity: 0.08; }

/* Capas con opacity 0 por defecto hasta activarse */
.bg-rose .rose-outer,
.bg-rose .rose-mid,
.bg-rose .rose-inner,
.bg-rose .rose-cup,
.bg-rose .rose-center { opacity: 0; animation-play-state: paused; }

/* Cuando la sección entra en pantalla, se activan las animaciones */
.section-invitation.roses-active .bg-rose .rose-outer {
  animation: roseLayerIn 1.2s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0s;
  animation-play-state: running;
}
.section-invitation.roses-active .bg-rose .rose-mid {
  animation: roseLayerIn 1.1s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.9s;
  animation-play-state: running;
}
.section-invitation.roses-active .bg-rose .rose-inner {
  animation: roseLayerIn 1.0s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 1.7s;
  animation-play-state: running;
}
.section-invitation.roses-active .bg-rose .rose-cup {
  animation: roseLayerIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 2.4s;
  animation-play-state: running;
}
.section-invitation.roses-active .bg-rose .rose-center {
  animation: roseLayerIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 3.0s;
  animation-play-state: running;
}

/* Rosa 2 y 3: empieza un poco después que la 1 */
.section-invitation.roses-active .bg-rose--2 .rose-outer { animation-delay: 0.4s; }
.section-invitation.roses-active .bg-rose--2 .rose-mid   { animation-delay: 1.3s; }
.section-invitation.roses-active .bg-rose--2 .rose-inner { animation-delay: 2.1s; }
.section-invitation.roses-active .bg-rose--2 .rose-cup   { animation-delay: 2.8s; }
.section-invitation.roses-active .bg-rose--2 .rose-center{ animation-delay: 3.4s; }
.section-invitation.roses-active .bg-rose--3 .rose-outer { animation-delay: 1.0s; }
.section-invitation.roses-active .bg-rose--3 .rose-mid   { animation-delay: 1.9s; }
.section-invitation.roses-active .bg-rose--3 .rose-inner { animation-delay: 2.7s; }
.section-invitation.roses-active .bg-rose--3 .rose-cup   { animation-delay: 3.3s; }
.section-invitation.roses-active .bg-rose--3 .rose-center{ animation-delay: 3.8s; }

@keyframes roseLayerIn {
  0%   { opacity: 0; transform: scale(0.75); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .section-invitation.roses-active .bg-rose .rose-outer,
  .section-invitation.roses-active .bg-rose .rose-mid,
  .section-invitation.roses-active .bg-rose .rose-inner,
  .section-invitation.roses-active .bg-rose .rose-cup,
  .section-invitation.roses-active .bg-rose .rose-center {
    animation: none;
    opacity: 1;
  }
}

/* ── Tarjeta personal ── */
.inv-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(168,68,94,0.12);
  box-shadow: 0 4px 32px rgba(168,68,94,0.12), 0 1px 4px rgba(168,68,94,0.06);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.2rem, 4vw, 2rem);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep periódico */
.inv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,0.60) 50%,
    transparent 75%
  );
  animation: invCardShimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}


@keyframes invCardShimmer {
  0%, 58% { left: -100%; }
  100%    { left: 160%; }
}

/* Glow suave en el saludo */
#inv-saludo {
  animation: saludoGlow 4s ease-in-out infinite;
}

@keyframes saludoGlow {
  0%, 100% { text-shadow: none; }
  50%      { text-shadow: 0 2px 26px rgba(168,68,94,0.22); }
}

@media (prefers-reduced-motion: reduce) {
  .inv-petal,
  .inv-card,
  .inv-card::before,
  #inv-saludo { animation: none !important; }
  .inv-card { box-shadow: 0 4px 32px rgba(168,68,94,0.12); }
}

/* ══════════════════════════════════════════════════════
   MESA DE REGALOS
   ══════════════════════════════════════════════════════ */
.regalos__intro {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.regalos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.regalo__card {
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  text-align: center;
  background: rgba(253, 246, 246, 0.7);
}

.regalo__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.regalo__title {
  color: var(--berry-rosa);
  margin-bottom: 0.5rem;
}

.regalo__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Fondo rosa pálido suave para la sección RSVP */
.section-rsvp {
  background: #F5E2E8;
}

/* ── Divisor ola entre sección invitación y RSVP ── */
.wave-divider--inv-rsvp {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}
.wave-divider--inv-rsvp svg {
  display: block;
  width: 100%;
  height: 88px;
}

/* ══════════════════════════════════════════════════════
   RSVP
   ══════════════════════════════════════════════════════ */
.rsvp__intro {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field__label {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--carbon-texto);
}

.required { color: var(--berry-rosa); }
.field__optional { font-weight: 300; color: var(--text-muted); }

.field__input {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: 3px;
  background: #fff;
  color: var(--carbon-texto);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.field__input:focus {
  outline: none;
  border-color: var(--berry-rosa);
  box-shadow: 0 0 0 3px rgba(168, 68, 94, 0.08);
}
.field__input.is-error { border-color: #c0392b; }

select.field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8445E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field__textarea { resize: vertical; min-height: 88px; }

.field__error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1.1em;
}

.field__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.field__counter {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

.field__fieldset {
  border: 1.5px solid var(--border-subtle);
  border-radius: 3px;
  padding: 1rem 1.1rem 1.1rem;
}
.field__fieldset .field__label { margin-bottom: 0.85rem; }

.radio-group { display: flex; flex-direction: column; gap: 0.65rem; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.15s;
}
.radio-label input:checked + .radio-dot {
  border-color: var(--berry-rosa);
}
.radio-label input:checked + .radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--berry-rosa);
  border-radius: 50%;
}
.radio-label input:focus-visible + .radio-dot {
  outline: 2px solid var(--berry-rosa);
  outline-offset: 2px;
}

.rsvp__feedback {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}
.rsvp__feedback[hidden] { display: none; }
.rsvp__feedback.success {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--dorado-botanico);
  color: #5a4a1a;
}
.rsvp__feedback.error {
  background: rgba(192, 57, 43, 0.07);
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: #c0392b;
}

/* ══════════════════════════════════════════════════════
   REPRODUCTOR DE MÚSICA
   ══════════════════════════════════════════════════════ */
/* ── Reproductor de música (pill flotante) ── */
.music-player {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--berry-rosa);
  color: #fff;
  border-radius: 40px;
  padding: 0.52rem 0.6rem 0.52rem 1rem;
  box-shadow: 0 4px 20px rgba(168,68,94,0.36);
  user-select: none;
}
.music-player[hidden] { display: none; }

.music-player__note {
  font-size: 0.88rem;
  line-height: 1;
  opacity: 0.82;
  animation: note-bob 2s ease-in-out infinite alternate;
}
@keyframes note-bob {
  from { opacity: 0.60; transform: scale(0.88) rotate(-8deg); }
  to   { opacity: 1;    transform: scale(1.06) rotate(6deg); }
}

.music-player__song {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  white-space: nowrap;
  opacity: 0.93;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-player__btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.12s;
}
.music-player__btn:hover  { background: rgba(255,255,255,0.34); }
.music-player__btn:active { transform: scale(0.90); }

.music-icon { width: 15px; height: 15px; }
.music-icon--hidden { display: none; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
  background: rgba(242, 196, 200, 0.1);
  border-top: 1px solid var(--border-subtle);
}

.footer__bloom svg {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.25rem;
}

.footer__gracias {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.55rem);
  font-style: italic;
  font-weight: 300;
  color: var(--carbon-texto);
  margin-bottom: 0.6rem;
}

.footer__firma { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — tablet +
   ══════════════════════════════════════════════════════ */
@media (min-width: 580px) {
  .radio-group { flex-direction: row; gap: 2rem; }
}

@media (min-width: 720px) {
  .ubicacion__cards {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .hero__content { padding-inline: 3rem; }
}

/* ══════════════════════════════════════════════════════
   GARLAND BOTÁNICA — HERO
   ══════════════════════════════════════════════════════ */
.hero__garland-wrap {
  width: 100%;
  margin-block: 1.75rem 0;
  pointer-events: none;
  overflow: visible;
}

.hero__garland {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Tallos, ramas y ramillas — stroke-dashoffset reveal */
.garland-stem,
.garland-branch,
.garland-twig {
  stroke: var(--dorado-botanico);
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 900;   /* será sobreescrito por JS con getTotalLength() */
  stroke-dashoffset: 900;
}

.garland-stem   { stroke-width: 1.7; transition: stroke-dashoffset 1.7s var(--ease-out); }
.garland-branch { stroke-width: 1.3; transition: stroke-dashoffset 1.15s var(--ease-out); }
.garland-twig   { stroke-width: 0.9; transition: stroke-dashoffset 0.75s var(--ease-out); }

.garland-stem.is-in,
.garland-branch.is-in,
.garland-twig.is-in { stroke-dashoffset: 0; }

/* Hojas — brotan desde su base */
.garland-leaf {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
              opacity   0.28s ease;
}
.garland-leaf.is-in { transform: scale(1); opacity: 1; }

/* Flores — emergen con resorte */
.garland-bloom {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.35s ease;
}
.garland-bloom.is-in { transform: scale(1); opacity: 1; }

/* Destellos dorados — aparecen y se desvanecen */
.garland-sparkle { opacity: 0; }

#garland-sparkles.is-in .garland-sparkle {
  animation: sparkle-blink 1.6s var(--del, 0s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sparkle-blink {
  0%   { opacity: 0; }
  25%  { opacity: 0.95; }
  65%  { opacity: 0.88; }
  100% { opacity: 0; }
}

/* ── XV keyframes ── */
@keyframes xv-shimmer {
  0%   { background-position: 220% center; }
  100% { background-position: -220% center; }
}

@keyframes letter-drop {
  0%   { opacity: 0; transform: translateY(-56px) scale(0.62) rotate(-6deg); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes xv-spark-float {
  0%   { opacity: 0;    transform: translate(0, 0) scale(0.5); }
  18%  { opacity: 0.95; transform: translate(var(--tx, 4px), -10px) scale(1); }
  70%  { opacity: 0.65; transform: translate(var(--tx, 4px), var(--ty, -50px)) scale(0.75); }
  100% { opacity: 0;    transform: translate(var(--tx, 4px), var(--ty2, -85px)) scale(0.2); }
}

/* ══════════════════════════════════════════════════════
   PÉTALOS CAYENDO — hero background
   ══════════════════════════════════════════════════════ */
.petals-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.petal {
  position: absolute;
  top: -22px;
  border-radius: 62% 0 62% 0;
  animation: petal-fall var(--dur, 5s) var(--del, 0s) linear infinite;
  will-change: transform, opacity;
}

@keyframes petal-fall {
  0%   { transform: translateY(0)      rotate(0deg)   translateX(0px);  opacity: 0; }
  8%   {                                                                  opacity: 0.75; }
  33%  { transform: translateY(33vh)   rotate(140deg) translateX(22px); }
  66%  { transform: translateY(66vh)   rotate(295deg) translateX(-17px); }
  88%  {                                                                  opacity: 0.55; }
  100% { transform: translateY(112vh)  rotate(460deg) translateX(10px);  opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   HERO — ILUSTRACIÓN QUINCEAÑERA
   ══════════════════════════════════════════════════════ */
.hero__ilustracion {
  position: absolute;
  bottom: 0;
  /* móvil: centrada */
  left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 72vw, 340px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease 0.5s;
  filter: drop-shadow(-6px 4px 24px rgba(168, 68, 94, 0.12));
  object-fit: contain;
  object-position: bottom center;
}
.hero__ilustracion.ilustracion-in { opacity: 0.92; }

/* tablet — vuelve a la esquina derecha */
@media (min-width: 600px) {
  .hero__ilustracion {
    left: auto;
    transform: none;
    right: -1%;
    width: clamp(220px, 44vw, 440px);
  }
  .hero__ilustracion.ilustracion-in { opacity: 0.95; }
}
@media (min-width: 900px) {
  .hero__ilustracion { right: 3%; width: clamp(280px, 36vw, 480px); bottom: -1%; }
  .hero__ilustracion.ilustracion-in { opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   BIENVENIDA — ENREDADERA ANIMADA CONTINUA
   ══════════════════════════════════════════════════════ */
#bienvenida { position: relative; overflow: hidden; }

.bienvenida-vine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(42px, 6vw, 75px);
  pointer-events: none;
  z-index: 0;
}
.bienvenida-vine--left  { left: 0; }
.bienvenida-vine--right { right: 0; transform: scaleX(-1); }

.bienvenida-vine__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Main vine — continously grows and retreats */
.bienvenida-vine-main {
  stroke: var(--dorado-botanico);
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
  /* animation set by JS after getTotalLength() */
}

@keyframes vine-breathe {
  from { stroke-dashoffset: var(--vine-len, 620); }
  to   { stroke-dashoffset: 0; }
}

/* Branches — appear and disappear sequentially */
.bienvenida-vine-branch {
  stroke: var(--dorado-botanico);
  stroke-width: 0.9;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
  /* stroke-dasharray/offset set by JS */
  animation: branch-appear 5.5s calc((var(--i, 1) - 1) * 0.92s) ease-in-out infinite;
}

@keyframes branch-appear {
  0%   { stroke-dashoffset: var(--branch-len, 80); opacity: 0; }
  14%  { opacity: 0.9; }
  45%  { stroke-dashoffset: 0; opacity: 1; }
  65%  { stroke-dashoffset: 0; opacity: 1; }
  82%  { opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Flowers at tips */
.bienvenida-vine-dot {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: dot-bloom 5.5s calc((var(--i, 1) - 1) * 0.92s) ease-in-out infinite;
}

@keyframes dot-bloom {
  0%   { transform: scale(0); opacity: 0; }
  20%  { transform: scale(1.15); opacity: 0.9; }
  45%  { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1); opacity: 0.9; }
  88%  { transform: scale(0.6); opacity: 0.2; }
  100% { transform: scale(0); opacity: 0; }
}

/* Leaves */
.bienvenida-vine-leaf {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: leaf-bloom 5.5s calc((var(--i, 1) - 1) * 0.92s) ease-in-out infinite;
}

@keyframes leaf-bloom {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  18%  { opacity: 0.7; }
  50%  { transform: scale(1) rotate(5deg); opacity: 0.8; }
  72%  { transform: scale(1.05) rotate(8deg); opacity: 0.75; }
  88%  { opacity: 0.2; }
  100% { transform: scale(0) rotate(-20deg); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   ITINERARIO — PÉTALOS CAYENDO
   ══════════════════════════════════════════════════════ */
#itinerario { position: relative; overflow: hidden; }

#itinerario-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  html { scroll-behavior: auto; }

  .reveal          { opacity: 1; transform: none; }
  .vine-path-main  { stroke-dashoffset: 0; }
  .vine-leaf       { opacity: 0.8 !important; }
  .hero__scroll    { animation: none; }
  .bob             { animation: none; }

  /* Garland: mostrar todo estático */
  .garland-stem,
  .garland-branch,
  .garland-twig   { stroke-dashoffset: 0; }
  .garland-leaf   { transform: scale(1); opacity: 1; }
  .garland-bloom  { transform: scale(1); opacity: 1; }
  .garland-sparkle { opacity: 0 !important; }
  .petals-rain    { display: none; }
  #itinerario-petals { display: none; }

  /* Ilustración: mostrar inmediatamente */
  .hero__ilustracion { opacity: 0.92; transition: none; }

  /* Bienvenida vine: mostrar estático */
  .bienvenida-vine-main   { animation: none; stroke-dashoffset: 0 !important; }
  .bienvenida-vine-branch { animation: none; opacity: 0.7; stroke-dashoffset: 0 !important; }
  .bienvenida-vine-dot    { animation: none; opacity: 0.8; transform: scale(1) !important; }
  .bienvenida-vine-leaf   { animation: none; opacity: 0.6; transform: scale(1) rotate(0deg) !important; }

  /* XV: mostrar letras estáticas con color sólido */
  .xv-x, .xv-v {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--berry-rosa) !important;
  }
  .xv-sparkles { display: none; }

  /* Ubicación: desactivar pin animations */
  .ubi-card__icon { animation: none; }
}
