/* ═══════════════════════════════════════════════
   VARIABLES — edita aquí para cambiar el tema visual
   ═══════════════════════════════════════════════ */
:root {
  /* Paleta de color */
  --ivory:    #F3EEE6;   /* Fondo principal (secciones claras) */
  --linen:    #EAE4D8;   /* Fondo secciones alternativas */
  --navy:     #1C3E5E;   /* Azul marino oscuro (fondo hero, countdown, footer) */
  --navy-2:   #162F48;   /* Azul más oscuro (sección RSVP) */
  --gold:     #C49830;   /* Dorado principal */
  --gold-lt:  #D4AE58;   /* Dorado claro */
  --gold-dk:  #9A7718;   /* Dorado oscuro */
  --ink:      #0E1C2C;   /* Texto principal */
  --ink-soft: #3C5068;   /* Texto secundario */
  --line:     #D4CDBC;   /* Bordes y líneas */

  /* Tipografías */
  --font-serif:  'Cormorant Garamond', serif;  /* Elegante, para fechas y citas */
  --font-script: 'Great Vibes', cursive;       /* Cursiva caligráfica, para nombres */
  --font-sans:   'Jost', sans-serif;           /* Sans limpia, para etiquetas y cuerpo */
}


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

html { scroll-behavior: smooth; }

body {
  background: #0e1c2c;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

/* Contenedor tipo móvil centrado */
.phone {
  width: 100%;
  max-width: 460px;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}


/* ─── ELEMENTOS COMPARTIDOS ─── */

.label {
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .44em;
  font-size: 11px;
  color: var(--gold);
}

/* Animación de entrada al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Divisor dorado con diamante */
.g-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
}
.g-rule .l {
  height: 1px;
  width: 44px;
  background: var(--gold-lt);
  opacity: .6;
}
.g-rule .diamond {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}


/* ─── HERO ─── */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(14,28,44,.42) 0%,
    rgba(14,28,44,.04) 30%,
    rgba(14,28,44,.08) 58%,
    rgba(14,28,44,.82) 100%
  );
}

.hero-glow {
  position: absolute;
  z-index: 3;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: 30%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(212,174,88,.28),
    rgba(196,152,48,.05) 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-badge .label {
  color: rgba(212,174,88,.9);
  letter-spacing: .5em;
}
.hero-badge .vline {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(212,174,88,.7), rgba(212,174,88,.1));
}

.hero-copy {
  position: absolute;
  z-index: 4;
  bottom: 68px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 22px;
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.names .n {
  font-family: var(--font-script);
  font-size: clamp(84px, 22vw, 114px);
  color: #fff;
  line-height: .88;
  text-shadow: 0 4px 32px rgba(14,28,44,.55);
}
.names .amp {
  font-family: var(--font-script);
  font-size: clamp(58px, 15vw, 76px);
  color: var(--gold-lt);
  line-height: 1;
  margin: -8px 0;
  text-shadow: 0 4px 24px rgba(14,28,44,.4);
}

.hero-date {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-date .d {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-size: 15px;
  color: rgba(243,238,230,.9);
}
.hero-date .city {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(212,174,88,.75);
}

/* Flecha animada hacia abajo */
.chev {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(212,174,88,.75);
  animation: bob 2.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%       { transform: translate(-50%, 9px); }
}


/* ─── SECCIONES GENERALES ─── */

section.block {
  padding: 78px 30px;
  text-align: center;
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 30ch;
  margin: 22px auto 0;
}


/* ─── CUENTA ATRÁS ─── */

.count-wrap { background: var(--navy); color: #fff; }
.count-wrap .label { color: var(--gold-lt); }

.count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 360px;
  margin: 30px auto 0;
  border: 1px solid rgba(212,174,88,.25);
  border-radius: 4px;
  overflow: hidden;
}
.count .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 8px;
  border-right: 1px solid rgba(212,174,88,.2);
}
.count .cell:last-child { border-right: none; }
.count .num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 46px;
  color: var(--gold-lt);
  line-height: 1;
}
.count .unit {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 9px;
  color: rgba(255,255,255,.55);
}


/* ─── HISTORIA ─── */

.story-photo-wrap {
  position: relative;
  margin-top: 28px;
  border-radius: 6px 6px 56px 6px;
  overflow: hidden;
}
.story-photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 26px;
  background: linear-gradient(0deg, rgba(14,28,44,.8) 0%, transparent 100%);
  border-radius: 0 0 56px 6px;
}
.story-overlay p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  color: #F3EEE6;
  line-height: 1.5;
  max-width: 28ch;
}
.story-overlay .s-tag {
  font-family: var(--font-sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 9px;
  color: rgba(212,174,88,.75);
  margin-top: 10px;
}


/* ─── GALERÍA ─── */

.gallery {
  display: flex;
  gap: 8px;
  padding: 0 30px 72px;
}
.gallery .gp {
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
}
.gallery .gp img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .6s ease;
}
.gallery .gp:nth-child(1) { margin-top: 28px; }
.gallery .gp:nth-child(3) { margin-top: 14px; }
.gallery .gp img:hover { transform: scale(1.05); }


