/* Estilos de la invitación (páginas de invitados). El panel de admin sigue usando styles.css + admin.css. */
@view-transition {
  navigation: auto;
}

:root {
  --ivory: #F5EEE2;
  --paper: #FBF8F2;
  --green: #4A5530;
  --green-2: #5B6838;
  --gold: #C29A5E;
  --gold-lt: #E2C898;
  --gold-ink: #86652F;
  --wine: #7A2E2E;
  --ink: #23261A;
  --ink-soft: #5E6450;
  --line: rgba(74, 85, 48, .16);
  --line-dk: rgba(226, 200, 152, .22);
  /* Interior de la invitación (después de abrir el sobre): Pinyon Script + Forum */
  --display: 'Forum', 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', 'Edwardian Script ITC', cursive;
  /* El sello de lacre conserva su monograma en Bodoni */
  --bodoni: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --vibes: 'Great Vibes', 'Edwardian Script ITC', cursive;
  --montse: 'Montserrat', 'Jost', system-ui, sans-serif;
  --body: 'Forum', Georgia, serif;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--gold-lt);
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.wrap {
  padding-inline: var(--gutter);
  max-width: 1320px;
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

/* ================= SOBRE ================= */
.sobre-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(120% 90% at 50% 40%, #5A6739 0%, #3B4527 60%, #262D19 100%);
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  overflow: hidden;
}

.sobre-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.sobre-escena {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 4vh, 40px);
  width: 100%;
}

.sobre-intro {
  text-align: center;
  color: var(--ivory);
}

.sobre-intro .label {
  color: var(--gold-lt);
  opacity: .85;
}

.sobre-intro .para {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  margin-top: 10px;
  color: var(--paper);
}

.sobre-wrap {
  perspective: 1600px;
  width: min(520px, 86vw);
  max-width: 100%;
}

.sobre {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}

.sobre-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #EADCC3, #DDCCAE);
  border-radius: 4px;
}

.carta {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 7%;
  height: 86%;
  z-index: 2;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px;
}

.carta::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 146, 90, .45);
}

.carta .c-nombres {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 4.4vw, 36px);
  color: var(--green);
  line-height: 1;
}

.carta .c-fecha {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold-ink);
}

.sobre-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(175deg, #E9DBC1 0%, #E0CFB0 100%);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  border-radius: 4px;
}

.sobre-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent 49.6%, rgba(120, 90, 50, .18) 50%, transparent 50.4%), linear-gradient(to top left, transparent 49.6%, rgba(120, 90, 50, .18) 50%, transparent 50.4%);
}

.sobre-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 4;
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  background: linear-gradient(180deg, #EFE3CC 0%, #E3D3B6 100%);
  border-radius: 4px 4px 0 0;
  backface-visibility: visible;
}

.sello {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 6;
  width: clamp(66px, 18%, 96px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
}

.sello-cera {
  position: absolute;
  inset: 0;
  border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 34% 30%, #B2524A 0%, #7A2E2E 52%, #4E1919 100%);
  box-shadow: 0 7px 16px rgba(0, 0, 0, .4), inset 0 -4px 8px rgba(0, 0, 0, .35), inset 0 3px 6px rgba(255, 255, 255, .18);
}

.sello-cera::before {
  content: '';
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 201, 143, .5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}

.sello-mono {
  position: relative;
  font-family: var(--display);
  font-style: italic;
  color: #EACD95;
  font-size: clamp(17px, 3.8vw, 25px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}

.sello:hover .sello-cera {
  filter: brightness(1.08);
}

.sello-pulso {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(226, 200, 152, .55);
  animation: pulso 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulso {
  0% {
    transform: scale(.85);
    opacity: .9;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.sobre-hint {
  color: rgba(245, 238, 226, .7);
  font-size: 13px;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sobre-hint::before,
.sobre-hint::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(226, 200, 152, .45);
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  transition: background .4s ease, color .4s ease, box-shadow .4s ease;
  color: var(--paper);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  gap: 16px;
}

.nav-mono {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding-block: 4px;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  border: 1px solid currentColor;
  padding: 9px 18px !important;
  border-radius: 40px;
  transition: background .3s ease, color .3s ease;
}

.nav-cta:hover {
  background: var(--paper);
  color: var(--green);
}

.nav--solid {
  background: rgba(245, 238, 226, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--green);
  box-shadow: 0 1px 0 var(--line);
}

.nav--solid .nav-cta:hover {
  background: var(--green);
  color: var(--paper);
}

@media (max-width:620px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #2B3220;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media picture {
  display: contents;
}

.hero-media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 35%;
  transform-origin: 50% 40%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 35, 18, .92) 0%, rgba(30, 35, 18, .45) 38%, rgba(30, 35, 18, .12) 62%, rgba(30, 35, 18, .45) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(76px, 10vh, 96px);
}

.hero-eyebrow {
  color: var(--gold-lt);
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-lt);
}

.hero-names {
  font-size: clamp(64px, 13.5vw, 212px);
  line-height: .9;
  letter-spacing: -.02em;
  margin-top: 18px;
}

.hero-names .linea {
  display: block;
}

.hero-names .amp {
  font-style: italic;
  color: var(--gold-lt);
  font-weight: 400;
  padding-right: .06em;
}

.hero-names .linea-2 {
  padding-left: clamp(40px, 11vw, 190px);
}

.hero-meta {
  margin-top: clamp(26px, 4vh, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(245, 238, 226, .22);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.hero-meta .m-k {
  color: rgba(245, 238, 226, .6);
  display: block;
  margin-bottom: 2px;
}

.hero-meta .m-v {
  font-family: var(--display);
  font-size: clamp(17px, 1.8vw, 22px);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(245, 238, 226, .75);
}

.scroll-cue .barra {
  width: 1px;
  height: 46px;
  background: rgba(245, 238, 226, .25);
  position: relative;
  overflow: hidden;
}

.scroll-cue .barra::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--gold-lt);
  animation: bajar 2s ease-in-out infinite;
}

@keyframes bajar {
  0% {
    top: -40%;
  }

  100% {
    top: 100%;
  }
}

@media (max-width:620px) {
  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-cue {
    display: none;
  }
}

/* ================= INTRO / CARTA ================= */
.intro {
  padding-block: clamp(90px, 14vw, 180px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}

.intro .label {
  color: var(--gold-ink);
}

.intro-texto {
  font-family: var(--display);
  font-size: clamp(27px, 3.4vw, 50px);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 22px 0 0;
  color: var(--green);
}

.intro-texto em {
  color: var(--gold-ink);
}

.intro-firma {
  margin-top: 30px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
}

.marco {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 100%;
  border-radius: 200px 200px 3px 3px;
  /* antes: 200px 200px 3px 3px (arco arriba) */
}

.marco img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 30% center;
}

.marco-nota {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

@media (max-width:820px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .marco {
    max-width: 420px;
  }
}

/* ================= COUNTDOWN ================= */
.cuenta {
  background: var(--green);
  color: var(--paper);
  padding-block: clamp(80px, 11vw, 140px);
  position: relative;
  overflow: hidden;
}

.cuenta::before {
  content: '&';
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(300px, 42vw, 640px);
  line-height: 1;
  color: rgba(226, 200, 152, .05);
  pointer-events: none;
}

.cuenta-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.cuenta-head h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}

.cuenta-head h2 em {
  color: var(--gold-lt);
}

.cuenta-head .label {
  color: var(--gold-lt);
}

.cuenta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dk);
}

