:root {
  color-scheme: light;
  --wine: #581630;
  --deep: #2c0b1d;
  --ink: #2e2428;
  --paper: #fbfafb;
  --silver: #dce0e6;
  --muted: #62575b;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 "DM Sans", sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .3em; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p { margin: 0; }
.hero { display: grid; place-items: center; padding: clamp(1.1rem, 4vw, 2.5rem); min-height: min(760px, 88svh); color: var(--paper); }
.cover { text-align: center; padding: 4.2rem .8rem 3.6rem; }
.label { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hero .label, .countdown .label, .rsvp .label { color: var(--silver); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .98; }
h1 { margin: .3rem 0; font-size: clamp(4rem, 17vw, 8rem); font-style: italic; overflow-wrap: anywhere; }
h2 { margin: .7rem 0 1.25rem; font-size: clamp(2.8rem, 10vw, 4.8rem); }
h3 { margin: .4rem 0 .65rem; font-size: 2.25rem; }
.ornament { color: #7b7980; display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .75rem auto; }
.ornament::before, .ornament::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .55; }
.hero .ornament { color: var(--silver); }
.date { margin-bottom: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; padding: .65rem 1.35rem; border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 600; }
.light { color: var(--deep); background: var(--paper); }
.light:hover { background: var(--silver); }
.section { padding: clamp(3.4rem, 10vw, 6rem) 1.15rem; text-align: center; }
.section > p:not(.label) { max-width: 31ch; margin: 0 auto 1.2rem; }
.welcome > .label, .itinerary > .label, .attire .label { color: #6b2240; }
.countdown, .rsvp { background: var(--wine); color: var(--paper); }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; max-width: 23rem; margin: 1.9rem auto 0; }
.clock div { padding: .7rem .15rem; border: 1px solid #dce0e666; }
.clock strong { display: block; font: 500 clamp(1.6rem, 7vw, 2.8rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.clock span { color: var(--silver); font-size: .64rem; text-transform: uppercase; letter-spacing: .11em; }
.itinerary { background: #f0eef1; }
.events { display: grid; gap: .8rem; max-width: 40rem; margin: auto; }
.events article { padding: 1.55rem 1rem; border: 1px solid #ccc8ce; border-radius: 12rem 12rem .2rem .2rem / 3rem 3rem .2rem .2rem; background: var(--paper); }
.events article p { color: var(--muted); }
.events article a { display: inline-flex; align-items: center; min-height: 44px; }
.attire { margin-top: 1.8rem; }
.attire p + p { font: 500 2rem var(--serif); }
footer { padding: 1.2rem; text-align: center; color: var(--wine); }
footer em { font: italic 1.6rem var(--serif); }
@media (min-width: 40rem) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.color-filters { position: absolute; }
.sealed { overflow: hidden; }
.entry {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--paper) url("fondo-marco.webp?v=lucia") center / cover no-repeat;
}
.entry::backdrop { background: transparent; }
.envelope {
  position: relative;
  width: min(calc(100% - 2.75rem), calc((100dvh - 2rem) * .563));
  aspect-ratio: 941 / 1672;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
}
.entry-video, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.entry-video { display: block; object-fit: cover; pointer-events: none; }
.envelope-name {
  position: absolute;
  top: 19%;
  inset-inline: 1rem;
  text-align: center;
  color: var(--wine);
  text-shadow: 0 1px 8px #fff;
  transition: opacity .35s ease;
}
.envelope-name em { display: block; font: italic clamp(2.8rem, 12vw, 4.7rem)/1 var(--serif); }
.envelope-button {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: opacity .3s ease;
}
.playing .envelope-name, .playing .envelope-button { opacity: 0; visibility: hidden; }
/* Al reproducir el video el botón "Toca para abrir" debe desaparecer por
   completo: la regla anterior perdía en opacidad contra
   button.button:disabled (opacity .65), así que se oculta también con
   display:none y con mayor especificidad. */
.entry.playing .envelope-button, .entry.playing .envelope-name { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.entry.playing .envelope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
  aspect-ratio: auto;
}
@media (min-width: 768px) {
  .entry .envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(calc(100vw - 4rem), 24rem, 42svh);
    height: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    aspect-ratio: 941 / 1672;
  }
  .entry.playing .envelope {
    inset: auto;
    top: 50%;
    left: 50%;
    width: min(calc(100vw - 4rem), 24rem, 42svh);
    height: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    aspect-ratio: 941 / 1672;
  }
}
.entry::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 45%, #fff 0%, #faf9ffeb 24%, #e7e4f2a6 62%, #e7e4f200 100%);
}
.entry.dissolving { animation: dissolve-envelope .8s ease both; }
@keyframes dissolve-envelope { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
}
.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  z-index: 1;
  background: linear-gradient(#270a1dc4, #270a1de0), url("fondo-marco.webp?v=lucia") center / cover, var(--deep);
}
.hero::after {
  content: "";
  width: min(100%, 35rem);
  margin-inline: auto;
  background: url("salon.jpg") center / cover no-repeat;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: min(100%, 35rem);
  margin-inline: auto;
  z-index: -1;
  background: radial-gradient(ellipse at center, #210911aa, #21091128 85%);
}
.hero .cover { text-shadow: 0 2px 5px #0009, 0 3px 18px #0006; }
.hero .button { text-shadow: none; }
#title:focus { outline: none; }
.family { background: var(--paper); }
.family-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem 4rem; }
.family-names h3 { color: var(--wine); }
.welcome .full-name { color: var(--wine); font: 600 clamp(1.6rem, 6vw, 2.2rem) var(--serif); }
.sample-photo, .sample-gallery { text-align: center; margin: 0; padding: 2.6rem 1.2rem .5rem; }
.sample-photo img, .sample-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.sample-photo img { width: min(100%, 19rem); margin: auto; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.sample-gallery { padding-bottom: 2.6rem; }
.sample-gallery > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; width: min(100%, 30rem); margin: auto; }
:is(.sample-photo, .sample-gallery) figcaption { margin-top: .65rem; font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
@media (prefers-reduced-motion: no-preference) {
  .sealed .hero .cover { visibility: hidden; }
  .revealed .hero .cover { animation: reveal-cover .8s ease-out both; }
}
@keyframes reveal-cover {
  from { opacity: 0; transform: translateY(.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

.section.soft { background: #eeeaee; }
.pending { color: var(--muted); }
.countdown .button { margin-top: 1.5rem; }
button.button { border: 0; cursor: pointer; font-family: inherit; }
button.button:disabled { opacity: .65; cursor: default; }
.scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(13rem, 43vw, 27rem);
  padding: 2rem 1rem;
  text-align: center;
  color: white;
  background: var(--deep);
}
.scene::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(#2609195c, #26091997), var(--scene) center / cover;
  filter: url("#wine-silver");
}
.scene p { font: italic clamp(2.6rem, 9vw, 5rem)/1 var(--serif); }
.goodbye strong { display: block; margin-top: .6rem; font: italic 2.2rem var(--serif); }
.timeline { max-width: 23rem; margin: 1.7rem auto 0; padding: 0; list-style: none; text-align: left; }
.timeline li { position: relative; display: grid; grid-template-columns: 6.2rem 1fr; align-items: center; gap: .5rem; padding: .75rem 0 .75rem 1.15rem; border-left: 1px solid #8a6476; }
.timeline li::before { position: absolute; left: -.25rem; width: .45rem; height: .45rem; content: ""; background: var(--wine); border-radius: 50%; }
.timeline .label { color: var(--wine); letter-spacing: .1em; }
.timeline li span { font: 600 1.65rem var(--serif); }
section.attire { margin-top: 0; }
.attire-photo { display: block; width: min(100%, 22rem); height: auto; margin: 0 auto 1.25rem; border-radius: .4rem; }
.rsvp-form { display: grid; gap: .8rem; max-width: 23rem; margin: 1.6rem auto 0; text-align: left; }
.rsvp-form label { display: grid; gap: .25rem; }
.rsvp-form :is(input, select, textarea) { width: 100%; padding: .65rem; border: 1px solid #cbbdc5; border-radius: .35rem; font: inherit; }
.rsvp-form button { justify-self: center; margin-top: .4rem; }
.photo-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.sample-photo > .photo-button { width: min(100%, 19rem); margin: auto; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.sample-photo .photo-button img { width: 100%; }
.lightbox { padding: 0; border: 0; background: var(--deep); color: white; }
.lightbox::backdrop { background: #1c0814e6; }
.lightbox img { display: block; max-width: min(90vw, 50rem); max-height: 80svh; object-fit: contain; }
.lightbox button, .music-button { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid #d3cbd3; border-radius: 50%; background: var(--deep); color: white; font-size: 1.3rem; cursor: pointer; }
.lightbox button { position: absolute; right: .35rem; top: .35rem; }
.music-button { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 3; }
.music-button[aria-pressed="true"] { background: var(--silver); color: var(--deep); }
.sample-list { display: grid; gap: .45rem; max-width: 25rem; margin: 1rem auto 0; padding: 0; list-style: none; }
.sample-list li { padding: .55rem .75rem; border: 1px solid #d5c9d0; border-radius: .35rem; }
.timeline + .pending, .rsvp .demo-result { margin-top: 1.2rem; }

:root {
  --script: "Pinyon Script", var(--serif);
  --panel-border: #c0b7c4;
}
.hero {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  padding: 2rem 1rem clamp(6rem, 13svh, 8rem);
}
.hero::after {
  width: 100%;
  background: url("escena.webp?v=lucia") center center / cover no-repeat;
  filter: none;
}
.hero::before {
  width: 100%;
  background: linear-gradient(to bottom, transparent 88%, #f6f2f6 100%), linear-gradient(rgb(88 22 48 / 15%), rgb(88 22 48 / 15%));
}
.hero .cover { padding: 0; }
.hero .cover > .label { color: white; letter-spacing: .42em; }
.hero h1 { font: 400 clamp(4.7rem, 17vw, 7rem)/1 var(--script); padding: .15em .17em .08em; }
.hero-rule { width: 4.5rem; height: 1px; background: #e8e1eb; margin: .85rem auto 1rem; }
.hero-date { display: grid; gap: .25rem; font: 600 1.75rem/1.15 var(--serif); }
.hero-date > :first-child, .hero-date > :last-child { font-size: 1rem; letter-spacing: .28em; text-transform: uppercase; }
.scroll-hint { position: absolute; bottom: 1.3rem; color: #2c1022; text-align: center; text-decoration: none; text-transform: uppercase; font-size: .72rem; font-weight: 600; letter-spacing: .24em; padding: .4rem 1rem; }
.scroll-hint span { display: block; margin-top: .3rem; font-size: 1.45rem; }
.opening-pages {
  isolation: isolate;
  position: relative;
  padding-bottom: 2rem;
  background: #f6f2f6;
}
.opening-pages::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #f4f0f520, #fcf9fbbf 30%, #fcf9fbbf 70%, #f4f0f520), url("fondo-marco.webp?v=lucia") center / cover;
}
.opening-pages .section:not(.framed-panel) { background: transparent; color: var(--ink); }
.opening-pages .section h2 { color: var(--wine); }
.opening-pages .section > .label { color: var(--wine); }
.opening-pages .section h2 em { font-style: normal; }
.welcome { padding-top: .75rem; padding-bottom: 3rem; }
.welcome .sample-photo { padding: 0; }
.welcome h2, .countdown h2 { margin-top: 2.75rem; font: 400 clamp(3.2rem, 11vw, 5rem)/1.15 var(--script); }
.welcome-diamond { color: #827387; margin: .6rem 0 1rem; font-size: .65rem; }
.opening-pages .welcome-message { max-width: 31ch; font: italic 600 clamp(1.3rem, 4vw, 1.7rem)/1.65 var(--serif); }
.countdown { padding-top: .5rem; padding-bottom: 2rem; }
.countdown h2 { margin-top: 0; }
.countdown-date { display: grid; gap: .15rem; text-transform: uppercase; letter-spacing: .14em; font: 600 1.15rem var(--serif); }
.countdown .clock div { background: #fffafde0; border: 1px solid var(--panel-border); padding: .9rem .1rem; }
.countdown .clock strong { color: var(--wine); }
.countdown .clock span { color: var(--muted); }
.calendar-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; max-width: 28rem; margin: 1.15rem auto 0; }
.calendar-links .button, .calendar-links button.button { margin: 0; border: 1px solid var(--panel-border); border-radius: 0; background: #fffafde0; color: var(--wine); padding-inline: .35rem; }
.sample-photo > .photo-button, .sample-gallery .photo-button, .chambelan-photos .photo-button {
  background: #fff;
  padding: .35rem;
  border: 1px solid var(--panel-border);
  box-shadow: 0 .65rem 1.2rem #36263821;
}
.sample-photo > .photo-button { width: min(100%, 16rem); }
.sample-photo img { aspect-ratio: 3 / 5; }
.sample-gallery .photo-button:first-child, .chambelan-photos figure:nth-child(odd) .photo-button { transform: rotate(-2deg); }
.sample-gallery .photo-button:last-child, .chambelan-photos figure:nth-child(even) .photo-button { transform: rotate(2deg); }

.framed-panel, .locations .events article {
  width: min(calc(100% - 2rem), 29rem);
  margin: 1.75rem auto;
  padding: clamp(1.4rem, 5vw, 2.5rem);
  color: var(--ink);
  background: #fdfafcf0;
  border: 1px solid var(--panel-border);
  outline: 1px solid #d4cbd8;
  outline-offset: -8px;
  border-radius: 0;
  box-shadow: 0 .8rem 1.5rem #36263814;
}
.family h2.label { font-family: "DM Sans", sans-serif; font-weight: 600; font-size: .72rem; }
.family-names { display: grid; gap: 1.7rem; }
.family-names p { font: 600 1.3rem/1.5 var(--serif); }
.chambelan-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .8rem; max-width: 27rem; margin: 1.5rem auto 0; }
.chambelan-photos figure { margin: 0; }
.chambelan-photos img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.chambelan-photos figcaption { margin-top: .5rem; color: var(--wine); font: 400 clamp(1.65rem, 6vw, 2.4rem) var(--script); }
.opening-pages .scene {
  max-width: 35rem;
  margin-inline: auto;
  min-height: clamp(22rem, 80vw, 41rem);
  place-items: end center;
  padding-bottom: clamp(3.5rem, 12vw, 7rem);
  background: transparent;
}
.opening-pages .scene::before {
  background: linear-gradient(transparent 35%, #260c204a 75%), var(--scene) center / cover;
  filter: saturate(.86);
  mask-image: linear-gradient(transparent, black 10%, black 83%, transparent);
}
.opening-pages .scene p, .farewell strong { font: 400 clamp(3.3rem, 11vw, 5rem)/1 var(--script); text-shadow: 0 2px 12px #321925aa; }
.opening-pages .goodbye { min-height: clamp(16rem, 65vw, 28rem); }
.timeline { position: relative; max-width: 29rem; margin-bottom: 1.5rem; }
.timeline::before { position: absolute; inset: 1.5rem 50%; width: 1px; background: var(--panel-border); content: ""; }
.timeline li { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: clamp(.45rem, 2vw, .85rem); padding: .5rem 0; border: 0; }
.timeline li::before { content: none; }
.round-symbol, .timeline li .round-symbol { display: grid; place-items: center; width: clamp(2.65rem, 11vw, 3.75rem); aspect-ratio: 1; border: 1px solid var(--panel-border); border-radius: 50%; background: #fffafd; color: var(--wine); font: 1.4rem var(--serif); }
.timeline li .round-symbol { grid-column: 2; grid-row: 1; }
.timeline li div { grid-column: 3; grid-row: 1; }
.timeline li:nth-child(even) div { grid-column: 1; text-align: right; }
.timeline li div > span { display: block; font-size: clamp(1rem, 4vw, 1.45rem); line-height: 1.12; }
.locations .events { grid-template-columns: 1fr; }
.locations .events article { width: min(100%, 29rem); margin: 0 auto .75rem; }
.locations h3 { color: var(--wine); font: 400 2.8rem/1.1 var(--script); }
.locations h3 + p { font: 600 1.5rem/1.2 var(--serif); }
.locations .label { margin: .65rem 0; }
.locations .venue-example { font-size: .67rem; margin: .75rem 0 .45rem; }
.venue-photos { display: flex; gap: .25rem; }
.venue-photos img { display: block; flex: 1; width: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.locations iframe { display: block; border: 1px solid var(--panel-border); width: 100%; height: 14rem; margin: .5rem 0; }
.map-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
.wine-button, .map-links .wine-button, .rsvp-form button.button { color: white; background: var(--wine); border-radius: 0; text-align: center; padding-inline: .25rem; }
.hotel-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.hotel-list li { border-top: 1px solid var(--panel-border); padding: 1rem 0; }
.hotel-list h3 { font-size: 1.5rem; }
.hotel-list .button { margin-top: .7rem; padding-inline: .9rem; }
#hospedaje .round-symbol { margin: 1rem auto; }
.attire-photo { filter: grayscale(1) contrast(1.06); }
.rsvp .pass-chip { width: fit-content; margin: 1rem auto; padding: .55rem .85rem; border: 1px solid var(--panel-border); }
.rsvp #rsvp-message { padding: .75rem; border: 1px dashed var(--panel-border); color: var(--muted); }
.rsvp-form { max-width: none; }
.choice-group { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; border: 0; margin: 0; padding: 0; }
.choice-group legend { margin-bottom: .35rem; }
.choice-group label { position: relative; display: block; }
.choice-group input { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice-group span { display: grid; place-items: center; min-height: 3rem; height: 100%; text-align: center; padding: .25rem; border: 1px solid var(--panel-border); font-size: .85rem; }
.choice-group :checked + span { color: white; background: var(--wine); }
.choice-group :focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.rsvp-form button.button { width: 100%; }
.farewell { color: var(--wine); padding: 0 1rem 2.8rem; }
.farewell > p:first-of-type { margin: 1rem auto; max-width: 28ch; font: italic 600 1.5rem/1.4 var(--serif); }
.farewell strong { display: block; margin: 1rem auto; text-shadow: none; }

/* Portada y tipografía refinadas según las referencias de Lucía */
.hero {
  justify-content: center;
  padding: 2rem 1rem 5.5rem;
}
.hero .cover {
  width: min(100%, 34rem);
  padding: 0 1rem;
  transform: translateY(-1.5rem);
  text-shadow: 0 2px 5px #180b15b8, 0 5px 18px #160812a6;
}
.hero .cover > .label {
  display: inline-block;
  margin: .15rem 0 .35rem;
  padding: .25rem .7rem;
  color: #f0f0f4;
  font-size: clamp(.72rem, 2.6vw, .95rem);
  font-weight: 600;
  letter-spacing: .38em;
  text-shadow: 0 2px 8px #160812;
}
.hero-crown {
  color: #e0e2e8;
  font: 400 clamp(2.2rem, 9vw, 3.6rem)/1 var(--serif);
  text-shadow: 0 1px 3px #341b2c, 0 0 14px #f6f2f6aa;
  margin: .15rem auto .1rem;
}
.hero h1 {
  color: #f3f2f6;
  font: 400 clamp(4.8rem, 19vw, 8.1rem)/.98 var(--script);
  padding: .08em .08em .02em;
  text-shadow: 0 2px 2px #29101d, 0 4px 10px #180812d9, 0 0 22px #1d0d18aa;
}
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  width: min(19rem, 82%);
  height: auto;
  margin: .3rem auto .6rem;
  background: none;
  color: #e3e4e9;
  font: 400 2.3rem/1 var(--serif);
  text-shadow: 0 2px 6px #23101b;
}
.hero-rule::before, .hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e1e2e8 24%, #e1e2e8 76%, transparent);
  box-shadow: 0 1px 5px #1e101b;
}
.hero-date {
  gap: .35rem;
  color: #f5f3f6;
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  text-shadow: 0 2px 7px #190a13;
}
.hero-date > :first-child, .hero-date > :last-child {
  color: #ececf1;
  font-size: clamp(.88rem, 3vw, 1.05rem);
  letter-spacing: .32em;
}
.hero-date > :nth-child(2) {
  font-style: italic;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
}
.scroll-hint {
  bottom: 1.2rem;
  color: #f2f1f5;
  text-shadow: 0 2px 7px #1d0c18;
}
.scroll-hint span { font-size: 2rem; }
.welcome h2 {
  margin-top: 2rem;
  color: #73304a;
  text-shadow: 0 1px 0 #fff, 0 3px 10px #49313d24;
}
.welcome-diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: #aeb2bb;
  font-size: 1.8rem;
  line-height: 1;
  text-shadow: 0 1px 0 white, 0 2px 4px #51445045;
}
.welcome-diamond::before, .welcome-diamond::after {
  content: "";
  width: min(5.5rem, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, #aeb2bb);
}
.welcome-diamond::after { transform: rotate(180deg); }
.opening-pages .welcome-message {
  max-width: 29ch;
  color: #3e2632;
  font: italic 600 clamp(1.25rem, 4.4vw, 1.75rem)/1.55 var(--serif);
  text-shadow: 0 1px 0 #fff9;
}
.welcome .full-name {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 1.15rem auto .1rem;
  color: #65223c;
  font: 400 clamp(2.15rem, 8.4vw, 4rem)/1.12 var(--script);
  text-shadow: 0 1px 0 #fff, 0 3px 8px #4425322b;
}
.countdown h2 {
  color: #71314a;
  text-shadow: 0 1px 0 #fff, 0 3px 10px #49313d24;
}
.countdown-date { color: #50313e; }
.countdown-date > span { padding: .12rem 0; }
.countdown .clock div {
  border-color: #b9bbc4;
  box-shadow: inset 0 0 0 1px #fff, 0 3px 12px #30233315;
}
.countdown .clock strong { color: #6a2741; }
.countdown .clock span { color: #65616a; }
@media (max-width: 380px) {
  .hero { padding-inline: .6rem; }
  .hero .cover { transform: translateY(-.5rem); padding-inline: .35rem; }
  .hero h1 { font-size: clamp(4.2rem, 18vw, 5.2rem); }
  .hero-date > :nth-child(2) { font-size: 1.7rem; }
}

/* Portada móvil: letras plata legibles sobre la escena, como en la referencia */
.hero::before {
  background:
    linear-gradient(to bottom, transparent 88%, #f6f2f6 100%),
    radial-gradient(ellipse 68% 38% at 50% 34%, rgb(37 13 28 / 31%) 0%, rgb(37 13 28 / 18%) 56%, transparent 100%),
    linear-gradient(rgb(88 22 48 / 15%), rgb(88 22 48 / 15%));
}
.hero .cover > .label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin: .15rem 0 .5rem;
  color: #f5f5f7;
  font-size: clamp(.78rem, 3vw, .98rem);
  letter-spacing: .3em;
  -webkit-text-stroke: .2px #30202b;
  text-shadow: 0 2px 5px #170b13, 0 0 12px #170b13;
}
.hero .cover > .label::before, .hero .cover > .label::after {
  content: "";
  width: clamp(2rem, 10vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e3e8);
  box-shadow: 0 1px 5px #170b13;
}
.hero .cover > .label::after { transform: rotate(180deg); }
.hero-crown {
  margin: .2rem auto .15rem;
  color: #e6e7eb;
  -webkit-text-stroke: .35px #473542;
  text-shadow: 0 2px 5px #170b13, 0 0 14px #fff8;
}
.hero-crown svg {
  display: block;
  width: clamp(4.4rem, 16vw, 6.8rem);
  height: auto;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px #170b13);
}
.hero h1 {
  color: #fff;
  font-size: clamp(5.05rem, 21vw, 8.6rem);
  -webkit-text-stroke: .45px #4c3443;
  text-shadow: 0 2px 2px #25131e, 0 5px 9px #140910e8, 0 0 20px #140910bb;
}
.hero-date {
  gap: .24rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 6px #180b14, 0 0 12px #180b14;
}
.hero-date > :first-child, .hero-date > :last-child {
  color: #f1f1f4;
  -webkit-text-stroke: .2px #3d2937;
  text-shadow: 0 2px 5px #180b14;
}
.hero-date > :nth-child(2) {
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  font-weight: 600;
}
.hero-date > :last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.hero-date > :last-child::before, .hero-date > :last-child::after {
  content: "";
  width: clamp(3rem, 14vw, 5.5rem);
  height: 1px;
  background: #dfe1e7;
  box-shadow: 0 1px 5px #180b14;
}
.scroll-hint-mobile { display: none; }
.scroll-hint {
  color: #f5f4f7;
  text-shadow: 0 2px 6px #180b14, 0 0 12px #180b14;
}
.scroll-hint span { color: #e5e6eb; font-size: 2.25rem; line-height: 1; }
@media (max-width: 600px) {
  .hero { padding: 1.25rem .7rem 0; }
  .hero .cover {
    width: min(100%, 31rem);
    padding: 0 .3rem;
    transform: translateY(-28svh);
  }
  .hero .cover > .label { gap: .5rem; }
  .hero h1 {
    position: relative;
    font-size: clamp(4.7rem, 21vw, 6.9rem);
  }
  .hero h1::after {
    content: attr(data-name);
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    padding: inherit;
    line-height: inherit;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    text-shadow: none;
    background: linear-gradient(105deg, transparent 41%, #9ba9bd 45%, #eef4fb 47%, #ffffff 50%, #ffffff 51%, #aab7c9 54%, transparent 58%);
    background-size: 300% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 4px rgb(242 247 255 / 88%));
    pointer-events: none;
    opacity: 0;
    animation: name-reflection 9.5s ease-in-out 1s infinite;
  }
  @keyframes name-reflection {
    0%, 58%, 100% { background-position: 100% 0; opacity: 0; }
    62% { opacity: 1; }
    82% { background-position: 0% 0; opacity: 1; }
    90% { background-position: -25% 0; opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero h1::after { animation: none; opacity: 0; }
  }
  .hero-date > :nth-child(2) { font-size: clamp(1.75rem, 7.5vw, 2.35rem); }
  .hero-date > :first-child {
    display: inline-block;
    width: fit-content;
    margin: .15rem auto;
    padding: .05em .4em;
    border-radius: .12em;
    background: rgb(245 242 246 / 82%);
    color: var(--wine);
    -webkit-text-stroke: 0;
    text-shadow: none;
    box-shadow: 0 1px 5px #23101b35;
  }
  .scroll-hint-desktop { display: none; }
  .scroll-hint-mobile {
    position: static;
    display: grid;
    justify-items: center;
    gap: .12rem;
    width: fit-content;
    margin: .75rem auto 0;
    padding: .25rem .7rem;
    color: #f5f4f7;
    text-shadow: 0 2px 6px #180b14, 0 0 12px #180b14;
  }
  .scroll-hint-mobile span { margin: 0; }
  .opening-pages::before {
    position: absolute;
    background-image:
      linear-gradient(90deg, #f4f0f555, #fcf9fbe6 30%, #fcf9fbe6 70%, #f4f0f555),
      url("fondo-marco.webp?v=lucia");
    background-position: center top, center top;
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat, repeat-y;
  }
}
@media (max-width: 360px) {
  .hero .cover { transform: translateY(-25svh); }
  .hero h1 { font-size: clamp(4.35rem, 19.5vw, 5.15rem); }
  .hero .cover > .label { letter-spacing: .22em; }
}
.petal-layer { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal-layer i {
  position: absolute;
  top: -1rem;
  left: var(--left);
  width: .5rem;
  height: .84rem;
  border-radius: 90% 12% 90% 14%;
  background: linear-gradient(150deg, #c98d9c, #681934);
  opacity: .56;
  animation: rose-drift var(--duration) var(--delay) linear infinite;
}
.petal-layer i:nth-child(3n) { width: .35rem; height: .65rem; opacity: .36; }
@keyframes rose-drift {
  0% { transform: translate(0, -3vh) rotate(0deg); }
  25% { transform: translate(30px, 26vh) rotate(75deg); }
  50% { transform: translate(-16px, 53vh) rotate(160deg); }
  75% { transform: translate(24px, 79vh) rotate(245deg); }
  100% { transform: translate(-15px, 107vh) rotate(330deg); }
}
@media (prefers-reduced-motion: reduce) { .petal-layer { display: none; } }

/* Acomodo de textos (2026-11-09): la letra script se encimaba con lo de abajo */
.hero h1 { line-height: 1.12; padding-bottom: .22em; }
.hero-rule { margin: 1.15rem auto 1rem; }
.hero-date { gap: .5rem; margin-top: .35rem; }
.welcome h2, .countdown h2 { line-height: 1.3; padding-bottom: .12em; }
.welcome .full-name { line-height: 1.25; padding-bottom: .12em; }
.countdown-date { gap: .35rem; }
.countdown-date [data-year] { margin-left: .45em; }
.hero-date [data-year] { margin-top: .15rem; }
.opening-pages .scene p, .farewell strong { line-height: 1.2; padding-bottom: .15em; }
.scene p { text-shadow: 0 3px 10px #1a0a14, 0 6px 22px #1a0a14cc, 0 0 26px #1a0a1499; }
.opening-pages .scene::before {
  background: linear-gradient(transparent 18%, #260c2059 58%, #260c207d 100%), var(--scene) center / cover;
}
.farewell strong { margin-bottom: .55rem; }
.farewell .label { margin-top: 1rem; }
.locations h3 { line-height: 1.25; padding-bottom: .12em; }

/* Mayor contraste y realce tipográfico en todas las secciones interiores */
.opening-pages {
  --wine: #570d28;
  --ink: #411323;
  --muted: #613949;
  color: var(--ink);
}
.opening-pages :is(h2, h3, p, li, label, legend, .label, figcaption, time, strong, span) {
  color: var(--wine);
}
.opening-pages .section > .label,
.opening-pages .label,
.opening-pages .countdown-date,
.opening-pages .countdown .clock span,
.opening-pages .rsvp-form label,
.opening-pages .choice-group legend {
  color: var(--wine);
  font-weight: 700;
  text-shadow: 0 1px 0 #fff, 0 1px 5px #fff9;
}
.opening-pages .section h2,
.opening-pages .section h3,
.opening-pages .welcome-message,
.opening-pages .family-names p,
.opening-pages .timeline li div > span,
.opening-pages .farewell > p:first-of-type {
  color: var(--wine);
  text-shadow: 0 1px 0 #fff, 0 2px 5px #fff9, 0 2px 10px #42122235;
}
.opening-pages .section h2 {
  font-weight: 500;
  -webkit-text-stroke: .25px currentColor;
}
.opening-pages .welcome h2,
.opening-pages .countdown h2,
.opening-pages .section h3,
.opening-pages .locations h3,
.opening-pages .chambelan-photos figcaption,
.opening-pages .farewell strong {
  color: #570d28;
  -webkit-text-stroke: .2px currentColor;
  text-shadow: 0 1px 0 #fff, 0 2px 6px #fff9, 0 3px 10px #42122238;
}
.opening-pages .welcome .full-name {
  color: #4c0b22;
  font-size: clamp(2.45rem, 9vw, 4.25rem);
  -webkit-text-stroke: .55px currentColor;
  text-shadow: 0 0 .5px #4c0b22, 0 1px 0 #fff, 0 2px 3px #fff, 0 4px 14px #35101e66;
}
.opening-pages .countdown .clock strong,
.opening-pages .countdown .clock span,
.opening-pages .countdown-date,
.opening-pages .family-names p,
.opening-pages .itinerary .timeline,
.opening-pages .locations .events,
.opening-pages .attire > p,
.opening-pages .rsvp > p,
.opening-pages .rsvp-form,
.opening-pages .farewell .label {
  color: var(--wine);
}
.opening-pages .countdown .clock div,
.opening-pages .calendar-links :is(.button, button.button),
.opening-pages .framed-panel,
.opening-pages .locations .events article {
  background-color: #fffdfcf5;
}
.opening-pages .section:not(.framed-panel) :is(p, li, .pending),
.opening-pages .framed-panel :is(p, li, label, legend),
.opening-pages .locations .events article :is(p, h3),
.opening-pages .hotel-list h3 {
  color: #4b1729;
  font-weight: 600;
  text-shadow: 0 1px 0 #fff, 0 1px 5px #fff, 0 2px 9px #42122222;
}
.opening-pages .welcome-message,
.opening-pages .family-names p,
.opening-pages .timeline li div > span,
.opening-pages .locations h3 + p,
.opening-pages .attire > p,
.opening-pages .rsvp > p,
.opening-pages .farewell > p:first-of-type {
  -webkit-text-stroke: .12px currentColor;
}
.opening-pages .scene p {
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 2px #210b16, 0 4px 14px #210b16, 0 0 22px #210b16cc;
}
.opening-pages .ornament,
.opening-pages .welcome-diamond { color: #85858e; }
.opening-pages .welcome-diamond { text-shadow: 0 1px 0 #fff, 0 2px 8px #451b2b44; }
.opening-pages :is(.wine-button, .map-links .wine-button, .rsvp-form button.button,
  .choice-group :checked + span) {
  color: #fff;
  text-shadow: 0 1px 2px #230a16;
}
.opening-pages .rsvp-form :is(input, select, textarea) {
  color: #411323;
  background: #fffdfc;
  border-color: #aaaab2;
}
.opening-pages .rsvp-form :is(input, select, textarea)::placeholder { color: #704e5b; opacity: 1; }

/* Efecto al abrir el sobre (2026-11-09): destello dorado y chispas */
.opening-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 45%, #fff6d8 0%, #f3d98a99 28%, #e8b64c33 55%, transparent 75%);
}
.playing .opening-flash { animation: opening-flash 1.8s ease-out both; }
@keyframes opening-flash {
  0% { opacity: 0; transform: scale(.7); }
  25% { opacity: .95; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}
.burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.burst i {
  position: absolute;
  left: 50%;
  top: 52%;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0%, #f0cd6e 45%, #d99a2b00 72%);
  box-shadow: 0 0 12px #f0cd6eaa;
  opacity: 0;
}
.burst i:nth-child(3n) { width: .32rem; height: .32rem; background: radial-gradient(circle, #fff 0%, #c98d9c 50%, transparent 75%); }
.playing .burst i { animation: burst-fly 1.5s ease-out var(--d, 0s) both; }
@keyframes burst-fly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1.15) rotate(200deg); }
}
@media (prefers-reduced-motion: reduce) {
  .playing .opening-flash, .playing .burst i, .playing .envelope { animation: none; }
}

/* Humo vino en la parte blanca final (2026-11-09) */
.farewell { position: relative; overflow: hidden; isolation: isolate; }
.farewell > * { position: relative; z-index: 1; }
.wine-smoke { position: absolute; inset: -10% 0 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wine-smoke i {
  position: absolute;
  bottom: -28%;
  left: var(--l, 12%);
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  filter: blur(30px);
  background: radial-gradient(circle, #7a1f3d59 0%, #58163038 45%, transparent 70%);
  opacity: 0;
  animation: wine-smoke-drift 10s ease-in-out var(--d, 0s) infinite;
}
.wine-smoke i:nth-child(1) { --l: -6%; --d: 0s; }
.wine-smoke i:nth-child(2) { --l: 28%; --d: 1.8s; width: 20rem; height: 20rem; background: radial-gradient(circle, #a34a674d 0%, #7a1f3d30 45%, transparent 70%); }
.wine-smoke i:nth-child(3) { --l: 62%; --d: 3.4s; width: 15rem; height: 15rem; }
.wine-smoke i:nth-child(4) { --l: 82%; --d: 5s; width: 19rem; height: 19rem; background: radial-gradient(circle, #c98d9c40 0%, #8a2a4a2b 45%, transparent 70%); }
.wine-smoke i:nth-child(5) { --l: 12%; --d: 6.4s; width: 14rem; height: 14rem; }
.wine-smoke i:nth-child(6) { --l: 48%; --d: 8s; width: 21rem; height: 21rem; }
@keyframes wine-smoke-drift {
  0% { opacity: 0; transform: translateY(24%) translateX(0) scale(.65) rotate(0deg); }
  25% { opacity: .75; }
  55% { opacity: .55; transform: translateY(-8%) translateX(5%) scale(1.08) rotate(7deg); }
  100% { opacity: 0; transform: translateY(-58%) translateX(-4%) scale(1.3) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wine-smoke i { animation: none; opacity: 0; }
}

/* Fecha final y contraste de despedida (2026-11-09) */
.farewell .label {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #581630;
  margin-top: 1.25rem;
  text-shadow: 0 0 14px #fbfafb, 0 0 6px #fbfafb, 0 1px 2px #fbfafb;
}
.farewell > p:first-of-type {
  color: #581630;
  font-weight: 700;
  text-shadow: 0 0 14px #fbfafb, 0 0 6px #fbfafb, 0 1px 2px #fbfafb;
}
.farewell strong {
  color: #581630;
  text-shadow: 0 0 14px #fbfafb, 0 0 6px #fbfafb, 0 1px 2px #fbfafb;
}
.farewell .ornament { color: #581630; }
.wine-smoke { opacity: .6; }

/* Marcos de galería iguales (2026-11-09): mismo tamaño y alineados, como el de la foto de frente */
.sample-gallery > div { align-items: start; }
.sample-gallery .photo-button { width: 100%; }
.sample-gallery .photo-button img { aspect-ratio: 2 / 3; object-fit: cover; }

/* Fecha sobre el contador más visible (2026-11-09) */
.countdown-date {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  gap: .45rem;
  color: #581630;
  text-shadow: 0 0 12px #fbfafb, 0 1px 2px #fbfafb;
}
.countdown-date [data-weekday] { font-size: 1.75rem; }

/* Lucía del cierre: mismo realce vino que el nombre de bienvenida */
.opening-pages .farewell strong {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto .55rem;
  color: #4c0b22;
  font: 400 clamp(2.45rem, 9vw, 4.25rem)/1.25 var(--script);
  -webkit-text-stroke: .55px currentColor;
  text-shadow: 0 0 .5px #4c0b22, 0 1px 0 #fff, 0 2px 3px #fff, 0 4px 14px #35101e66;
}

