@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --night: #020916;
  --gold: #d8b56a;
  --gold-light: #f3dfad;
  --white: #f8f4eb;
  --line: rgba(216,181,106,.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
}

/* ================= APERTURA ================= */

.opening {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: #020916;
  isolation: isolate;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/cielo-master.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1.001);
}

.darkness {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(2,9,22,.48) 0%, rgba(1,6,16,.78) 48%, rgba(0,3,10,.98) 100%);
  opacity: 1;
  transition: opacity 2.4s cubic-bezier(.2,.7,.2,1);
}

.milky-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(180,205,235,.12) 0%, rgba(100,140,190,.05) 28%, transparent 58%);
  transition: opacity 2.2s ease;
}

.stars-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.2s ease;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,250,235,.9);
  box-shadow: 0 0 7px rgba(255,250,235,.45);
  animation: twinkle 3.5s ease-in-out infinite;
}

@keyframes twinkle {
  0%,100% { opacity:.25; transform:scale(.8); }
  50% { opacity:1; transform:scale(1.25); }
}

.content {
  position: relative;
  z-index: 4;
  width: min(92%,720px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(24px,env(safe-area-inset-top)) 18px max(60px,env(safe-area-inset-bottom));
}

.phrase {
  margin:0;
  max-width:620px;
  color:var(--gold-light);
  font-size:clamp(17px,4.5vw,27px);
  font-weight:300;
  line-height:1.7;
  letter-spacing:.025em;
  text-shadow:0 2px 20px rgba(0,0,0,.8);
  opacity:0;
  transform:translateY(12px);
  transition:opacity 1.3s ease, transform 1.3s ease;
}

.phrase.visible { opacity:1; transform:translateY(0); }

.gold-line {
  width:64px;
  height:1px;
  margin:22px 0;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  opacity:0;
  transition:opacity 1s ease;
}

.gold-line.visible { opacity:1; }

.name {
  margin: 0;
  color: #f3dfad;
  font-family: "Great Vibes", "Brush Script MT", cursive;

  font-size: clamp(68px, 18vw, 135px);
  font-weight: 400;
  line-height: .9;
  white-space: nowrap;

  text-shadow:
    0 0 5px rgba(243, 223, 173, .35),
    0 0 14px rgba(243, 223, 173, .22),
    0 4px 25px rgba(0, 0, 0, .70);

  opacity: 0;
  transform: translateY(20px) scale(.97);

  transition:
    opacity 1.6s ease,
    transform 1.6s cubic-bezier(.2,.8,.2,1);
}

.name.visible { opacity:1; transform:translateY(0) scale(1); }

.subtitle {
  margin:18px 0 0;
  color:var(--gold-light);
  font-size:clamp(10px,2.7vw,14px);
  font-weight:500;
  letter-spacing:.42em;
  padding-left:.42em;
  opacity:0;
  transform:translateY(8px);
  transition:opacity 1s ease,transform 1s ease;
}

.subtitle.visible { opacity:1; transform:translateY(0); }

.date {
  margin:26px 0 0;
  color:var(--gold-light);
  font-size:clamp(12px,3.2vw,16px);
  font-weight:400;
  letter-spacing:.28em;
  padding-left:.28em;
  opacity:0;
  transform:translateY(8px);
  transition:opacity 1s ease,transform 1s ease;
}

.date.visible { opacity:1; transform:translateY(0); }

.discover,
.secondary-button {
  min-height:52px;
  padding:13px 27px;
  border:1px solid rgba(216,181,106,.9);
  border-radius:999px;
  background:rgba(2,9,22,.2);
  color:var(--gold-light);
  font-family:"Montserrat",Arial,sans-serif;
  font-size:11px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  cursor:pointer;
}

.discover {
  margin-top:32px;
  opacity:0;
  transform:translateY(9px);
  transition:opacity 1s ease,transform 1s ease,background .25s ease;
}

.discover.visible { opacity:1; transform:translateY(0); }

.scroll-hint {
  position:absolute;
  z-index:5;
  bottom:max(15px,env(safe-area-inset-bottom));
  left:0;
  right:0;
  text-align:center;
  opacity:0;
  transition:opacity 1s ease;
}

.scroll-hint.visible { opacity:.72; }

.scroll-hint span {
  display:block;
  color:var(--gold);
  font-size:22px;
}

.scroll-hint small {
  color:rgba(248,244,235,.72);
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
}

/* ================= INVITACIÓN - ESQUELETO ================= */

.invitation {
  background:#06111f;
}

.section {
  width:min(92%,760px);
  margin:0 auto;
  padding:72px 20px;
  border-bottom:1px solid var(--line);
  text-align:center;
}

.section h2 {
  margin:10px 0 18px;
  font-size:clamp(30px,7vw,46px);
  font-weight:400;
  color:var(--gold-light);
}

.closing h2 {
  font-family:"Great Vibes",cursive;
  font-size:clamp(70px,18vw,120px);
}

.eyebrow {
  margin:0;
  color:var(--gold);
  font-size:11px;
  letter-spacing:.28em;
  text-transform:uppercase;
}

.section-subtitle {
  margin:0;
  color:var(--gold);
  letter-spacing:.24em;
  text-transform:uppercase;
  font-size:12px;
}

.placeholder-text {
  max-width:620px;
  margin:22px auto 0;
  color:#d8dce5;
  line-height:1.8;
  font-size:15px;
}

.countdown {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:34px 0 18px;
}

.count-box {
  border:1px solid rgba(216,181,106,.22);
  border-radius:12px;
  padding:18px 8px;
}

.count-box span {
  display:block;
  color:var(--gold-light);
  font-size:clamp(24px,7vw,42px);
  font-weight:300;
}

.count-box small {
  color:#aeb6c4;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.event-date {
  color:var(--gold);
  font-size:13px;
}

.info-list {
  display:grid;
  gap:14px;
  margin-top:28px;
}

.info-item {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:10px;
  text-align:left;
}

.info-item strong {
  color:var(--gold-light);
  font-size:13px;
}

.info-item span {
  color:#d7dce5;
  font-size:14px;
}

.pending { opacity:.55; }

.rsvp-form {
  display:grid;
  gap:18px;
  margin-top:26px;
  text-align:left;
}

.rsvp-form label {
  display:grid;
  gap:8px;
  color:#dfe4ec;
  font-size:13px;
}

.rsvp-form input,
.rsvp-form select {
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:#0a1728;
  color:#fff;
  font:inherit;
}

.form-message {
  min-height:22px;
  margin-top:16px;
  color:var(--gold);
  font-size:13px;
}

.secondary-button:disabled {
  opacity:.4;
  cursor:not-allowed;
}

@media(max-width:600px){
  .sky { background-position:center center; }
  .content { width:100%; }
  .phrase { max-width:330px; line-height:1.65; }
  .name { font-size:clamp(78px,23vw,118px); }
  .discover { min-width:235px; }
  .section { padding:58px 18px; }
}

@media(prefers-reduced-motion:reduce){
  html { scroll-behavior:auto; }
  .darkness,.milky-glow,.stars-layer,.phrase,.gold-line,.name,.subtitle,.date,.discover{
    transition:none !important;
  }
  .star { animation:none; }
}

/* =========================================================
   V3 · BIENVENIDA
   Nueva atmósfera: azul noche + estrellas sutiles
   ========================================================= */

.welcome-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;

  display: grid;
  place-items: center;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(21, 48, 88, 0.42) 0%,
      rgba(7, 20, 39, 0.88) 42%,
      #020916 82%
    );

  isolation: isolate;
}