.cd-unit {
  padding: 26px 0 0;
  border-right: 1px solid var(--line-dk);
  padding-left: clamp(12px, 2vw, 28px);
}

.cd-unit:first-child {
  padding-left: 0;
}

.cd-unit:last-child {
  border-right: none;
}

.cd-num {
  position: relative;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 136px);
  line-height: 1;
  height: 1em;
  font-variant-numeric: tabular-nums lining-nums;
}

.cd-num span {
  display: block;
}

.cd-num span+span {
  position: absolute;
  left: 0;
  top: 0;
}

.cd-lbl {
  margin-top: 14px;
  color: var(--gold-lt);
}

@media (max-width:560px) {
  .cuenta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-unit:nth-child(2) {
    border-right: none;
  }

  .cd-unit:nth-child(3) {
    padding-left: 0;
  }

  .cd-unit:nth-child(n+3) {
    border-top: 1px solid var(--line-dk);
    margin-top: 26px;
  }
}

/* ================= DETALLES ================= */
.detalles {
  padding-block: clamp(90px, 12vw, 160px);
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 60px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.sec-head .label {
  color: var(--gold-ink);
  padding-bottom: 12px;
}

.sec-head h2 {
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: .95;
  color: var(--green);
  letter-spacing: -.015em;
}

.sec-head h2 em {
  color: var(--gold-ink);
}

@media (max-width:700px) {
  .sec-head {
    grid-template-columns: 1fr;
  }

  .sec-head .label {
    padding-bottom: 0;
  }
}

.lugar {
  display: grid;
  grid-template-columns: clamp(60px, 9vw, 140px) 1.2fr 1fr auto;
  gap: 20px clamp(20px, 3vw, 48px);
  align-items: baseline;
  padding-block: clamp(26px, 3.5vw, 42px);
  border-top: 1px solid var(--line);
}

.lugar:last-of-type {
  border-bottom: 1px solid var(--line);
}

.lugar-num {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(34px, 4vw, 56px);
  color: var(--gold);
  line-height: 1;
}

.lugar-que {
  color: var(--gold-ink);
  display: block;
  margin-bottom: 6px;
}

.lugar h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  color: var(--green);
  line-height: 1.1;
}

.lugar-dir {
  color: var(--ink-soft);
  font-size: 15px;
}

.lugar-dir b {
  display: block;
  font-weight: 400;
  color: var(--ink);
}

.btn-mapa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 40px;
  white-space: nowrap;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.btn-mapa:hover {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}

.btn-mapa svg {
  width: 14px;
  height: 14px;
  transition: transform .3s ease;
}

.btn-mapa:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width:820px) {
  .lugar {
    grid-template-columns: auto 1fr;
  }

  .lugar-dir,
  .lugar .btn-mapa {
    grid-column: 2;
  }

  .lugar .btn-mapa {
    justify-self: start;
  }
}

.foto-ancha {
  margin-top: clamp(60px, 8vw, 110px);
  position: relative;
  overflow: hidden;
  aspect-ratio: 21/9;
  max-width: 100%;
  border-radius: 3px;
}

.foto-ancha img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: center 60%;
}

.foto-ancha figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .06em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

@media (max-width:620px) {
  .foto-ancha {
    aspect-ratio: 4/3;
  }
}

/* ================= GALERIA ================= */
.galeria {
  background: #2B3220;
  color: var(--paper);
  overflow: hidden;
}

.galeria-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(70px, 9vh, 110px);
  gap: clamp(30px, 5vh, 50px);
}

.galeria-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

.galeria-head h2 {
  font-size: clamp(46px, 7vw, 110px);
  line-height: .95;
  letter-spacing: -.015em;
}

.galeria-head h2 em {
  color: var(--gold-lt);
}

.galeria-head p {
  max-width: 300px;
  color: rgba(245, 238, 226, .62);
  font-size: 14px;
  margin: 0;
}

.galeria-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  padding-inline: var(--gutter);
  width: max-content;
}

.galeria-track figure {
  margin: 0;
  flex: none;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}

.galeria-track figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-track .v {
  height: min(62vh, 560px);
  aspect-ratio: 2/3;
}

.galeria-track .h {
  height: min(46vh, 420px);
  aspect-ratio: 3/2;
}

.galeria-track figure span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.galeria-fin {
  flex: none;
  width: clamp(220px, 24vw, 340px);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  color: var(--gold-lt);
  padding-right: var(--gutter);
}

@media (max-width:767px) {
  .galeria-scroller {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .galeria-scroller::-webkit-scrollbar {
    display: none;
  }

  .galeria-track figure {
    scroll-snap-align: center;
  }

  .galeria-track .v {
    height: 420px;
  }

  .galeria-track .h {
    height: 240px;
  }
}

/* ================= ITINERARIO + VESTIMENTA ================= */
.dia {
  padding-block: clamp(90px, 12vw, 160px);
}

.dia-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 8vw, 120px);
}

.dia-sticky {
  position: sticky;
  top: 110px;
  align-self: start;
}

.dia-sticky .label {
  color: var(--gold-ink);
}

.dia-sticky h2 {
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: .95;
  color: var(--green);
  margin-top: 18px;
  letter-spacing: -.015em;
}

.dia-sticky h2 em {
  color: var(--gold-ink);
}

.dia-sticky p {
  color: var(--ink-soft);
  max-width: 340px;
  margin-top: 22px;
}

.itin {
  position: relative;
  padding: 0 0 0 38px;
}

.itin ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.itin-linea {
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.itin-linea i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(1);
}

.itin li {
  position: relative;
  padding-bottom: clamp(38px, 5vw, 60px);
}

.itin li:last-child {
  padding-bottom: 0;
}

.itin li::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold);
}

.itin .hora {
  color: var(--gold-ink);
}

.itin h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  color: var(--green);
  margin-top: 6px;
  line-height: 1.1;
}

.itin p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 420px;
}

@media (max-width:820px) {
  .dia-grid {
    grid-template-columns: 1fr;
  }

  .dia-sticky {
    position: static;
  }
}

.vestimenta {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(80px, 10vw, 130px);
  text-align: center;
}

.vestimenta .label {
  color: var(--gold-ink);
}

.vestimenta h2 {
  font-size: clamp(40px, 6vw, 88px);
  color: var(--green);
  margin-top: 20px;
  line-height: 1;
  letter-spacing: -.015em;
}

.vestimenta h2 em {
  color: var(--gold-ink);
}

.vestimenta .nota {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--ink-soft);
}

.ves-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.sw {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px var(--paper);
}

.sw::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 1.5px;
  background: var(--wine);
  transform: rotate(45deg);
}

.sw--grande {
  flex: none;
  width: 84px;
  height: 84px;
  box-shadow: inset 0 0 0 5px var(--ivory), 0 10px 24px -14px rgba(30, 35, 18, .5);
}

.sin-blanco {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  max-width: 780px;
  margin: clamp(40px, 5vw, 60px) auto clamp(40px, 5vw, 64px);
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 44px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  border-radius: 4px;
  text-align: left;
}

.sin-blanco-t {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  color: var(--green);
  margin: 0;
}

.sin-blanco-t em {
  color: var(--wine);
}