/* ─── DETALLES DEL DÍA ─── */

.det-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 24px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.card .gold-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card .ic {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 12px;
}
.card .row {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.card .row b { font-weight: 500; color: var(--ink); }
.card .pin {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* Contenedor responsive del mapa (iframe de Google Maps) */
.map {
  box-sizing: border-box;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;          /* escala con el ancho; sin altura fija en px */
  border-radius: 4px;
  overflow: hidden;             /* recorta el iframe a las esquinas redondeadas */
  position: relative;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #e4dfd2 0 14px, #ece7db 14px 28px);
}
/* El iframe llena el contenedor; nada de width/height fijos en px */
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Placeholder de texto (solo si se usa el .map sin iframe) */
.map .tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a8a090;
}


/* ─── ETIQUETA / DRESS CODE ─── */

.dress-photo {
  width: 100%;
  height: 210px;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 4px;
  position: relative;
}
.dress-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.dress-photo .d-over {
  position: absolute;
  inset: 0;
  background: rgba(14,28,44,.50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dress-photo .d-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: #F3EEE6;
  text-align: center;
  padding: 0 22px;
  line-height: 1.45;
}


/* ─── RSVP ─── */

.rsvp {
  background: var(--navy-2);
  color: var(--ivory);
  text-align: center;
  padding: 82px 28px;
}
.rsvp .label { color: var(--gold-lt); }
.rsvp .script {
  font-family: var(--font-script);
  font-size: 58px;
  color: #F3EEE6;
  margin: 10px 0 8px;
  line-height: .95;
}
.rsvp p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  max-width: 28ch;
  margin: 0 auto 28px;
  color: rgba(243,238,230,.85);
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  padding: 16px 36px;
  border: 1px solid rgba(212,174,88,.6);
  color: var(--ivory);
  text-decoration: none;
  border-radius: 2px;
  transition: .25s;
  cursor: pointer;
  background: transparent;
}
.btn.gold {
  background: var(--gold);
  color: var(--navy-2);
  border-color: var(--gold);
}
.btn.gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

.deadline {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: rgba(212,174,88,.65);
}


/* ─── FOOTER ─── */

footer {
  background: var(--navy);
  text-align: center;
  padding: 72px 28px 60px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 200px;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,152,48,.14), transparent 70%);
  pointer-events: none;
}
footer .fn {
  font-family: var(--font-script);
  font-size: 60px;
  color: var(--gold-lt);
  line-height: 1;
}
footer .fd {
  font-family: var(--font-serif);
  letter-spacing: .34em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(212,174,88,.6);
  margin-top: 14px;
}
footer .thanks {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: rgba(243,238,230,.8);
  margin-top: 24px;
  line-height: 1.6;
}


/* ─── MODAL RSVP ─── */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(14,28,44,.6);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }

.modal .sheet {
  background: var(--ivory);
  max-width: 400px;
  width: 100%;
  border-radius: 4px;
  padding: 32px 26px 26px;
  text-align: center;
  position: relative;
  border-top: 3px solid var(--gold);
  max-height: 90vh;
  overflow-y: auto;
}
.modal .sheet h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.modal .sheet .m-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* Campos del formulario */
.field {
  text-align: left;
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 3px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}
.ok {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--navy);
  padding: 12px 0;
}

/* Tarjetas de asistencia Sí/No */
.f-attend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.f-radio-card {
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: .2s;
  user-select: none;
}
.f-radio-card .frc-icon { font-size: 20px; margin-bottom: 4px; }
.f-radio-card .frc-label {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.f-radio-card.active { border-color: var(--navy); background: rgba(28,62,94,.06); }
.f-radio-card.active .frc-label { color: var(--navy); font-weight: 400; }

/* Grupo de asistentes */
.f-group-section { text-align: left; margin-top: 4px; }
.f-group-section .f-sec-title {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin: 14px 0 8px;
  display: block;
}
.f-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.f-stepper-label { display: flex; flex-direction: column; gap: 2px; }
.f-sl-t { font-family: var(--font-sans); font-weight: 400; font-size: 14px; color: var(--ink); }
.f-sl-s { font-family: var(--font-sans); font-weight: 300; font-size: 11px; color: var(--ink-soft); }
.f-stepper { display: flex; align-items: center; gap: 14px; }
.f-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  padding: 0;
}
.f-step-btn:hover { border-color: var(--navy); color: var(--navy); }
.f-step-btn:disabled { opacity: .3; cursor: default; }
.f-count {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  min-width: 22px;
  text-align: center;
  line-height: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.f-companion { animation: fadeIn .3s ease; }