/* Pequeño brillo central */

.welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(216, 181, 106, 0.055),
      transparent 32%
    );
}

/* Estrellas decorativas */

.welcome-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.welcome-star {
  position: absolute;

  width: 2px;
  height: 2px;

  border-radius: 50%;

  background: rgba(255, 250, 235, 0.75);

  box-shadow:
    0 0 6px rgba(255, 250, 235, 0.35);

  opacity: 0;

  animation:
    welcomeStarAppear 2s ease forwards,
    welcomeStarTwinkle 4s ease-in-out infinite 2s;
}

@keyframes welcomeStarAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: var(--star-opacity);
  }
}

@keyframes welcomeStarTwinkle {
  0%, 100% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.35);
  }
}

/* Contenido */

.welcome-content {
  width: min(90%, 600px);

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  padding:
    max(35px, env(safe-area-inset-top))
    20px
    max(60px, env(safe-area-inset-bottom));

  opacity: 0;
  transform: translateY(20px);

  animation:
    welcomeContentIn 1.5s
    cubic-bezier(.2,.8,.2,1)
    .35s forwards;
}

@keyframes welcomeContentIn {

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

}

.welcome-eyebrow {
  margin: 0;

  color: var(--gold);

  font-size: 10px;
  font-weight: 500;

  letter-spacing: .30em;
  text-transform: uppercase;
}