.sin-blanco-s {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

@media (max-width:520px) {
  .sin-blanco {
    flex-direction: column;
    text-align: center;
    border-left: 1px solid var(--line);
    border-top: 3px solid var(--wine);
  }
}

.moodboard {
  columns: 4 210px;
  column-gap: 16px;
  text-align: left;
}

.look {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  display: block;
}

.look img {
  width: 100%;
  height: auto;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.look:hover img {
  transform: scale(1.045);
}

figure.look::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(30, 35, 18, .6), transparent);
  pointer-events: none;
}

.look figcaption {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 11px;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
}

.look--nota {
  background: var(--green);
  color: var(--paper);
  padding: 26px 22px 28px;
}

.look--nota .label {
  color: var(--gold-lt);
}

.look--nota p {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.3;
  margin: 12px 0 0;
}

@media (max-width:560px) {
  .moodboard {
    columns: 2;
    column-gap: 10px;
  }

  .look {
    margin-bottom: 10px;
  }

  .look--nota {
    padding: 18px 16px;
  }

  .look--nota p {
    font-size: 16.5px;
  }

  .look figcaption {
    font-size: 15px;
    left: 10px;
  }
}

/* ================= FAQ ================= */
.faq {
  padding-block: clamp(90px, 12vw, 150px);
}

.faq-list {
  max-width: 860px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 26px;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--green);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .mas {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .35s ease, background .3s ease;
}

.faq summary .mas::before,
.faq summary .mas::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.faq summary .mas::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] .mas {
  transform: rotate(45deg);
  background: var(--paper);
}

.faq summary:hover .mas {
  background: var(--paper);
}

.faq details p {
  margin: 0;
  padding: 0 0 28px;
  color: var(--ink-soft);
  max-width: 600px;
}

/* ================= RSVP ================= */
.rsvp {
  background: var(--green);
  color: var(--paper);
  padding-block: clamp(90px, 12vw, 160px);
  position: relative;
  overflow: hidden;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.rsvp-intro .label {
  color: var(--gold-lt);
}

.rsvp-intro h2 {
  font-size: clamp(44px, 6vw, 92px);
  line-height: .95;
  margin-top: 18px;
  letter-spacing: -.015em;
}

.rsvp-intro h2 em {
  color: var(--gold-lt);
}

.nowrap {
  white-space: nowrap;
}

.rsvp-intro p {
  color: rgba(245, 238, 226, .7);
  max-width: 360px;
  margin-top: 22px;
}

.rsvp-intro .limite {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dk);
  display: inline-block;
}

.rsvp-intro .limite .label {
  display: block;
  margin-bottom: 4px;
}

.rsvp-intro .limite span:last-child {
  font-family: var(--display);
  font-size: 22px;
}

@media (max-width:900px) {
  .rsvp-grid {
    grid-template-columns: 1fr;
  }
}

.rsvp-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: clamp(26px, 4vw, 52px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.rsvp-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.rsvp-top .label {
  color: var(--gold-ink);
  white-space: nowrap;
  font-size: 10.5px;
}

.progreso {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.progreso i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(.25);
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}

.pasos {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.paso {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.paso h3 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  color: var(--green);
  outline: none;
}

.paso h3 em {
  color: var(--gold-ink);
}

.paso .sub {
  color: var(--ink-soft);
  margin: 10px 0 0;
  font-size: 15px;
}

.opciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.opcion {
  position: relative;
  text-align: left;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 22px 22px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.opcion:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -20px rgba(74, 85, 48, .45);
}

.opcion .o-ico {
  font-family: var(--display);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--gold-ink);
  display: block;
}

.opcion .o-t {
  display: block;
  margin-top: 26px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--green);
}

.opcion .o-s {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.opcion[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.opcion[aria-pressed="true"] .o-t {
  color: var(--paper);
}

.opcion[aria-pressed="true"] .o-s {
  color: rgba(245, 238, 226, .7);
}

.opcion[aria-pressed="true"] .o-ico {
  color: var(--gold-lt);
}

@media (max-width:480px) {
  .opciones {
    grid-template-columns: 1fr;
  }

  .opcion .o-t {
    margin-top: 14px;
  }
}


.campo {
  margin-top: 26px;
}

.campo label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-ink);
}

.campo input,
.campo textarea {
  width: 100%;
  font-family: var(--display);
  font-size: 22px;
  color: var(--green);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
  border-radius: 0;
  transition: border-color .3s ease;
}

.campo textarea {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  resize: vertical;
  min-height: 92px;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: rgba(94, 100, 80, .5);
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s ease;
}

.chip:hover {
  border-color: var(--gold);
}

.chip[aria-pressed="true"] {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}

.paso-nav {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-atras {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 0;
}

.btn-atras:hover {
  color: var(--green);
}

.btn-sig {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--paper);
  border: none;
  border-radius: 40px;
  padding: 16px 28px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-sig:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -16px rgba(74, 85, 48, .7);
}

.btn-sig:active {
  transform: translateY(0) scale(.98);
}

.btn-sig:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.btn-sig svg {
  width: 14px;
  height: 14px;
}

