/* =========================================================
   Lucía & Egor · 20.03.2027 · Cádiz
   Breakpoints: escritorio ≥1200 · tablet 810–1199 · móvil ≤809
   ========================================================= */

@font-face { font-family: "Chamberi"; src: url("../assets/fonts/ChamberiDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Chamberi"; src: url("../assets/fonts/ChamberiDisplay-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Chamberi"; src: url("../assets/fonts/ChamberiDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chamberi"; src: url("../assets/fonts/ChamberiDisplay-SemiBoldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

@font-face { font-family: "DM Sans"; src: url("../assets/fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/DMSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/PlayfairDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/PlayfairDisplay-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #22304f;
  --blue: #34466f;
  --gold: #b08d57;
  --cream: #efece6;
  --white: #ffffff;
  --rose: #f0dfea;
  --input-border: #e6eaf2;
  --placeholder: #7c88a3;
  --serif: "Chamberi", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --playfair: "Playfair Display", Georgia, serif;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
section[id], [id="nos-casamos"] { scroll-margin-top: 100px; }
#top { scroll-margin-top: 0; }

/* ---------- Tipografía (presets) ---------- */
.h2 { font: 600 56px/1.2 var(--serif); letter-spacing: -0.03em; text-transform: uppercase; text-align: center; }
.h3 { font: 600 32px/1.2 var(--serif); text-transform: uppercase; }
.h4 { font: italic 400 24px/1.4 var(--serif); letter-spacing: -0.04em; font-feature-settings: "blwf" 1, "cv03" 1, "cv04" 1, "cv09" 1, "cv11" 1; }
.body { font: 400 18px/1.5 var(--sans); }
.lead { font: 400 24px/1.4 var(--serif); letter-spacing: 0.02em; text-align: center; text-wrap: balance; }
.quote { font: italic 600 24px/1.4 var(--serif); letter-spacing: 0.02em; text-align: center; }
.eyebrow { font: 600 18px/1.2 var(--sans); letter-spacing: -0.02em; text-transform: uppercase; }
.label { font: 400 16px/1.5 var(--sans); }
.small { font: 400 16px/1.5 var(--serif); }
.center { text-align: center; }

@media (max-width: 1199px) {
  .h2 { font-size: 48px; letter-spacing: -0.02em; }
  .h3 { font-size: 28px; }
  .h4 { font-size: 19px; }
}
@media (max-width: 809px) {
  .h2 { font-size: 32px; }
  .h3 { font-size: 28px; }
  .h4 { font-size: 20px; }
  .body { font-size: 16px; }
  .lead, .quote { font-size: 20px; }
}

/* ---------- Iconos (máscara SVG coloreable) ---------- */
.icon {
  --h: 50px; --c: var(--blue); --ar: 1;
  display: block; height: var(--h); width: calc(var(--h) * var(--ar));
  background: var(--c);
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  flex: none;
}
.icon--anillos   { --src: url("../assets/icons/anillos.svg");   --ar: 1.2475; }
.icon--edificio  { --src: url("../assets/icons/edificio.svg");  --ar: 1.002; }
.icon--zapatos   { --src: url("../assets/icons/zapatos.svg");   --ar: 1.0775; }
.icon--avion     { --src: url("../assets/icons/avion.svg");     --ar: 1.205; }
.icon--coche     { --src: url("../assets/icons/coche.svg");     --ar: 1.205; }
.icon--bus       { --src: url("../assets/icons/bus.svg");       --ar: 1.0425; }
.icon--coctel    { --src: url("../assets/icons/coctel.svg");    --ar: 0.735; }
.icon--hotel     { --src: url("../assets/icons/hotel.svg");     --ar: 1; }
.icon--lazo      { --src: url("../assets/icons/lazo.svg");      --ar: 0.915; }
.icon--caballete { --src: url("../assets/icons/caballete.svg"); --ar: 0.68; }

.heart {
  display: block; width: 20px; height: 20px; flex: none;
  background: var(--white);
  -webkit-mask: url("../assets/icons/corazon.svg") center / contain no-repeat; mask: url("../assets/icons/corazon.svg") center / contain no-repeat;
}
.heart--blue { background: var(--blue); }

/* ---------- Animaciones al aparecer ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 1.2s var(--ease) .075s, transform 1.2s var(--ease) .075s; }
.js [data-fade] { opacity: 0; transition: opacity .7s cubic-bezier(.44, 0, .56, 1) .1s; }
.js [data-reveal].is-in, .js [data-fade].is-in { opacity: 1; transform: none; }

/* =========================================================
   MENÚ
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--cream); color: var(--navy);
  transition: background-color .35s ease, color .35s ease;
}
.nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  max-width: calc(1280px + 48px); margin: 0 auto; padding: 16px 24px; min-height: var(--nav-h);
}
.nav__logo { font: 600 32px/1.2 var(--serif); text-transform: uppercase; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a, .nav__menu a { font: 400 16px/1.5 var(--serif); }
.nav__links a:not(.nav__btn) { transition: opacity .2s; }
.nav__links a:not(.nav__btn):hover { opacity: .65; }
.nav__btn {
  display: inline-block; padding: 10px 10px 9px; border-radius: 8px;
  background: var(--blue); color: var(--white);
  font-family: var(--playfair) !important; font-size: 14px !important; line-height: 21px !important;
  transition: background-color .35s ease, color .35s ease, transform .2s ease;
}
.nav__btn:hover { transform: translateY(-1px); }
.nav--dark { background: var(--navy); color: var(--white); }
.nav--dark .nav__btn { background: var(--white); color: var(--navy); }

.nav__burger { display: none; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 4px; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 12px; }
.nav__burger span:last-child { top: 19px; }
.nav--open .nav__burger span:first-child { top: 15px; transform: rotate(45deg); }
.nav--open .nav__burger span:last-child { top: 15px; transform: rotate(-45deg); }

.nav__menu {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); padding: 16px 16px 48px;
}
.nav__menu[hidden] { display: none; }
.nav__menu a:not(.nav__btn) { font: 600 32px/1.2 var(--serif); text-transform: uppercase; text-align: center; }
.nav__menu .nav__btn { margin-top: 8px; }

@media (max-width: 1199px) {
  .nav__bar { padding: 16px 32px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 809px) {
  .nav__bar { padding: 16px; }
  .nav__logo { font-size: 28px; }
}

/* =========================================================
   PORTADA · sobre
   ========================================================= */
.hero { height: 100vh; height: 100svh; padding: var(--nav-h) 24px 0; overflow: hidden; }
.hero__stage { height: 100%; display: flex; align-items: center; justify-content: center; container-type: size; }
.hero__env {
  --w: max(240px, min(72cqw, (100cqh + var(--nav-h) - 56px - var(--nav-h)) * 1.2828));
  position: relative; width: var(--w); aspect-ratio: 1600 / 1247; flex: none;
}
@container (max-width: 699px) {
  .hero__env { --w: max(240px, min(90cqw, (100cqh - 56px) * 1.2828)); }
}
.hero__sobre { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 34px rgba(20, 28, 48, .28)); user-select: none; pointer-events: none; }
.hero__arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero__arc text { fill: #fff; font-family: var(--serif); font-style: italic; font-size: 34px; letter-spacing: .06em; }
.hero__seal {
  position: absolute; left: 41.5%; top: 51.98%; width: 17%; height: 21.81%;
  padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer;
  transition: transform .25s ease; -webkit-tap-highlight-color: transparent;
}
.hero__seal:hover { transform: scale(1.07); }
.hero__seal:active { transform: scale(.94); }
.hero__seal span { display: block; width: 100%; height: 100%; }
.hero__seal img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(10, 14, 28, .45)); pointer-events: none; user-select: none; }
.hero__seal.pulse span { animation: seal-pulse 2.4s ease-in-out infinite; }
@keyframes seal-pulse { 50% { transform: scale(1.035); } }
@media (max-width: 809px) { .hero { height: 95vh; height: 95svh; } }

/* =========================================================
   COLLAGE (invitación animada)
   ========================================================= */
.intro { display: flex; flex-direction: column; align-items: center; gap: 48px; padding: 40px 40px 0; overflow: clip; position: relative; z-index: 3; }
.collage { width: 800px; height: 1180px; max-width: 100%; position: relative; }
.collage__stage { position: absolute; width: 1366px; height: 2050px; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--s, .5756)); transform-origin: 50% 50%; }
.collage__clip { position: absolute; left: -400px; top: -400px; width: 2166px; height: 1632px; overflow: hidden; }
.collage__in { position: absolute; left: 400px; top: 400px; width: 1366px; height: 2050px; }
.piece { position: absolute; will-change: transform; }
.piece__anim, .piece__float { transform-origin: 50% 50%; }
.piece img { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; -webkit-user-drag: none; }
.piece--flip img { transform: scaleX(-1); }
.piece--castillo img { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); }

.disc { position: absolute; left: 269px; top: 1059px; width: 397px; height: 397px; }
.disc__btn { all: unset; display: block; width: 100%; height: 100%; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: scale .3s ease; }
.disc__btn:hover { scale: 1.04; }
.disc__btn:active { scale: .97; }
.disc__btn:focus-visible { outline: 6px solid var(--gold); outline-offset: 6px; }
.disc__btn img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; animation: disc-spin 3.2s linear infinite paused; filter: drop-shadow(0 10px 18px rgba(34, 48, 79, .25)); transition: filter .6s ease; }
.disc--playing .disc__btn img { animation-play-state: running; filter: drop-shadow(0 18px 30px rgba(34, 48, 79, .35)); }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.disc__arc { position: absolute; left: 0; top: 0; width: 1366px; height: 2050px; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.disc__arc text { fill: #fff; font-family: var(--playfair); font-size: 44px; letter-spacing: 5px; }
.collage.is-shown .disc__arc { opacity: 1; transition-delay: 2.3s; }
.collage.is-shown.is-playing .disc__arc { opacity: .35; transition-delay: 0s; }

.date { position: absolute; left: 130px; top: 1514px; width: 600px; height: 300px; display: flex; align-items: center; justify-content: center; rotate: -6deg; pointer-events: none; }
.date__inner { display: inline-block; white-space: nowrap; text-align: center; color: var(--navy); font: 400 64px/.95 var(--playfair); transform-origin: 50% 50%; }
.date__place { font: 600 30px/1.2 "Inter", "Helvetica Neue", Arial, sans-serif; letter-spacing: .09em; margin-top: 18px; }

/* ---------- ¡Nos casamos! ---------- */
.intro__container { width: 100%; max-width: 1280px; display: flex; flex-direction: column; align-items: center; gap: 46px; padding: 50px 0 120px; }
.polaroid { background: var(--white); padding: 12px 12px 56px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1), 0 1px 4px rgba(0, 0, 0, .08); }
.polaroid__img { aspect-ratio: 1; overflow: hidden; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid--intro { width: 367px; flex: none; }
.intro__text { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.intro__text .h2 { max-width: 640px; }
.intro__paras { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.intro__paras .lead { max-width: 700px; }
.intro__container > .quote { max-width: 700px; text-wrap: balance; }

.countdown { display: flex; align-items: center; justify-content: center; gap: 24px; color: var(--navy); }
.countdown__col { width: 100px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.countdown__num { font: 400 68px/1 var(--serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.countdown__lbl { font: italic 400 20px/1.2 var(--serif); letter-spacing: -0.01em; }
.countdown__div { width: 1px; height: 40px; background: currentColor; flex: none; }

.cal { position: relative; width: 200px; }
.cal__btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 11px; border: 0; border-radius: 43px; cursor: pointer;
  background: var(--navy); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  font: 600 14px/1 var(--sans); letter-spacing: -0.01em; transition: background-color .2s;
}
.cal__btn:hover, .cal__btn[aria-expanded="true"] { background: #111; }
.cal__btn:hover svg, .cal__btn[aria-expanded="true"] svg { fill: currentColor; }
.cal__panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 20;
  width: 320px; max-width: calc(100vw - 40px); padding: 20px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.cal__panel[hidden] { display: none; }
.cal__close { position: absolute; top: 12px; right: 12px; padding: 4px; border: 0; background: none; cursor: pointer; opacity: .5; display: flex; }
.cal__close:hover { opacity: 1; }
.cal__title { font: 600 16px/1.2 var(--serif); letter-spacing: -0.01em; }
.cal__sub { font: 400 12px/1.4 var(--serif); opacity: .6; margin-bottom: 6px; }
.cal__opt { display: block; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .15); font: 400 14px/1.2 var(--serif); transition: background-color .2s; }
.cal__opt:hover { background: var(--cream); }

@media (max-width: 1199px) {
  .intro { padding: 40px 20px 0; }
  .collage { width: 100%; height: 1080px; }
  .intro__container { gap: 64px; padding: 80px 0; }
}
@media (max-width: 809px) {
  .intro { gap: 32px; }
  .collage { height: 560px; }
  .intro__container { padding: 64px 0; }
  .countdown { gap: 8px; }
  .countdown__col { width: 70px; height: 80px; }
  .countdown__num { font-size: 48px; }
  .countdown__lbl { font-size: 17px; }
}

/* =========================================================
   EL DÍA DE LA BODA
   ========================================================= */
.navy { background: var(--navy); color: var(--white); position: relative; z-index: 3; }
.theday { padding: 0 40px; }
.theday__container { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding: 120px 0; }
.title { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.title > .body, .title > .quote { margin-top: 12px; }
.title--light { padding-bottom: 50px; }
.title--light .body { margin-top: 12px; }

.timeline { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tl-row { width: 100%; display: flex; align-items: center; justify-content: center; gap: 48px; }
.tl-media { flex: 1 1 0; align-self: stretch; display: flex; align-items: flex-end; justify-content: flex-end; min-width: 0; }
.tl-row--rev .tl-media { justify-content: flex-start; align-items: flex-start; }
.tl-bar { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 20px; flex: none; }
.tl-line { flex: 1 1 0; width: 2px; border-radius: 4px; background: var(--gold); overflow: hidden; position: relative; min-height: 40px; }
.tl-fill { position: absolute; inset: 0; background: var(--white); border-radius: 10px; transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.tl-content { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.tl-row--rev .tl-content { align-items: flex-end; text-align: right; }
.tl-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.tl-content .body { max-width: 360px; }
.tl-row--end .tl-content { min-height: 42px; }
.polaroid--tl { width: 330px; rotate: var(--rot, 0deg); transition: rotate .5s var(--ease), transform .5s var(--ease); }
.polaroid--tl:hover { rotate: 0deg; transform: scale(1.02); }

@media (max-width: 1199px) {
  .theday { padding: 0 20px; }
  .theday__container { padding: 80px 0; }
  .polaroid--tl { width: 300px; }
}
@media (max-width: 809px) {
  .theday__container { padding: 48px 0 32px; }
  .title--light { padding-bottom: 40px; }
  .timeline { gap: 48px; }
  .tl-row { flex-direction: column; align-items: flex-start; gap: 48px; padding-left: 24px; position: relative; }
  .tl-content, .tl-row--rev .tl-content { order: 0; width: 100%; align-items: flex-start; text-align: left; }
  .tl-media, .tl-row--rev .tl-media { order: 1; width: 100%; align-self: auto; align-items: center; justify-content: center; }
  .tl-bar { position: absolute; left: -10px; top: 6px; bottom: 0; order: 2; z-index: 1; }
  .tl-fill { display: none; }
  .polaroid--tl { width: 100%; rotate: 0deg; }
  .tl-row--end { gap: 0; }
  .tl-row--end .tl-media { display: none; }
}

/* =========================================================
   LOS DETALLES · arco blanco
   ========================================================= */
.details { background: var(--navy); padding: 0 24px; display: flex; justify-content: center; position: relative; z-index: 3; }
.arch { width: 100%; max-width: 960px; background: #fff; border-radius: 480px 480px 0 0; padding: 0 48px 120px; display: flex; flex-direction: column; align-items: center; overflow: clip; }
.dsec { width: 100%; padding: 0 40px; display: flex; justify-content: center; }
.dsec__c { width: 100%; max-width: 1280px; display: flex; flex-direction: column; align-items: center; gap: 80px; padding: 36px 0; }
.dsec__c--loc { padding: 57px 0; gap: 24px; }
#viajar .dsec__c { padding: 96px 0; }
#hotels .dsec__c { padding: 0; }
.gifts .dsec__c { gap: 24px; }
.gifts .title { max-width: 640px; }
.iban { text-align: center; }

.dress { width: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 48px; }
.dress__col { flex: 1 1 0; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sep { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.sep span { flex: 1 1 0; width: 2px; min-height: 12px; border-radius: 4px; background: var(--blue); }

.cards3 { width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: 48px; }
.tcard { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.tcard .h4 { margin-bottom: -8px; }

.hotels { width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: 32px; }
.hcard { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hcard__img { aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin-bottom: 32px; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hcard:hover .hcard__img img { transform: scale(1.04); }
.hcard .h4 { text-wrap: balance; }

.pre { width: 100%; max-width: 1280px; display: flex; align-items: center; gap: 48px; padding: 120px 0; }
.pre__img { flex: 1 1 0; align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 0; }
.polaroid--pre { width: 100%; padding: 12px 12px 89px; }
.polaroid--pre .polaroid__img { aspect-ratio: 1.1975; }
.sep--v span { min-height: 40px; }
.pre__content { flex: 1 1 0; display: flex; flex-direction: column; gap: 64px; padding-bottom: 24px; min-width: 0; }
.pre__text { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.pre__title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pre__info { display: flex; flex-direction: column; gap: 24px; padding-bottom: 4px; }
.pre__info hr { width: 100%; height: 1px; border: 0; margin: 0; background: var(--rose); }
.pre__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pre__row .body { flex: 1 1 0; max-width: 360px; text-align: right; }

@media (max-width: 1199px) {
  .dsec { padding: 0 20px; }
  .dsec__c, .dsec__c--loc, #viajar .dsec__c { gap: 64px; padding: 80px 0; }
  .dsec__c--loc { gap: 24px; }
  #hotels .dsec__c { padding: 80px 0; }
  .pre { gap: 32px; padding: 80px 0; }
  .gifts .dsec__c { padding: 80px 0; }
}
@media (max-width: 809px) {
  .details { padding: 24px 12px 40px; }
  .arch { padding: 72px 0 40px; }
  .dsec { padding: 0 20px; }
  .dsec__c, #viajar .dsec__c, #hotels .dsec__c { gap: 40px; padding: 40px 0; }
  .dsec__c--loc { gap: 24px; padding: 0 0 40px; }
  .dress, .cards3 { flex-direction: column; align-items: center; }
  .dress__col, .tcard { width: 100%; max-width: none; flex: none; }
  .tcard { align-items: center; text-align: center; }
  .dress .sep { flex-direction: row; width: 100%; align-self: auto; }
  .dress .sep span { height: 2px; width: auto; min-height: 0; }
  .hotels { flex-direction: column; gap: 48px; }
  .hcard { width: 100%; flex: none; }
  .pre { flex-direction: column; gap: 32px; padding: 40px 0 24px; }
  .pre__img { order: 2; width: 100%; }
  .pre .sep--v { order: 1; flex-direction: row; width: 100%; align-self: auto; }
  .pre .sep--v span { height: 2px; width: auto; min-height: 0; }
  .pre__content { order: 0; width: 100%; flex: none; }
  .pre__text, .pre__title { align-items: center; text-align: center; }
  .gifts .dsec__c { padding: 40px 0; }
}

/* =========================================================
   RSVP
   ========================================================= */
.rsvp { padding: 0 40px; }
.rsvp__container { max-width: 1280px; margin: 0 auto; display: flex; justify-content: center; padding: 120px 0; }
.card { flex: 1 1 0; max-width: 760px; background: #fff; color: var(--navy); border-radius: 24px; padding: 64px 56px; display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.card__head .title { max-width: none; }
.card__phone { display: flex; align-items: center; gap: 16px; }
.card__phone svg { flex: none; }
.card__phone a { white-space: nowrap; }
.phone-br { display: none; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
fieldset.field > .opt + .opt { margin-top: 10px; }
fieldset.field .opt { clear: both; }
.field[hidden] { display: none; }
.input {
  width: 100%; height: 48px; padding: 12px; border-radius: 8px;
  background: var(--cream); border: 1px solid var(--cream); color: var(--navy);
  font: 400 16px/1.2 var(--serif); outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:focus { border-color: var(--navy); }
.input--area { height: auto; min-height: 100px; resize: vertical; }
.opt { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 400 16px/1.5 var(--sans); }
.opt input {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(187, 187, 187, .2); border: 1px solid rgba(136, 136, 136, .2);
  cursor: pointer; transition: box-shadow .15s, background-color .15s, border-color .15s;
}
.opt input[type="checkbox"] { border-radius: 4px; display: grid; place-content: center; }
.opt input[type="radio"]:checked { background: #fff; border-color: var(--navy); box-shadow: inset 0 0 0 5px var(--navy); }
.opt input[type="checkbox"]:checked { background: var(--navy); border-color: var(--navy); }
.opt input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opt input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; clear: both; }
.form__error { color: #a3313f; font: 400 15px/1.4 var(--sans); }
.form__submit {
  height: 48px; width: 100%; border: 0; border-radius: 8px; cursor: pointer; margin-top: 8px;
  background: var(--blue); color: #fff; font: 400 16px/1 var(--serif); transition: background-color .2s, opacity .2s;
}
.form__submit:hover { background: var(--navy); }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.field.is-invalid .label, .field.is-invalid legend { color: #a3313f; }
.field.is-invalid .input { border-color: #a3313f; }

@media (max-width: 1199px) {
  .rsvp { padding: 0 20px; }
  .rsvp__container { padding: 80px 0; }
  .card { width: 100%; }
}
@media (max-width: 809px) {
  .rsvp__container { padding: 40px 0 48px; }
  .card { gap: 48px; padding: 40px 22px; }
  .card__phone { align-items: flex-start; }
  .phone-sep { display: none; }
  .phone-br { display: inline; }
  .grid2 { grid-template-columns: 1fr; }
  .input--area { min-height: 200px; }
}

/* ---------- Gracias ---------- */
.thanks { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.thanks[hidden] { display: none; }
.thanks__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade-in .4s ease both; }
.thanks__title { position: relative; color: #fff; width: 80%; max-width: 700px; animation: rise-in .6s var(--ease) .1s both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   PIE + CIERRE
   ========================================================= */
.footer { background: var(--cream); padding: 40px 48px; position: relative; z-index: 3; }
.footer__c { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__links a, .footer__count { font: 400 16px/1.5 var(--serif); color: var(--navy); }
.footer__links a:hover { opacity: .65; }
.footer__count { white-space: nowrap; }
#footer-count { font-variant-numeric: tabular-nums; }

.cta { position: relative; height: 100vh; height: 100svh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 0 40px; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .41; }
.cta__c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta__text { font: italic 600 50px/1.2 var(--serif); color: #fff; }

@media (max-width: 1199px) { .footer { padding: 40px 20px; } }
@media (max-width: 809px) {
  .footer { padding: 40px 16px; }
  .footer__c { flex-direction: column; align-items: flex-start; gap: 40px; }
  .footer__links { gap: 16px; }
  .cta { padding: 0 16px 64px; }
  .cta__text { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-fade] { opacity: 1; transform: none; transition: none; }
  .hero__seal.pulse span { animation: none; }
}

/* fieldset: flex no es fiable en todos los navegadores */
fieldset.field { display: block; }
fieldset.field > legend { margin-bottom: 10px; }

/* ---------- Ajustes finos (medidos contra la web original) ---------- */
.title--light .body { margin-top: 0; }
.title--tight > .body { margin-top: 0; }
#location .title > .quote { margin-top: 0; }
label.field { gap: 8px; }
.form__submit { margin-top: 0; }
.theday__container { gap: 0; }
@media (max-width: 1199px) { .theday__container { gap: 64px; } }
@media (max-width: 809px) { .theday__container { gap: 40px; } }
.gifts { padding: 0; }
@media (max-width: 1199px) { .gifts { padding: 0 20px; } }
.pre__row { gap: 0; }
.pre__row .body { font-size: 16px; }
@media (max-width: 809px) {
  .title--light { padding-bottom: 50px; }
  .theday .title .body { font-size: 18px; }
}
/* El panel del calendario puede sobresalir por debajo de la sección */
.intro { overflow-x: clip; overflow-y: visible; z-index: 4; }

/* Alojamientos: tres tarjetas alineadas (título y texto a la misma altura) */
.hotels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.hcard { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 16px; }
@media (max-width: 809px) {
  .hotels { display: flex; flex-direction: column; gap: 48px; }
  .hcard { display: flex; }
}