.welcome-name {
  margin: 18px 0 0;

  color: var(--gold-light);

  font-family:
    "Great Vibes",
    "Brush Script MT",
    cursive;

  font-size: clamp(72px, 20vw, 130px);

  font-weight: 400;
  line-height: .9;

  text-shadow:
    0 0 12px rgba(243, 223, 173, .16),
    0 4px 30px rgba(0, 0, 0, .6);
}

.welcome-title {
  margin: 18px 0 0;

  color: var(--gold-light);

  font-size: 11px;
  font-weight: 500;

  letter-spacing: .42em;
  padding-left: .42em;

  text-transform: uppercase;
}

.welcome-divider {
  width: 70px;
  height: 1px;

  margin: 28px 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );

  opacity: .8;
}

.welcome-quote {
  margin: 0;

  color: #f1eadc;

  font-size: clamp(17px, 4.5vw, 23px);

  font-weight: 300;

  line-height: 1.7;

  letter-spacing: .015em;

  text-shadow:
    0 2px 18px rgba(0, 0, 0, .65);
}

.welcome-message {
  max-width: 410px;

  margin: 30px 0 0;

  color: rgba(230, 232, 237, .72);

  font-size: 13px;

  font-weight: 300;

  line-height: 1.8;
}

.welcome-scroll {
  margin-top: 52px;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: rgba(243, 223, 173, .72);
}

.welcome-scroll span {
  font-size: 22px;

  animation:
    welcomeScroll 2s ease-in-out infinite;
}

.welcome-scroll small {
  margin-top: 5px;

  font-size: 8px;

  letter-spacing: .25em;

  text-transform: uppercase;

  opacity: .65;
}

@keyframes welcomeScroll {

  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }

}


/* Mobile */

@media (max-width: 600px) {

  .welcome-content {
    width: 100%;
  }

  .welcome-name {
    font-size: clamp(72px, 21vw, 105px);
  }

  .welcome-quote {
    max-width: 330px;
  }

  .welcome-message {
    max-width: 300px;
  }

}
.welcome-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   V3 · CUENTA REGRESIVA
   ========================================================= */

.countdown-section {
  position: relative;

  width: 100%;
  max-width: none;
  margin: 0;

  min-height: 100svh;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 20%,
      rgba(18, 43, 78, .45) 0%,
      rgba(6, 18, 35, .9) 45%,
      #020916 85%
    );

  isolation: isolate;
}

.countdown-section::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(216, 181, 106, .035),
      transparent 35%
    );

  z-index: -2;
}

/* Estrellas */

.countdown-stars {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: -1;
}

.countdown-star {
  position: absolute;

  width: 1px;
  height: 1px;

  border-radius: 50%;

  background: rgba(255, 250, 235, .65);

  box-shadow:
    0 0 5px rgba(255, 250, 235, .25);

  opacity: 0;

  animation:
    countdownStarAppear 1.8s ease forwards,
    countdownStarTwinkle 5s ease-in-out infinite 2s;
}

@keyframes countdownStarAppear {

  from {
    opacity: 0;
  }

  to {
    opacity: var(--star-opacity);
  }

}

@keyframes countdownStarTwinkle {

  0%, 100% {
    transform: scale(.8);
  }

  50% {
    transform: scale(1.4);
  }

}


/* Contenido */

.countdown-content {

  width: min(92%, 620px);

  padding:
    70px 20px
    max(70px, env(safe-area-inset-bottom));

  text-align: center;

  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.countdown-section.is-visible .countdown-content {

  opacity: 1;

  transform: translateY(0);

}


/* Encabezado */

.countdown-eyebrow {

  margin: 0;

  color: var(--gold);

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .30em;

  text-transform: uppercase;
}

.countdown-content h2 {

  margin: 14px 0 0;

  color: var(--gold-light);

  font-family:
    "Great Vibes",
    "Brush Script MT",
    cursive;

  font-size: clamp(58px, 16vw, 95px);

  font-weight: 400;

  line-height: .95;

  text-shadow:
    0 0 15px rgba(243,223,173,.12);
}


/* Separador */

.countdown-divider {

  width: 80px;

  height: 1px;

  margin: 28px auto 34px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );

  position: relative;
}

.countdown-divider::after {

  content: "✦";

  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  padding: 0 8px;

  color: var(--gold-light);

  background: #07162a;

  font-size: 10px;
}