.spin {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(245, 238, 226, .35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: girar .7s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.exito {
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sello-mini {
  width: 64px;
  height: 64px;
  border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 34% 30%, #B2524A 0%, #7A2E2E 52%, #4E1919 100%);
  display: grid;
  place-items: center;
  color: #EACD95;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .4);
}

.exito h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  color: var(--green);
  margin-top: 26px;
  line-height: 1.05;
}

.exito h3 em {
  color: var(--gold-ink);
}

.exito p {
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.resumen {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.resumen li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.resumen li span:first-child {
  color: var(--gold-ink);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 3px;
}

.resumen li span:last-child {
  text-align: right;
  font-family: var(--display);
  font-size: 18px;
  color: var(--green);
}

.exito-acciones {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ================= FOOTER ================= */
.pie {
  background: #2B3220;
  color: var(--paper);
  padding-block: clamp(90px, 12vw, 150px) 40px;
  text-align: center;
  overflow: hidden;
}

.pie-mono {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(110px, 24vw, 340px);
  line-height: .85;
  color: var(--gold-lt);
  letter-spacing: -.02em;
}

.pie-tag {
  margin-top: 26px;
  color: rgba(245, 238, 226, .7);
}

.pie-fin {
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dk);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(245, 238, 226, .45);
  font-size: 12px;
  letter-spacing: .06em;
}

canvas#petalos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 95;
}

@media (prefers-reduced-motion: reduce) {

  .sello-pulso,
  .scroll-cue .barra::after,
  .spin {
    animation: none;
  }

  .opcion,
  .btn-sig,
  .btn-mapa,
  .progreso i {
    transition: none;
  }
}

/* ================= EXTRA: sitio real ================= */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sin JavaScript: no hay sobre, todos los pasos visibles, solo el botón de enviar */
.no-js .sobre-overlay,
.no-js [data-js-only],
.no-js .rsvp-top,
.no-js .chips {
  display: none !important;
}

.js .num-fallback {
  display: none;
}

.no-js .paso+.paso {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.num-fallback input {
  width: 120px;
}

/* Opciones Sí / No como radios reales (funcionan aunque falle el JS) */
.opcion input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.opcion:has(input:checked),
.opcion.is-sel {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.opcion:has(input:checked) .o-t,
.opcion.is-sel .o-t {
  color: var(--paper);
}

.opcion:has(input:checked) .o-s,
.opcion.is-sel .o-s {
  color: rgba(245, 238, 226, .7);
}

.opcion:has(input:checked) .o-ico,
.opcion.is-sel .o-ico {
  color: var(--gold-lt);
}

.opcion:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.opcion {
  display: block;
}

.aviso {
  margin-top: 26px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold-lt);
  background: rgba(245, 238, 226, .06);
  color: rgba(245, 238, 226, .85);
  font-size: 14.5px;
  max-width: 380px;
}

.aviso b {
  font-weight: 500;
  color: var(--gold-lt);
}

.link-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--gold-lt);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid rgba(226, 200, 152, .4);
  padding-bottom: 3px;
}

.link-wa:hover {
  border-bottom-color: var(--gold-lt);
}

.campo .ayuda {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Página de gracias */
.hero--corto {
  height: 82svh;
  min-height: 540px;
}

.hero--sin-foto {
  background: radial-gradient(120% 90% at 30% 20%, #64713F 0%, #4A5530 55%, #2A3119 100%);
  height: auto;
  min-height: 70svh;
}

.hero--sin-foto .hero-content {
  min-height: 70svh;
  padding-top: 120px;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 520px;
  color: rgba(245, 238, 226, .78);
  font-size: 17px;
}

.hero-sub a {
  color: var(--gold-lt);
}

.rsvp--gracias .exito {
  min-height: 0;
}

a.btn-sig {
  text-decoration: none;
}

a.btn-atras {
  text-decoration: none;
  display: inline-block;
}

/* Página "no encontrada" */
.perdido {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 40%, #5A6739 0%, #3B4527 60%, #262D19 100%);
  color: var(--paper);
  padding: 40px var(--gutter);
}

.perdido .sello-mini {
  margin: 0 auto;
}

.perdido h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin-top: 28px;
  line-height: 1.05;
}

.perdido h1 em {
  color: var(--gold-lt);
}

.perdido p {
  color: rgba(245, 238, 226, .72);
  max-width: 440px;
  margin: 18px auto 0;
}

.et {
  font-family: var(--display);
  font-style: italic;
}

/* Evita que algo que entra animado desde un lado empuje la página en el celular */
body {
  overflow-x: clip;
}

.dia,
.intro,
.detalles,
.faq {
  overflow-x: clip;
}

/* ================= SELLO DE LACRE DORADO ================= */
.sello {
  width: clamp(86px, 23%, 124px);
}

.sello-borde {
  position: absolute;
  inset: -9%;
  border-radius: 38% 62% 55% 45% / 60% 40% 62% 38%;
  transform: rotate(18deg);
  background: radial-gradient(circle at 38% 32%, #EBD08F 0%, #C9A257 45%, #9C7A36 80%, #7E602A 100%);
  box-shadow: 0 12px 20px -8px rgba(40, 30, 10, .6), 0 2px 3px rgba(40, 30, 10, .35);
}

.sello-cera {
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 247, 222, .85) 0%, rgba(255, 247, 222, 0) 34%),
    conic-gradient(from 210deg, #B48A3E, #E9CF8E, #C49A4D, #F3DFA6, #A9823A, #D8B56C, #B48A3E);
  box-shadow: inset 0 3px 5px rgba(255, 245, 215, .7), inset 0 -5px 9px rgba(90, 62, 20, .55), 0 1px 2px rgba(60, 40, 10, .4);
}

.sello-cera::before {
  inset: 13%;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #DDBB72 0%, #C9A257 58%, #B18A43 100%);
  box-shadow: inset 0 3px 6px rgba(90, 62, 20, .55), inset 0 -2px 3px rgba(255, 240, 205, .55), 0 1px 0 rgba(255, 244, 214, .7);
}

.sello-mono {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(23px, 5.2vw, 36px);
  letter-spacing: -.04em;
  color: #B38D45;
  text-shadow: 0 1px 0 rgba(255, 243, 210, .85), 0 -1px 1px rgba(84, 58, 18, .75);
}

.sello-mono .et,
.sello-mini .et {
  font-size: .74em;
  margin: 0 -.02em;
  position: relative;
  top: -.06em;
  letter-spacing: 0;
}

.sello-pulso {
  border-color: rgba(233, 207, 142, .65);
}

.sello:hover .sello-cera {
  filter: brightness(1.06) saturate(1.05);
}

.sello-mini {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 247, 222, .85) 0%, rgba(255, 247, 222, 0) 34%),
    conic-gradient(from 210deg, #B48A3E, #E9CF8E, #C49A4D, #F3DFA6, #A9823A, #D8B56C, #B48A3E);
  box-shadow: inset 0 3px 5px rgba(255, 245, 215, .7), inset 0 -5px 9px rgba(90, 62, 20, .55), 0 10px 18px -8px rgba(40, 30, 10, .55);
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.04em;
  color: #B38D45;
  text-shadow: 0 1px 0 rgba(255, 243, 210, .85), 0 -1px 1px rgba(84, 58, 18, .75);
}

.sello-mini::before {
  content: '';
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #DDBB72 0%, #C9A257 58%, #B18A43 100%);
  box-shadow: inset 0 3px 6px rgba(90, 62, 20, .55), inset 0 -2px 3px rgba(255, 240, 205, .55);
}

.sello-mini>span {
  position: relative;
}

/* ================= CARTA DE BIENVENIDA (pantalla del sobre) =================
   Great Vibes para los nombres, Montserrat para los textos pequeños. Solo aplica aquí. */
.sobre-intro .label,
.sobre-hint,
.carta .c-fecha {
  font-family: var(--montse);
  font-weight: 500;
}

.sobre-intro .label {
  letter-spacing: .32em;
  font-size: 11px;
}

.sobre-hint {
  font-weight: 400;
  letter-spacing: .08em;
  font-size: 12.5px;
}

.sobre-intro .para {
  font-family: var(--vibes);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(50px, 8.5vw, 84px);
  line-height: 1.1;
  margin-top: 4px;
}

.carta .c-nombres {
  font-family: var(--vibes);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(32px, 6.2vw, 54px);
  line-height: 1.15;
  color: var(--green);
}

.carta .c-nombres .et {
  font-family: var(--vibes);
  font-style: normal;
  color: var(--gold-ink);
}

.carta .c-fecha {
  font-size: 10px;
  letter-spacing: .34em;
}

/* ================= TIPOGRAFÍA INTERIOR: Pinyon Script + Forum =================
   Forum tiene un solo peso y no tiene itálica: apagamos la "negrita/itálica falsa" del navegador
   y lo que antes era itálico pasa a Pinyon Script. El sobre conserva Great Vibes + Montserrat. */
html {
  font-synthesis: none;
}

body {
  font-size: 17px;
  font-weight: 400;
}

.label {
  font-weight: 400;
  letter-spacing: .26em;
}

em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.22em;
  line-height: .8;
  letter-spacing: 0;
}

.hero-names {
  font-family: var(--script);
  font-size: clamp(64px, min(15.5vw, 20vh), 240px);
  line-height: 1.04;
  letter-spacing: 0;
}

/* también según la altura: en laptops bajitas no choca con el menú */
.hero-names .linea {
  display: table;
  padding: .08em .2em .12em .42em;
  margin-left: -.42em;
}

/* aire para las colas de la J y la C de Pinyon */
.hero-names .amp {
  font-family: var(--display);
  font-style: normal;
  font-size: .5em;
  vertical-align: .2em;
  padding-right: .16em;
}

.hero-names .linea-2 {
  padding-left: clamp(50px, 12vw, 210px);
}

.nav-mono {
  font-family: var(--script);
  font-style: normal;
  font-size: 30px;
  line-height: 1;
}

.pie-mono {
  font-family: var(--script);
  font-style: normal;
  font-size: clamp(140px, 27vw, 400px);
  line-height: 1.05;
  letter-spacing: 0;
}

.nav-mono .et,
.pie-mono .et {
  font-family: var(--display);
  font-style: normal;
  font-size: .5em;
  margin: 0 .1em;
  vertical-align: .14em;
}

.intro-firma {
  font-family: var(--script);
  font-style: normal;
  font-size: clamp(30px, 3vw, 40px);
  color: var(--gold-ink);
}

.cuenta::before {
  font-style: normal;
}

.lugar-num {
  font-style: normal;
}

.galeria-track figure span,
.look figcaption {
  font-family: var(--script);
  font-style: normal;
  font-size: 26px;
}

.galeria-fin {
  font-family: var(--script);
  font-style: normal;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.25;
}

.opcion .o-ico {
  font-family: var(--script);
  font-style: normal;
  font-size: 46px;
}

@media (max-width:560px) {
  .look figcaption {
    font-size: 21px;
  }
}

/* El sello (en el sobre) se queda en Bodoni */
.sello-mono,
.sello-mini {
  font-family: var(--bodoni);
}

.sello-mono .et,
.sello-mini .et {
  font-family: var(--bodoni);
  font-style: italic;
}

/* ================= SELLO DE LACRE (imagen) =================
   Dos copias de la misma imagen, recortadas por una grieta en zigzag.
   Juntas se ven como un solo sello; al abrir, cada mitad sale hacia su lado. */
.sello {
  width: clamp(104px, 28%, 150px);
  aspect-ratio: 498/478;
}

/* La sombra va en el botón (no en cada mitad) para que no aparezca una raya oscura en la grieta */
.sello {
  filter: drop-shadow(0 10px 14px rgba(40, 30, 10, .45)) drop-shadow(0 2px 3px rgba(40, 30, 10, .3));
}

.sello-mitad {
  position: absolute;
  inset: 0;
  display: block;
}

.sello-mitad img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .35s ease;
}