/* Contadores */

.countdown {

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 9px;

  width: 100%;

  margin: 0 auto;
}

.count-box {

  min-height: 105px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 12px 5px;

  border:
    1px solid
    rgba(216,181,106,.20);

  border-radius: 8px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.025),
      rgba(0,0,0,.08)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);

  transition:
    border-color .3s ease,
    transform .3s ease;
}

.count-box span {

  color: var(--gold-light);

  font-size:
    clamp(27px, 7vw, 44px);

  font-weight: 300;

  font-variant-numeric:
    tabular-nums;

  line-height: 1;

  text-shadow:
    0 0 12px rgba(243,223,173,.08);
}

.count-box small {

  margin-top: 10px;

  color:
    rgba(243,223,173,.58);

  font-size: 8px;

  font-weight: 500;

  letter-spacing: .16em;

  text-transform: uppercase;
}


/* Fecha */

.countdown-event {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 16px;

  margin-top: 35px;

  color: var(--gold-light);
}

.event-day {

  font-size: 43px;

  font-weight: 300;

  line-height: 1;

  border-right:
    1px solid
    rgba(216,181,106,.35);

  padding-right: 16px;
}

.event-details {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 6px;
}

.event-details strong {

  color: var(--gold-light);

  font-size: 11px;

  font-weight: 500;

  letter-spacing: .18em;
}

.event-details span {

  color:
    rgba(243,223,173,.65);

  font-size: 11px;

  letter-spacing: .12em;
}


/* Mensaje final */

.countdown-note {

  margin-top: 45px;

  display: flex;

  flex-direction: column;

  align-items: center;
}

.countdown-note span {

  color: var(--gold);

  font-size: 12px;

  opacity: .8;
}

.countdown-note p {

  margin: 10px 0 0;

  color:
    rgba(230,232,237,.55);

  font-size: 11px;

  font-weight: 300;

  line-height: 1.7;

  letter-spacing: .04em;
}


/* Mobile */

@media (max-width: 600px) {

  .countdown-content {
    width: 100%;
  }

  .countdown {
    gap: 7px;
  }

  .count-box {
    min-height: 94px;
  }

  .count-box span {
    font-size: clamp(25px, 7.5vw, 34px);
  }

} 

.welcome-scroll {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.welcome-scroll:focus-visible {
  outline: 1px solid rgba(216, 181, 106, .7);
  outline-offset: 8px;
  border-radius: 6px;
}

.welcome-scroll:hover {
  opacity: 1;
}

/* =========================================================
   V4 · LA CELEBRACIÓN
   ========================================================= */

.event-section {

  position: relative;

  width: 100%;
  max-width: none;

  min-height: 100svh;

  margin: 0;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 20%,
      rgba(20, 45, 80, .40),
      rgba(5, 17, 34, .92) 48%,
      #020916 88%
    );

  isolation: isolate;
}


/* brillo central muy sutil */

.event-section::before {

  content: "";

  position: absolute;

  inset: 0;

  z-index: -1;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(216,181,106,.045),
      transparent 38%
    );

}


/* contenido */

.event-content {

  width: min(92%, 560px);

  padding:
    75px 20px
    max(70px, env(safe-area-inset-bottom));

  text-align: center;

}


/* encabezado */

.event-eyebrow {

  margin: 0;

  color: var(--gold);

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .30em;

  text-transform: uppercase;

}


.event-content h2 {

  margin: 14px 0 0;

  color: var(--gold-light);

  font-family:
    "Great Vibes",
    "Brush Script MT",
    cursive;

  font-size:
    clamp(58px, 16vw, 92px);

  font-weight: 400;

  line-height: .95;

}


.event-intro {

  margin: 18px auto 0;

  max-width: 330px;

  color:
    rgba(230,232,237,.65);

  font-size: 13px;

  font-weight: 300;

  line-height: 1.7;

}


/* =========================================================
   FECHA PRINCIPAL
   ========================================================= */

.event-main-date {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 18px;

  margin-top: 38px;

}


.event-big-day {

  color: var(--gold-light);

  font-size: 68px;

  font-weight: 300;

  line-height: 1;

}


.event-month {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 5px;

  padding-left: 18px;

  border-left:
    1px solid
    rgba(216,181,106,.35);

}


.event-month strong {

  color: var(--gold-light);

  font-size: 13px;

  font-weight: 500;

  letter-spacing: .22em;

}


.event-month span {

  color:
    rgba(243,223,173,.62);

  font-size: 12px;

  letter-spacing: .16em;

}


/* =========================================================
   HORA
   ========================================================= */

.event-time {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 13px;

  margin-top: 28px;

}


.event-icon {

  color: var(--gold);

  font-size: 13px;

}


.event-time div {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 4px;

}


.event-time small {

  color:
    rgba(243,223,173,.52);

  font-size: 8px;

  letter-spacing: .20em;

}


.event-time strong {

  color: var(--gold-light);

  font-size: 16px;

  font-weight: 400;

  letter-spacing: .16em;

}


/* línea */

.event-line {

  width: 90px;

  height: 1px;

  margin: 30px auto;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );

}


/* =========================================================
   DATOS
   ========================================================= */

.event-details-grid {

  display: grid;

  gap: 14px;

}


.event-detail {

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 16px;

  border:
    1px solid
    rgba(216,181,106,.14);

  border-radius: 10px;

  background:
    rgba(255,255,255,.018);

  text-align: left;

}


.detail-icon {

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(216,181,106,.22);

  border-radius: 50%;

  color: var(--gold);

  font-size: 15px;

}


.event-detail div {

  display: flex;

  flex-direction: column;

  gap: 5px;

}


.event-detail small {

  color:
    rgba(243,223,173,.50);

  font-size: 8px;

  font-weight: 500;

  letter-spacing: .18em;

}


.event-detail strong {

  color:
    #e8e3d9;

  font-size: 13px;

  font-weight: 400;

  line-height: 1.4;

}


/* =========================================================
   DIRECCIÓN
   ========================================================= */

.event-address {

  margin-top: 24px;

}


.event-address small {

  color:
    rgba(243,223,173,.50);

  font-size: 8px;

  letter-spacing: .20em;

}


.event-address p {

  margin: 8px 0 0;

  color:
    rgba(230,232,237,.70);

  font-size: 13px;

  font-weight: 300;

  line-height: 1.7;

}


/* =========================================================
   SIGUIENTE SECCIÓN
   ========================================================= */

.section-next {

  margin-top: 42px;

  padding: 8px 15px;

  border: 0;

  background: transparent;

  color: var(--gold-light);

  cursor: pointer;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 5px;

  font-family: inherit;

  transition:
    opacity .25s ease,
    transform .25s ease;

}


.section-next span {

  font-size: 23px;

  animation:
    nextArrow 2s ease-in-out infinite;

}


.section-next small {

  color:
    rgba(243,223,173,.58);

  font-size: 8px;

  letter-spacing: .22em;

  text-transform: uppercase;

}


.section-next:hover {

  opacity: 1;

  transform: translateY(3px);

}


@keyframes nextArrow {

  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }

}


/* Mobile */

@media (max-width: 600px) {

  .event-content {

    width: 100%;

  }

  .event-big-day {

    font-size: 62px;

  }

  .event-detail strong {

    font-size: 12px;

  }

}
/* =========================================================
   V4 · BOTÓN CÓMO LLEGAR
   ========================================================= */

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 190px;
  min-height: 50px;

  margin-top: 24px;
  padding: 13px 28px;

  border: 1px solid rgba(216, 181, 106, .85);
  border-radius: 999px;

  background: rgba(2, 9, 22, .35);

  color: var(--gold-light);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;

  letter-spacing: .20em;
  text-transform: uppercase;

  cursor: pointer;

  box-shadow:
    0 0 0 1px rgba(216, 181, 106, .04),
    0 8px 25px rgba(0, 0, 0, .20);

  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .25s ease;
}

.map-button:hover {
  background: rgba(216, 181, 106, .10);

  border-color: var(--gold-light);

  box-shadow:
    0 0 18px rgba(216, 181, 106, .12),
    0 8px 25px rgba(0, 0, 0, .25);

  transform: translateY(-2px);
}

.map-button:active {
  transform: translateY(0);
}

.map-button:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 5px;
}

/* =========================================================
   V5 · CONFIRMACIÓN DE ASISTENCIA
   ========================================================= */

.confirmation-section {

  position: relative;

  width: 100%;
  max-width: none;

  min-height: 100svh;

  margin: 0;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 20%,
      rgba(20, 45, 80, .38),
      rgba(5, 17, 34, .94) 48%,
      #020916 88%
    );

  isolation: isolate;
}


/* brillo ambiental */