.sello-mitad.izq {
  transform-origin: 30% 60%;
}

.sello-mitad.izq img {
  clip-path: polygon(0 0, 52% 0, 47% 18%, 55% 36%, 46% 55%, 54% 74%, 48% 100%, 0 100%);
}

.sello-mitad.der {
  transform-origin: 70% 60%;
}

.sello-mitad.der img {
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 54% 74%, 46% 55%, 55% 36%, 47% 18%);
}

.sello:hover .sello-mitad img {
  transform: scale(1.04) rotate(-2deg);
}

.sello-pulso {
  inset: -8%;
}

.sello-mini-img {
  display: block;
  width: 84px;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(40, 30, 10, .4));
}

.perdido .sello-mini-img {
  margin: 0 auto;
}

/* ================= LISTÓN VERTICAL, con los dorados del sello =================
   Tonos sacados de sello-dorado.png: brillo #F8DAA0 → medio #D0A661 → sombra #663912 */
.cinta-v {
  position: absolute;
  left: 50%;
  width: 8px;
  margin-left: -4px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(90deg, #F8DAA0 0%, #E7C17B 20%, #D0A661 42%, #BD904F 62%, #9C6D36 86%, #6E4818 100%);
  box-shadow: 1px 0 2px rgba(70, 40, 10, .4);
}

.cinta-arr {
  top: 0;
  bottom: 47%;
  transform-origin: 50% 0;
}

.cinta-aba {
  top: 53%;
  bottom: 0;
  transform-origin: 50% 100%;
}

/* ================= FLORES DEL FONDO Y FORRO DE ROMERO =================
   flores-esquina.svg: ramo botánico tono sobre tono (arriba-izquierda y, girado, abajo-derecha).
   forro-flores.jpg: forro del sobre (mini rosas, astromelias y claveles), se ve por dentro de la solapa y en el fondo detrás de la carta. */
.flores {
  position: absolute;
  width: clamp(300px, 44vw, 660px);
  aspect-ratio: 1;
  max-width: 100%;
  background: url('/img/flores-esquina.svg') no-repeat 0 0 / contain;
  pointer-events: none;
}

.flores-a {
  left: 0;
  top: 0;
}

.flores-b {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.sobre-escena {
  z-index: 1;
}

@media (max-width:600px) {
  .flores {
    width: 62vw;
  }
}

.sobre {
  perspective: 1400px;
}

.sobre-back {
  background: #E3E4CF url('/img/forro-flores.jpg') center / 180px repeat;
  box-shadow: inset 0 0 22px rgba(60, 50, 25, .28);
}

/* La solapa ahora tiene dos caras: afuera (papel) y adentro (forro de flores) */
.sobre-flap {
  clip-path: none;
  background: none;
  transform-style: preserve-3d;
}

.flap-cara {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flap-fuera {
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  background: linear-gradient(180deg, #EFE3CC 0%, #E3D3B6 100%);
}

.flap-dentro {
  transform: rotateX(180deg);
  clip-path: polygon(0 100%, 100% 100%, 50% 44%);
  background: #E3E4CF url('/img/forro-flores.jpg') center / 180px repeat;
}

.flap-dentro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(60, 50, 25, .22), transparent 40%);
}

/* ================= PRE-REGISTRO (/registro/<código>) ================= */
.registro {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #5A6739 0%, #3B4527 60%, #262D19 100%);
}

.registro-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border-radius: 4px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  text-align: center;
}

.registro-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 146, 90, .4);
  border-radius: 2px;
  pointer-events: none;
}

.registro-sello {
  margin: -4px auto 0;
}

.registro-kicker {
  display: block;
  margin-top: 18px;
  color: var(--gold-ink);
}

.registro-titulo {
  font-family: var(--script);
  font-size: clamp(44px, 8vw, 68px);
  line-height: 1.1;
  color: var(--green);
  margin-top: 6px;
}

.registro-titulo .et {
  font-family: var(--display);
  font-size: .5em;
  vertical-align: .2em;
  margin: 0 .08em;
  color: var(--gold-ink);
}

.registro-titulo em {
  font-size: 1em;
  color: var(--gold-ink);
}

.registro-fecha {
  color: var(--ink-soft);
  margin: 8px 0 0;
  font-size: 11px;
}

.registro-texto {
  color: var(--ink);
  margin: 22px auto 0;
  max-width: 400px;
  font-size: 17px;
}

.registro-texto b {
  font-weight: 400;
  color: var(--green);
  border-bottom: 1px solid var(--gold-lt);
}

.registro-nota {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 14px 0 0;
}

.registro-nota b {
  font-weight: 400;
  color: var(--ink);
}

.registro-form {
  text-align: left;
  margin-top: 28px;
}

.registro-fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

@media (max-width:480px) {
  .registro-fila {
    grid-template-columns: 1fr;
  }
}

.registro-form .campo {
  margin-top: 20px;
}

.registro-form .campo input {
  font-family: var(--display);
  font-size: 20px;
}

.registro-form .campo input[aria-invalid="true"] {
  border-bottom-color: var(--wine);
}

.opcional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.error-campo {
  display: block;
  margin-top: 6px;
  color: var(--wine);
  font-size: 13.5px;
}