.confirmation-section::before {

  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(216,181,106,.04),
      transparent 38%
    );

  z-index: -1;

}


/* contenido */

.confirmation-content {

  width: min(92%, 500px);

  padding:
    75px 20px
    max(70px, env(safe-area-inset-bottom));

  text-align: center;

}


/* encabezado */

.confirmation-eyebrow {

  margin: 0;

  color: var(--gold);

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .30em;

  text-transform: uppercase;

}


.confirmation-content h2 {

  margin: 15px 0 0;

  color: var(--gold-light);

  font-family:
    "Great Vibes",
    "Brush Script MT",
    cursive;

  font-size:
    clamp(60px, 17vw, 92px);

  font-weight: 400;

  line-height: .95;

}


.confirmation-intro {

  max-width: 330px;

  margin: 20px auto 0;

  color:
    rgba(230,232,237,.62);

  font-size: 13px;

  font-weight: 300;

  line-height: 1.75;

}


/* =========================================================
   FORMULARIO
   ========================================================= */

.rsvp-form {

  display: flex;

  flex-direction: column;

  gap: 25px;

  margin-top: 34px;

  text-align: left;

}


/* campos */

.form-field {

  display: flex;

  flex-direction: column;

  gap: 9px;

}


.form-field label,
.attendance-field legend {

  color:
    rgba(243,223,173,.72);

  font-size: 9px;

  font-weight: 500;

  letter-spacing: .18em;

  text-transform: uppercase;

}


/* inputs */

.form-field input,
.form-field select {

  width: 100%;

  min-height: 50px;

  padding: 13px 15px;

  border:
    1px solid
    rgba(216,181,106,.22);

  border-radius: 8px;

  background:
    rgba(255,255,255,.025);

  color: #f5f1e8;

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 13px;

  font-weight: 300;

  outline: none;

  transition:
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;

}


.form-field input::placeholder {

  color:
    rgba(230,232,237,.30);

}


.form-field input:focus,
.form-field select:focus {

  border-color:
    rgba(216,181,106,.70);

  background:
    rgba(255,255,255,.04);

  box-shadow:
    0 0 18px rgba(216,181,106,.05);

}


/* =========================================================
   ASISTENCIA
   ========================================================= */

.attendance-field {

  margin: 0;
  padding: 0;

  border: 0;

}


.attendance-field legend {

  padding: 0;

  margin-bottom: 12px;

}


.attendance-options {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

}


.attendance-option {

  position: relative;

  cursor: pointer;

}


.attendance-option input {

  position: absolute;

  opacity: 0;

  pointer-events: none;

}


.attendance-option span {

  min-height: 58px;

  padding: 10px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  text-align: center;

  border:
    1px solid
    rgba(216,181,106,.16);

  border-radius: 8px;

  background:
    rgba(255,255,255,.018);

  color:
    rgba(230,232,237,.60);

  font-size: 10px;

  line-height: 1.3;

  transition:
    border-color .3s ease,
    background .3s ease,
    color .3s ease,
    box-shadow .3s ease;

}


.attendance-option span strong {

  color:
    rgba(216,181,106,.55);

  font-size: 14px;

}


.attendance-option input:checked + span {

  border-color:
    rgba(216,181,106,.72);

  background:
    rgba(216,181,106,.07);

  color:
    var(--gold-light);

  box-shadow:
    0 0 20px rgba(216,181,106,.05);

}


.attendance-option input:checked + span strong {

  color:
    var(--gold-light);

}


/* =========================================================
   BOTÓN CONFIRMAR
   ========================================================= */

.confirmation-button {

  width: 100%;

  min-height: 54px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 18px;

  margin-top: 3px;

  border:
    1px solid
    rgba(216,181,106,.85);

  border-radius: 999px;

  background:
    rgba(216,181,106,.035);

  color:
    var(--gold-light);

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .20em;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .25s ease;

}


.confirmation-button:hover {

  background:
    rgba(216,181,106,.10);

  border-color:
    var(--gold-light);

  box-shadow:
    0 0 20px rgba(216,181,106,.10);

  transform: translateY(-2px);

}


.confirmation-button:active {

  transform: translateY(0);

}


.button-arrow {

  font-size: 17px;

  transition:
    transform .3s ease;

}


.confirmation-button:hover .button-arrow {

  transform: translateX(5px);

}


/* =========================================================
   MENSAJE DE CONFIRMACIÓN
   ========================================================= */

.rsvp-message {

  min-height: 0;

  margin-top: 25px;

  color:
    var(--gold-light);

  font-size: 13px;

  font-weight: 300;

  line-height: 1.7;

  text-align: center;

}


.rsvp-message.success {

  padding: 20px;

  border:
    1px solid
    rgba(216,181,106,.20);

  border-radius: 10px;

  background:
    rgba(216,181,106,.035);

}


.rsvp-message .success-symbol {

  display: block;

  margin-bottom: 8px;

  color:
    var(--gold);

  font-size: 20px;

}


/* siguiente */

.confirmation-section .section-next {

  margin-top: 38px;

}


/* Mobile */

@media (max-width: 600px) {

  .confirmation-content {

    width: 100%;

  }

  .attendance-options {

    gap: 8px;

  }

}

/* =========================================================
   V6 · INFORMACIÓN ADICIONAL
   ========================================================= */

.details-section {

  position: relative;

  width: 100%;
  max-width: none;

  min-height: 100svh;

  margin: 0;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(18, 42, 74, .34),
      rgba(5, 17, 34, .94) 48%,
      #020916 88%
    );

  isolation: isolate;
}


.details-section::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(216,181,106,.035),
      transparent 40%
    );

  z-index: -1;
}


.details-content {

  width: min(92%, 520px);

  padding:
    75px 20px
    max(70px, env(safe-area-inset-bottom));

  text-align: center;

}


.details-eyebrow {

  margin: 0;

  color: var(--gold);

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .30em;

  text-transform: uppercase;

}


.details-content h2 {

  margin: 15px 0 0;

  color: var(--gold-light);

  font-family:
    "Great Vibes",
    "Brush Script MT",
    cursive;

  font-size:
    clamp(58px, 16vw, 90px);

  font-weight: 400;

  line-height: .95;

}


.details-intro {

  max-width: 330px;

  margin: 20px auto 0;

  color:
    rgba(230,232,237,.60);

  font-size: 13px;

  font-weight: 300;

  line-height: 1.75;

}


/* tarjetas */

.details-list {

  display: grid;

  gap: 12px;

  margin-top: 34px;

}


.detail-card {

  display: flex;

  align-items: center;

  gap: 15px;

  padding: 17px;

  border:
    1px solid
    rgba(216,181,106,.15);

  border-radius: 10px;

  background:
    rgba(255,255,255,.018);

  text-align: left;

  .alias-copy {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(216,181,106,.35);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  color: var(--gold-light);
  font: inherit;
  cursor: pointer;
}

.alias-copy:hover {
  background: rgba(216,181,106,.08);
}

}


.detail-symbol {

  flex: 0 0 36px;

  width: 36px;
  height: 36px;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(216,181,106,.22);

  border-radius: 50%;

  color: var(--gold);

  font-size: 14px;

}


.detail-card div {

  display: flex;

  flex-direction: column;

  gap: 5px;

}


.detail-card small {

  color:
    rgba(243,223,173,.48);

  font-size: 8px;

  font-weight: 500;

  letter-spacing: .18em;

}


.detail-card strong {

  color:
    rgba(243,239,231,.88);

  font-size: 13px;

  font-weight: 400;

}


.detail-card p {

  margin: 2px 0 0;

  color:
    rgba(230,232,237,.46);

  font-size: 10px;

  line-height: 1.5;

}


.album-placeholder {

  opacity: .72;

}


/* =========================================================
   CIERRE
   ========================================================= */

.closing-section {

  position: relative;

  width: 100%;
  max-width: none;

  min-height: 100svh;

  margin: 0;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(19,44,78,.45),
      rgba(4,15,31,.92) 48%,
      #020916 90%
    );

  isolation: isolate;

}


.closing-section::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(216,181,106,.055),
      transparent 38%
    );

  z-index: -1;

}


.closing-content {

  width: min(92%, 560px);

  padding:
    70px 20px
    max(70px, env(safe-area-inset-bottom));

  text-align: center;

}


.closing-eyebrow {

  margin: 0;

  color: var(--gold);

  font-size: 10px;

  font-weight: 500;

  letter-spacing: .30em;

  text-transform: uppercase;

}


.closing-content h2 {

  margin: 42px 0 0;

  color: var(--gold-light);

  font-family:
    "Great Vibes",
    "Brush Script MT",
    cursive;

  font-size:
    clamp(80px, 23vw, 145px);

  font-weight: 400;

  line-height: .85;

  text-shadow:
    0 0 18px rgba(243,223,173,.14),
    0 5px 30px rgba(0,0,0,.5);

}