/* Link general: "Tus datos" al final del formulario */
.tus-datos {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tus-datos-titulo {
  margin: 0;
  color: var(--ink-soft);
}

.tus-datos .campo {
  margin-top: 18px;
}

.tus-datos .campo input {
  font-size: 19px;
}

.tus-datos .campo input[aria-invalid="true"] {
  border-bottom-color: var(--wine);
}

.tus-datos .aviso {
  max-width: none;
  color: var(--ink);
  background: rgba(201, 169, 110, .14);
  border-left-color: var(--gold);
  margin-top: 14px;
}

.tus-datos .registro-privacidad {
  text-align: left;
}

.sugerencia-correo {
  margin-top: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.registro-btn {
  width: 100%;
  justify-content: center;
  margin-top: 32px;
}

.registro-privacidad {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
  margin: 14px 0 0;
}

/* ================= PÁGINA DE GRACIAS: la carta de respuesta =================
   Misma escena que el sobre (verde oliva + ramo en las esquinas) y una carta marfil al centro. */
.gx {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 90% at 50% 30%, #5A6739 0%, #3B4527 60%, #262D19 100%);
  color: var(--paper);
  padding-block: clamp(96px, 12vh, 140px) clamp(56px, 8vh, 90px);
}

.gx .flores {
  opacity: .95;
}

.gx .flores-a {
  top: 64px;
}

/* que el ramo no tape el logo del menú */
body:has(.gx) .nav:not(.nav--solid) {
  background: linear-gradient(rgba(26, 31, 15, .72), rgba(26, 31, 15, 0));
}

.gx-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.gx-carta {
  position: relative;
  width: min(560px, 100%);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  padding: 64px clamp(26px, 6vw, 58px) 44px;
  border-radius: 3px;
  box-shadow: 0 30px 70px -20px rgba(10, 14, 4, .6), 0 2px 8px rgba(10, 14, 4, .2);
  animation: gx-entra 1.1s cubic-bezier(.2, .8, .2, 1) both .15s;
}

.gx-carta::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(194, 154, 94, .55);
  pointer-events: none;
}

.gx-carta::after {
  content: '';
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(194, 154, 94, .22);
  pointer-events: none;
}

.gx-sello {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 14px rgba(40, 25, 5, .4));
  animation: gx-sello .9s cubic-bezier(.3, 1.5, .5, 1) both .7s;
}

.gx-sello img {
  display: block;
  width: 96px;
  height: auto;
}

.gx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--montse);
  font-size: 10.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 8px;
}

.gx-eyebrow::before,
.gx-eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.gx-titulo {
  font-family: var(--script);
  font-weight: 400;
  color: var(--green);
  font-size: clamp(46px, 8.5vw, 74px);
  line-height: 1.1;
  margin: 18px 0 0;
  letter-spacing: 0;
}

.gx-titulo .gx-coma {
  margin-right: .08em;
}

.gx-nombre {
  color: var(--gold-ink);
  white-space: nowrap;
}

.gx-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 14px auto 0;
  max-width: 380px;
  line-height: 1.55;
}

.gx-fecha {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  font-family: var(--display);
  color: var(--green);
}

.gx-fecha span:first-child {
  text-align: right;
}

.gx-fecha span:last-child {
  text-align: left;
}

.gx-fecha span {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--montse);
}

.gx-fecha b {
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .04em;
  white-space: nowrap;
  padding: 4px 18px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.gx-orla {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px auto 6px;
  max-width: 300px;
  color: var(--gold);
}

.gx-orla i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 154, 94, .7), transparent);
}

.gx-orla span {
  font-size: 12px;
}

.gx-resumen {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.gx-resumen li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(134, 101, 47, .25);
}

.gx-resumen li:last-child {
  border-bottom: none;
}

.gx-resumen li span:first-child {
  font-family: var(--montse);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  flex: none;
}

.gx-resumen li span:last-child {
  font-family: var(--display);
  font-size: 18px;
  color: var(--green);
  text-align: right;
}

.gx-resumen .gx-msj {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.gx-resumen .gx-msj span:last-child {
  text-align: left;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}

.gx-acciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.gx-cambiar {
  font-family: var(--montse);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}

.gx-cambiar:hover {
  color: var(--green);
  border-bottom-color: currentColor;
}

.gx-firma {
  font-family: var(--script);
  font-size: 26px;
  color: var(--gold-ink);
  margin: 28px 0 0;
}

.gx-firma .et {
  font-family: var(--display);
  font-size: .7em;
}

.gx-bajar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gold-lt);
  text-decoration: none;
  font-family: var(--montse);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  animation: gx-entra 1s ease both 1.2s;
}

.gx-bajar i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold-lt), transparent);
  animation: gx-gota 2.2s ease-in-out infinite;
}

.gx--no .gx-carta {
  padding-bottom: 48px;
}

@keyframes gx-entra {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gx-sello {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.4) rotate(-25deg);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}

@keyframes gx-gota {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  45% {
    transform: scaleY(1);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (max-width:600px) {
  .gx .flores {
    width: 58vw;
    opacity: .85;
  }

  .gx-carta {
    padding-top: 58px;
  }

  .gx-fecha {
    gap: 10px;
  }

  .gx-fecha b {
    font-size: 20px;
    padding: 4px 10px;
  }

  .gx-fecha span {
    font-size: 9.5px;
    letter-spacing: .2em;
  }

  .gx .flores-a {
    top: 58px;
  }

  .gx-resumen li span:last-child {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion:reduce) {

  .gx-carta,
  .gx-sello,
  .gx-bajar,
  .gx-bajar i {
    animation: none;
  }
}

/* ================= AJUSTES DE ACCESIBILIDAD Y CELULAR ================= */
/* Foco visible con buen contraste (el dorado claro no se distinguía sobre el papel) */
:focus-visible {
  outline-color: var(--gold-ink);
}

.sobre-overlay :focus-visible,
.rsvp :focus-visible,
.pie :focus-visible,
.perdido :focus-visible {
  outline-color: var(--gold-lt);
}

.campo input,
.campo textarea {
  border-bottom-color: rgba(74, 85, 48, .45);
}

.campo input:focus,
.campo textarea:focus {
  border-bottom: 2px solid var(--gold-ink);
  padding-bottom: 11px;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: rgba(94, 100, 80, .78);
}

.rsvp-intro p {
  color: rgba(245, 238, 226, .82);
}

.pie-fin {
  color: rgba(245, 238, 226, .66);
}

.btn-sig:disabled {
  opacity: .85;
}

/* Selección y foco de Sí/No también en iPhone viejos (sin :has) */
.opcion.is-focus {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

fieldset.opciones {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.error-paso {
  margin-top: 14px;
  color: var(--wine);
  font-size: 15px;
}

/* Botones cómodos para el dedo (mínimo 44 px) y letras chicas legibles */
.chip,
.btn-atras,
.gx-cambiar {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Celular: enlaces fáciles de tocar y de leer */
.link-wa {
  min-height: 44px;
  padding-bottom: 0;
}

@media (max-width:600px) {
  .gx-cambiar {
    font-size: 12px;
    letter-spacing: .16em;
  }
}

.btn-atras {
  white-space: nowrap;
  flex: none;
}

.rsvp-top .label {
  font-size: 11.5px;
}

.gx-resumen li span:first-child {
  font-size: 11px;
}

@media (max-width:600px) {
  .gx-fecha span {
    font-size: 11px;
  }
}

/* Respaldo para Safari < 16 (no entiende overflow-x:clip) */
@supports not (overflow-x:clip) {

  body,
  .dia,
  .intro,
  .detalles,
  .faq {
    overflow-x: hidden;
  }
}

/* Celular en horizontal: que el sobre quepa completo */
.sobre-wrap {
  width: min(520px, 86vw, 95svh);
}

@media (max-height:500px) and (orientation:landscape) {
  .sobre-overlay {
    overflow-y: auto;
    align-items: start;
  }

  .sobre-intro .para {
    font-size: 28px;
  }
}

/* Galería: se nota que se desliza y se puede usar con teclado */
.galeria-scroller:focus-visible {
  outline-offset: -4px;
}

@media (max-width:900px) {
  .galeria-scroller {
    scrollbar-width: thin;
  }
}

/* Portada en celular: foto vertical, centrada en las caras */
@media (max-width:700px) {
  .hero-media img {
    object-position: center 20%;
  }
}



/* ================= UBICACIÓN (Summit: ceremonia y recepción en el mismo lugar) ================= */
.ubicacion {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.ubi-foto {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/2;
  background: #DCD6C2;
}

.ubi-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubi-foto--vacia {
  background: linear-gradient(180deg, #E9E2CF 0%, #D9D3BC 55%, #C9CDAE 100%);
  display: grid;
  place-items: end center;
}

.ubi-montes {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 62%;
}

.ubi-montes path {
  fill: #9AA67E;
  opacity: .55;
}

.ubi-montes .m2 {
  fill: #5B6939;
  opacity: .45;
}

.ubi-foto--vacia figcaption {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(30, 35, 18, .4);
}

.ubi-que {
  color: var(--gold-ink);
  display: block;
}

.ubi-nombre {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  color: var(--green);
  margin-top: 12px;
}

.ubi-region {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.ubi-cuando {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}

.ubi-cuando span {
  font-size: 16px;
}

.ubi-cuando b {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--green);
  line-height: 1;
}

.ubi-nota {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.ubi-parqueo {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ubi-parqueo svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--green);
}

.ubi-boton {
  margin-top: 26px;
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
  min-height: 48px;
}

.ubi-boton:hover {
  background: var(--green-2);
}

.ubi-mapa {
  grid-column: 1 / -1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: clamp(240px, 34vw, 380px);
  background: #E8E4D6;
}

.ubi-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width:820px) {
  .ubicacion {
    grid-template-columns: 1fr;
  }

  .ubi-boton {
    width: 100%;
    justify-content: center;
  }
}

/* ================= SOLO ADULTOS ================= */
.adultos {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.adultos-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(30px, 4vw, 48px) clamp(22px, 4vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 20px 50px -36px rgba(30, 35, 18, .45);
  position: relative;
}

.adultos-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(194, 154, 94, .35);
  border-radius: 2px;
  pointer-events: none;
}

.adultos-orla {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
}

.adultos-orla i {
  display: block;
  width: 46px;
  height: 1px;
  background: var(--gold);
}

.adultos-t {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  color: var(--green);
  margin: 16px 0 0;
}

.adultos-t em {
  font-family: var(--script);
  font-style: normal;
  color: var(--gold-ink);
  font-size: 1.15em;
}

.adultos-s {
  margin: 12px auto 0;
  max-width: 520px;
  color: var(--ink-soft);
}

.adultos-s--chica {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ================= GUÍA DE VESTIMENTA (tarjeta crema con flores oliva) ================= */
.vestimenta {
  background: var(--ivory);
}

.ves-tarjeta {
  position: relative;
  overflow: hidden;
  background: #F3EAD7;
  border: 1px solid rgba(74, 85, 48, .18);
  border-radius: 6px;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 80px);
  box-shadow: 0 30px 70px -50px rgba(30, 35, 18, .55);
}

.ves-tarjeta::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(91, 104, 56, .28);
  border-radius: 3px;
  pointer-events: none;
}

.ves-flor {
  position: absolute;
  width: clamp(150px, 24vw, 300px);
  aspect-ratio: 1;
  background: url('/img/flores-esquina.svg') no-repeat 0 0 / contain;
  opacity: .55;
  pointer-events: none;
}

.ves-flor-a {
  left: -14px;
  top: -14px;
}

.ves-flor-b {
  right: -14px;
  bottom: -14px;
  transform: rotate(180deg);
}

.ves-tarjeta>*:not(.ves-flor) {
  position: relative;
}

.prohibidos {
  list-style: none;
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
}

.prohibido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 118px;
}

.prohibido .sw--grande {
  width: 78px;
  height: 78px;
  box-shadow: inset 0 0 0 5px #F3EAD7, 0 10px 22px -14px rgba(30, 35, 18, .55);
}

.prohibido .sw::after {
  width: 2px;
  background: #9B2F2F;
}

.prohibido-n {
  font-family: var(--display);
  font-size: 21px;
  color: var(--green);
  line-height: 1;
}

.prohibido-s {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.3;
  margin-top: -4px;
}

.ves-porque {
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.tablero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
  text-align: left;
}

.tablero-t {
  font-family: var(--script);
  font-size: clamp(34px, 4vw, 48px);
  color: var(--green);
  text-align: center;
  margin: 0 0 14px;
  line-height: 1;
}

.tablero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.4vw, 16px);
}

.tablero .look {
  margin: 0;
  aspect-ratio: 3/4;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid rgba(74, 85, 48, .14);
}

.tablero .look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.look--vacio {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c) 16%, #FBF8F2) 0%, #FBF8F2 70%);
}

.look--vacio .silueta {
  width: auto;
  height: 78%;
  margin-bottom: 12%;
  filter: drop-shadow(0 8px 10px rgba(30, 35, 18, .18));
}

.tablero .look figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--display);
  font-style: normal;
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(to top, rgba(251, 248, 242, .95) 55%, transparent);
}

.tablero .look figcaption i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
}

.tablero figure.look::after {
  display: none;
}

.ves-sugeridos {
  margin: 26px auto 0;
  text-align: center;
  color: var(--gold-ink);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width:760px) {
  .tablero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .prohibidos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 10px;
    max-width: 340px;
  }

  .prohibido {
    width: auto;
  }

  .tablero .look figcaption {
    font-size: 14px;
  }
}

/* ================= RSVP: plazo, solo adultos, WhatsApp, cerrado ================= */
.sub-limite {
  margin-top: -6px;
  font-size: 14px;
}

.rsvp-adultos {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

.btn-wa svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-wa {
  border: 1px solid rgba(226, 200, 152, .45);
  border-radius: 40px;
  padding: 0 18px;
}

.btn-wa:hover {
  background: rgba(226, 200, 152, .12);
}

.rsvp-cerrado {
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.rsvp-cerrado .label {
  color: var(--gold-ink);
}

.rsvp-cerrado h3 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--green);
  line-height: 1.1;
}

.rsvp-cerrado h3 em {
  color: var(--wine);
}

.rsvp-cerrado p {
  margin: 0;
  color: var(--ink-soft);
}

/* ================= PIE: contacto ================= */
.pie-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pie-correos {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(245, 238, 226, .75);
  line-height: 1.8;
}

.pie-correos a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 200, 152, .35);
  word-break: break-all;
}

@media (max-width:600px) {
  .pie-correos {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
  }
}