.closing-date {

  margin: 28px 0 0;

  color: var(--gold-light);

  font-size: 12px;

  font-weight: 400;

  letter-spacing: .30em;

  padding-left: .30em;

}


.closing-divider {

  width: 85px;

  height: 1px;

  margin: 30px auto;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );

}


.closing-message {

  max-width: 330px;

  margin: 0 auto;

  color:
    rgba(230,232,237,.65);

  font-size: 13px;

  font-weight: 300;

  line-height: 1.8;

}


.closing-star {

  margin-top: 32px;

  color: var(--gold-light);

  font-size: 16px;

}


.closing-final {

  margin-top: 45px;

  color:
    rgba(243,223,173,.42);

  font-size: 8px;

  letter-spacing: .25em;

  text-transform: uppercase;

}


/* Mobile */

@media (max-width: 600px) {

  .details-content,
  .closing-content {

    width: 100%;

  }

}

@media (max-width: 600px) {
  .name {
    font-size: clamp(68px, 18.5vw, 98px);
  }
}

/* =========================================================
   V4.1 · NAVEGACIÓN POR SECCIONES
   Snap suave: evita quedar entre escenas sin bloquear
   el desplazamiento en dispositivos móviles.
   ========================================================= */

html {
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
}

.opening,
.invitation > .section {
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  html {
    scroll-snap-type: y proximity;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}


/* =========================================================
   RSVP · VALIDACIÓN DE INVITACIÓN
   ========================================================= */
.form-help {
  display: block;
  margin-top: 7px;
  color: rgba(230, 232, 237, .48);
  font-size: 10px;
  line-height: 1.5;
}

.confirmation-button:disabled {
  opacity: .55;
  cursor: wait;
}

/* =========================================================
   RSVP · SELECCIÓN DE INVITADOS ASOCIADOS AL CÓDIGO
   ========================================================= */

.invite-guests-field[hidden],
.guest-count-field[hidden] {
  display: none !important;
}

.invite-family {
  margin-top: 2px;
  color: rgba(243, 223, 173, .58);
}

.invite-guests-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 2px;
}

.invite-guest-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(216,181,106,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #f5f1e8;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.invite-guest-option:hover {
  border-color: rgba(216,181,106,.42);
}

.invite-guest-option:has(input:checked) {
  border-color: rgba(216,181,106,.68);
  background: rgba(216,181,106,.08);
  transform: translateY(-1px);
}

.invite-guest-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--gold);
}

.invite-guest-option span {
  line-height: 1.35;
}


/* =========================================================
   RSVP · SELECCIÓN DE INVITADOS ASOCIADOS AL CÓDIGO
   ========================================================= */

.invite-guests-field[hidden],
.guest-count-field[hidden] {
  display: none !important;
}

.invite-family {
  margin-top: 2px;
  color: rgba(243, 223, 173, .58);
}

.invite-guests-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 2px;
}

.invite-guest-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(216,181,106,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #f5f1e8;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.invite-guest-option:hover {
  border-color: rgba(216,181,106,.42);
}

.invite-guest-option:has(input:checked) {
  border-color: rgba(216,181,106,.68);
  background: rgba(216,181,106,.08);
  transform: translateY(-1px);
}

.invite-guest-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--gold);
}

.invite-guest-option span {
  line-height: 1.35;
}


/* =====================================================
   RSVP · PANTALLA FINAL DE CONFIRMACIÓN
   ===================================================== */

.rsvp-success {
  margin-top: 2rem;
  text-align: center;
  padding: 2.2rem 1.4rem;
  border: 1px solid rgba(218, 190, 116, 0.28);
  border-radius: 18px;
  background: rgba(4, 14, 30, 0.42);
  backdrop-filter: blur(6px);
}

.rsvp-success-symbol {
  font-size: 1.45rem;
  color: #e5c97a;
  margin-bottom: 0.8rem;
}

.rsvp-success-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d9bd72;
}

.rsvp-success h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 400;
  color: #f1dda4;
}

.rsvp-success-text {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.rsvp-success-note {
  display: block;
  max-width: 30rem;
  margin: 1rem auto 0;
  line-height: 1.5;
  opacity: 0.7;
}

.whatsapp-button {
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .rsvp-success {
    padding: 1.8rem 1rem;
  }

  .rsvp-success h3 {
    font-size: 2.25rem;
  }
}