@media (max-width:600px) {
  .pie-sep {
    display: none;
  }

  .pie-correos a {
    display: inline-block;
    margin-inline: auto;
  }
}

@media (max-width:760px) {
  .ves-flor {
    width: 120px;
    opacity: .45;
  }

  .ves-tarjeta {
    padding-top: 84px;
  }
}

.look--vacio .silueta {
  height: 70%;
  margin-bottom: 20%;
}

@media (max-width:820px) {
  .ubi-mapa {
    height: 300px;
  }
}

/* Portada: fecha · hora · lugar (ahora son 3 datos) */
.hero-meta {
  grid-template-columns: auto auto 1fr auto;
  gap: 16px clamp(20px, 3vw, 48px);
  align-items: start;
}

.scroll-cue {
  align-self: end;
}

@media (max-width:620px) {
  .hero-meta {
    grid-template-columns: 1fr auto;
    gap: 14px 20px;
  }

  .hero-meta>div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-meta .m-v {
    font-size: 17px;
    line-height: 1.35;
    display: block;
  }
}

/* ================= RITMO ENTRE SECCIONES (27/11) =================
   crema → banda beige (solo adultos) → galería oscura → crema → tarjeta de vestimenta
   → banda de foto → preguntas en papel claro → RSVP oliva. */
.adultos {
  background: #ECE2CC;
  padding-block: clamp(64px, 8vw, 110px);
  max-width: none;
  border-block: 1px solid rgba(74, 85, 48, .12);
  position: relative;
  overflow: hidden;
}

.adultos::before,
.adultos::after {
  content: '';
  position: absolute;
  width: clamp(140px, 20vw, 240px);
  aspect-ratio: 1;
  background: url('/img/flores-esquina.svg') no-repeat 0 0 / contain;
  opacity: .35;
  pointer-events: none;
}

.adultos::before {
  left: -20px;
  top: -20px;
}

.adultos::after {
  right: -20px;
  bottom: -20px;
  transform: rotate(180deg);
}

.adultos-card {
  position: relative;
  z-index: 1;
}

.faq {
  background: var(--paper);
  max-width: none;
  border-top: 1px solid var(--line);
}

.faq,
.adultos {
  padding-inline: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter)));
}

/* Banda de foto a lo ancho */
.banda-foto {
  position: relative;
  height: clamp(340px, 56vw, 620px);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
}

.banda-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 55%;
}

.banda-foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 35, 18, .7), rgba(30, 35, 18, .25) 55%, rgba(30, 35, 18, .35));
}

.banda-texto {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
}

.banda-frase {
  font-family: var(--script);
  font-size: clamp(54px, 9vw, 120px);
  line-height: 1;
  margin: 0;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.banda-sub {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(245, 238, 226, .9);
}

/* ================= MENOS MAYÚSCULAS ESPACIADAS =================
   Se quedan las etiquetas de sección; los avisos y notas pasan a texto normal. */
.rsvp-intro .limite .label {
  text-transform: none;
  letter-spacing: .01em;
  font-size: 15px;
  font-weight: 400;
  color: rgba(245, 238, 226, .75);
}

.rsvp-adultos {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-style: italic;
  color: rgba(245, 238, 226, .78);
}

.adultos-s--chica {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-style: italic;
}

.ves-sugeridos {
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  font-style: italic;
}

.ubi-foto--vacia figcaption {
  text-transform: none;
  letter-spacing: .02em;
  font-size: 15px;
  font-style: italic;
}

.pie .link-wa,
.rsvp-intro .link-wa {
  text-transform: none;
  letter-spacing: .02em;
  font-size: 16px;
}

.prohibido-s {
  font-style: italic;
}

/* ================= PORTADA: nombres más legibles en celular ================= */
@media (max-width:700px) {
  .hero-shade {
    background: linear-gradient(to top, rgba(30, 35, 18, .95) 0%, rgba(30, 35, 18, .72) 32%, rgba(30, 35, 18, .2) 58%, rgba(30, 35, 18, .45) 100%);
  }
}

/* ================= BARRA FIJA "CONFIRMAR" (solo celular) ================= */
.barra-confirmar {
  display: none;
}

@media (max-width:760px) {
  .barra-confirmar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    min-height: 56px;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    background: var(--green);
    color: var(--paper);
    box-shadow: 0 14px 30px -12px rgba(30, 35, 18, .6), inset 0 0 0 1px rgba(226, 200, 152, .35);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
    pointer-events: none;
  }

  .barra-confirmar.is-visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .barra-confirmar span {
    font-size: 15px;
    letter-spacing: .06em;
    font-weight: 500;
  }

  .barra-confirmar small {
    font-size: 12.5px;
    color: var(--gold-lt);
    font-style: italic;
  }
}

@media (prefers-reduced-motion: reduce) {
  .barra-confirmar {
    transition: none;
  }
}

/* ================= GALERÍA EN CARRUSEL AUTOMÁTICO (27/11) ================= */
.galeria-inner {
  min-height: 0;
  padding-block: clamp(80px, 10vw, 130px);
}

.galeria-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: none;
}

.galeria-scroller::-webkit-scrollbar {
  display: none;
}

.galeria-track figure {
  scroll-snap-align: none;
}

.galeria-track {
  padding-inline: 0;
  gap: clamp(12px, 2vw, 28px);
}

.galeria-fin {
  padding-right: 0;
  padding-left: clamp(8px, 1vw, 16px);
}

@media (max-width:767px) {
  .galeria-track .v {
    height: 380px;
  }

  .galeria-track .h {
    height: 250px;
  }
}.ubi-credito{position:absolute; right:8px; bottom:6px; font-size:10.5px; color:rgba(255,255,255,.85); text-decoration:none; background:rgba(30,35,18,.35); padding:2px 7px; border-radius:20px;}

/* ================= REGALOS (Yappy / cuenta bancaria) ================= */
.regalos {
  background: var(--paper);
  padding-block: clamp(70px, 9vw, 120px);
  text-align: center;
}

.regalos .label {
  color: var(--gold-ink);
}

.regalos h2 {
  font-size: clamp(36px, 5.4vw, 76px);
  color: var(--green);
  margin-top: 18px;
  line-height: 1.05;
}

.regalos h2 em {
  color: var(--gold-ink);
}

.reg-texto {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--ink-soft);
}

.reg-opciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
}

.reg-card {
  flex: 1 1 260px;
  max-width: 360px;
  background: #F3EAD7;
  border: 1px solid rgba(74, 85, 48, .18);
  border-radius: 6px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reg-dato {
  font-family: var(--display);
  font-size: clamp(26px, 6vw, 32px);
  color: var(--green);
  letter-spacing: .04em;
  margin: 4px 0 0;
  user-select: all;
  overflow-wrap: anywhere;
}

.reg-titular {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.reg-copiar {
  margin-top: 10px;
  font: inherit;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--green);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 44px;
  cursor: pointer;
}

.reg-copiar.ok {
  background: var(--gold-ink);
}

.reg-gracias {
  margin-top: 28px;
  font-family: var(--script);
  font-size: 30px;
  color: var(--gold-ink);
}

/* Lluvia de sobres (tarjeta sin botón, con ícono de sobre) */
.reg-sobre-icono { color: var(--gold-ink); margin-bottom: 4px; }
.reg-sobres .reg-titular { max-width: 300px; line-height: 1.5; }
