@font-face{font-family:'MADE Voyager';src:url(../fonts/made-voyager.otf) format('opentype');font-weight:400;font-style:normal;font-display:swap}

/* Layout: una sola columna de 1200px; cada sección usa el mismo ritmo vertical, el mismo título y rejillas de dos columnas iguales en escritorio */
:root {
  --paper: #F7F7F3;
  --olive: #454A21;
  --olive-deep: #2C3014;
  --hover: #797F00;
  --tint: #EDEDE6;
  --line: #B9BAA8;
  --display: 'MADE Voyager', 'Gilda Display', Georgia, serif;
  --body: 'STIX Two Text', Georgia, serif;
  --wide: 1200px;
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(72px, 9vw, 120px);
  --title-gap: clamp(32px, 4vw, 56px);
  --col-gap: clamp(32px, 5vw, 72px);
  --ease: cubic-bezier(.2,.7,.2,1);
  background: var(--paper);
  color-scheme: light;
  scroll-behavior: smooth;
}
html, body { background: var(--paper); }
body { margin: 0; color: var(--olive); font-family: var(--body); font-size: 18px; line-height: 1.5; overflow-x: clip; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--olive); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

.wrap { box-sizing: border-box; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section) 0; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; text-wrap: balance; margin: 0; }
h2.display { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; margin-bottom: var(--title-gap); }
h3.display { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; }
.lede { font-style: italic; font-size: clamp(18px, 1.5vw, 21px); max-width: 38rem; margin: calc(var(--title-gap) * -.5) 0 var(--title-gap); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* Botón */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 22px; border-radius: 999px;
  background: var(--olive); color: var(--paper); font-style: italic; font-size: 14.5px; text-decoration: none; box-sizing: border-box;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.pill::after { content: "→"; font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.pill:hover { background: var(--hover); transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(44,48,20,.6); }
.pill:hover::after { transform: translateX(4px); }

/* Subrayado animado */
.ul { text-decoration: none; background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat; padding-bottom: 1px; transition: background-size .35s var(--ease); }
.ul:hover { background-size: 100% 1px; }

/* Portada */
.hero { box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-block: 32px 72px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.nav .mono { line-height: 0; }
.nav .links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 17px; }
.nav .links a { padding-block: 0; line-height: 1.2; }
.hero-title { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; padding-top: clamp(48px, 10vh, 120px); }
.hero-title h1 { margin: 0; width: min(760px, 80%); line-height: 0; }
.hero-title h1 img { width: 100%; height: auto; }
.hero-title p { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: .1em; font-variant-numeric: lining-nums tabular-nums; }

/* Menú móvil */
.burger { display: none; width: 44px; height: 44px; border: 0; padding: 0; background: none; color: var(--olive); cursor: pointer; place-items: center; }
.lines { display: block; width: 26px; height: 1.5px; background: currentColor; position: relative; transition: background-color .2s var(--ease) .15s; }
.lines::before, .lines::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor;
  transition: top .25s var(--ease) .2s, transform .25s var(--ease); }
.lines::before { top: -8px; }
.lines::after { top: 8px; }
.menu.open .lines { background-color: transparent; transition-delay: .1s; }
.menu.open .lines::before, .menu.open .lines::after { top: 0; transition: top .25s var(--ease) .1s, transform .3s var(--ease) .35s; }
.menu.open .lines::before { transform: rotate(45deg); }
.menu.open .lines::after { transform: rotate(-45deg); }
.burger:hover .lines::before { transform: translateY(-2px); }
.burger:hover .lines::after { transform: translateY(2px); }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: flex; flex-direction: column;
  padding: calc(44px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.menu.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.menu .close { align-self: flex-end; display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; background: none; color: var(--olive); cursor: pointer; }
.menu nav { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; }
.menu nav a { font-family: var(--display); font-size: 28px; letter-spacing: .02em; }
.menu nav a { transform: translateY(8px); transition: transform .45s var(--ease); }
.menu.open nav a { transform: none; }
body.locked { overflow: hidden; }
@media (max-width: 760px) {
  .nav .mono img { width: 52px !important; }
  .nav .links { display: none; }
  .burger { display: grid; }
}

/* Sobre */
.band { background: var(--olive); color: var(--paper); }
.welcome { position: relative; overflow: hidden; }
.welcome .paint { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.welcome .paint.ready { opacity: 1; }
.welcome .envelope { position: relative; }
.envelope { padding-block: 56px 32px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.envelope .card { position: relative; width: min(560px, 100%); container-type: inline-size; }
.envelope .card p { color: var(--olive); }
.envelope .msg { position: absolute; top: 14%; left: 18%; right: 18%; text-align: center; font-style: italic; font-size: max(10px, 3.4cqw); line-height: 1.2; }
@media (max-width: 640px) { .envelope .card { width: 79%; } .envelope .msg { font-size: max(15px, 5.5cqw); left: 16%; right: 16%; } }
.arrow { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 56px; color: var(--paper); animation: nudge 2.2s var(--ease) infinite; }
.arrow:hover { animation-play-state: paused; transform: translateY(6px); }

/* Itinerario */
.timeline { display: flex; flex-direction: column; }
.timeline .row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 5fr); gap: 4px var(--col-gap); align-items: baseline;
  padding-block: 22px; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.7vw, 23px); transition: padding .35s var(--ease), background .35s var(--ease); }
.timeline .row:first-child { border-top: 1px solid var(--line); }
.timeline .row:hover { background: var(--tint); padding-inline: 16px; }
.timeline .event { font-style: italic; }
.timeline time { font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 640px) { .timeline .row { grid-template-columns: minmax(0, 1fr) auto; } .timeline .place { grid-column: 1 / -1; font-size: 17px; } }
.photo { overflow: hidden; margin-top: var(--title-gap); }
.photo img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .photo img { aspect-ratio: 4 / 3; } }

/* Ubicación */
.loc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); align-items: stretch; }
@media (max-width: 820px) { .loc { grid-template-columns: minmax(0, 1fr); } }

/* Plano: calles con doble línea, manzanas y áreas verdes a tinta sobre papel */
.map { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--olive); background: var(--paper); user-select: none; -webkit-user-select: none; }
.map::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .27 0 0 0 0 .29 0 0 0 0 .13 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.map::after { content: ""; position: absolute; inset: 10px; z-index: 4; pointer-events: none; border: 1px solid rgba(69,74,33,.42); }
@media (min-width: 641px) and (max-width: 820px) { .map { aspect-ratio: 1 / 1; } }
@media (min-width: 821px) { .map { aspect-ratio: 5 / 6; } }
.map-svg { --u: .3; position: relative; display: block; width: 100%; height: 100%; cursor: grab; }
.map-svg.dragging { cursor: grabbing; }
.m-bg { fill: #F7F7F3; }
.m-green path { fill: url(#stipple); stroke: rgba(69,74,33,.2); stroke-width: calc(var(--u) * .8px); }
.m-bldg path { fill: #ECECE1; stroke: rgba(69,74,33,.34); stroke-width: calc(var(--u) * .8px); stroke-linejoin: round; }
.m-path path { fill: none; stroke: rgba(69,74,33,.42); stroke-width: calc(var(--u) * 1px); stroke-dasharray: calc(var(--u) * 2.5px) calc(var(--u) * 2.5px); }
.m-case path, .m-minor path, .m-major path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-case path { stroke: rgba(69,74,33,.55); }
.m-case-minor path { stroke-width: calc(var(--u) * 9px); }
.m-case-major path { stroke-width: calc(var(--u) * 13px); }
.m-minor path { stroke: #FBFBF8; stroke-width: calc(var(--u) * 7px); }
.m-major path { stroke: #FBFBF8; stroke-width: calc(var(--u) * 11px); }
.m-venue { fill: rgba(69,74,33,.05); stroke: rgba(69,74,33,.6); stroke-width: calc(var(--u) * 1.1px); stroke-dasharray: calc(var(--u) * 5px) calc(var(--u) * 4px); }
.m-church { fill: url(#hatch); stroke: var(--olive); stroke-width: calc(var(--u) * 1.2px); }
.map.focus-1 .m-venue[data-place="1"], .map.focus-2 .m-venue[data-place="2"] { fill: rgba(121,127,0,.16); }
.m-labels text { fill: rgba(69,74,33,.72); font-family: var(--body); font-size: calc(var(--u) * 8.5px); letter-spacing: .16em; text-transform: uppercase; paint-order: stroke; stroke: #FBFBF8; stroke-width: calc(var(--u) * 3px); stroke-linejoin: round; }
.m-route-bg { fill: none; stroke: #FBFBF8; stroke-width: calc(var(--u) * 8px); stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.m-route { fill: none; stroke: var(--olive); stroke-width: calc(var(--u) * 3.6px); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 calc(var(--u) * 8.5px); }
.m-walker { fill: var(--paper); stroke: var(--olive); stroke-width: calc(var(--u) * 1.6px); opacity: 0; transition: opacity .3s ease-out; }
.map.drawing .m-walker { opacity: 1; }

/* Entrada: las capas del plano aparecen en cascada */
.map-svg > g, .map-svg > .m-venue, .map-svg > .m-church { transition: opacity .9s var(--ease); }
.map-svg > .m-venue { transition: fill .35s var(--ease), opacity .9s var(--ease); }
.map.pre .map-svg > g, .map.pre .map-svg > .m-venue, .map.pre .map-svg > .m-church { opacity: 0; }
.map-svg > .m-bldg { transition-delay: .1s; }
.map-svg > .m-path, .map-svg > .m-case, .map-svg > .m-minor, .map-svg > .m-major { transition-delay: .22s; }
.map-svg > .m-venue, .map-svg > .m-church { transition-delay: .4s; }
.map-svg > .m-labels { transition-delay: .55s; }

/* Puntos: HTML sobre el mapa para que el texto quede nítido a cualquier zoom */
.markers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.marker { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; pointer-events: auto; outline: none; will-change: transform; }
.mk-dot { position: absolute; left: -16px; top: -16px; box-sizing: border-box; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive); color: var(--paper); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--olive); font: 400 15px/1 var(--body);
  opacity: 0; transform: scale(.7); transition: transform .55s cubic-bezier(.3, 1.5, .5, 1), opacity .25s ease-out, background .3s var(--ease); }
.mk-ring { position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--olive); opacity: 0; pointer-events: none; }
.marker.in .mk-dot { opacity: 1; transform: none; }
.marker.in .mk-ring { animation: ripple 1.3s var(--ease) .1s 1 both; }
.marker.in:active .mk-dot { transform: scale(.94); transition-duration: .12s; }
.marker:focus-visible .mk-dot { outline: 2px solid var(--olive); outline-offset: 4px; }
.mk-tag { position: absolute; display: block; white-space: nowrap; text-align: left; padding: 7px 13px 8px; background: rgba(247,247,243,.96); border: 1px solid var(--olive);
  opacity: 0; transition: opacity .35s ease-out .15s, transform .5s var(--ease) .15s; }
.mk-t { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
.mk-s { display: block; font-style: italic; font-size: 14.5px; line-height: 1.25; }
.marker[data-side="t"] .mk-tag { left: 0; bottom: 26px; transform: translate(-50%, 6px); }
.marker[data-side="r"] .mk-tag { left: 26px; top: 0; transform: translate(-6px, -50%); }
.marker.in[data-side="t"] .mk-tag { opacity: 1; transform: translate(-50%, 0); }
.marker.in[data-side="r"] .mk-tag { opacity: 1; transform: translate(0, -50%); }
.marker.on .mk-dot { background: var(--hover); }
.marker.on .mk-tag { border-style: dotted; }
@keyframes ripple { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* Detalles de plano: norte con escala (arriba a la izquierda) y volver a ver el recorrido (abajo a la derecha) */
.map-chip { position: absolute; z-index: 2; background: rgba(247,247,243,.92); }
.map-scale { left: 22px; top: 22px; display: flex; align-items: flex-end; gap: 10px; padding: 7px 11px; color: var(--olive); font-style: italic; font-size: 13.5px; line-height: 1; }
.map-scale .n { display: flex; align-items: flex-end; gap: 3px; padding-right: 10px; border-right: 1px solid var(--line); font: 400 12px/1 var(--display); letter-spacing: .04em; }
.map-scale i { display: block; width: 60px; margin-bottom: 1px; height: 6px; border: 1px solid var(--olive); border-top: 0; }
.map-replay { right: 22px; bottom: 22px; border: 0; padding: 7px 12px; color: var(--olive); font: italic 15px/1 var(--body); cursor: pointer; transition: transform .16s ease-out; }
.map-replay:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .map-replay:hover .ul { background-size: 100% 1px; } }
@media (max-width: 640px) {
  .map::after { inset: 8px; }
    .map-scale { left: 18px; top: 18px; padding: 6px 9px; font-size: 12.5px; }
  .map-scale .n { display: none; }
  .map-replay { right: 18px; bottom: 18px; padding: 6px 10px; font-size: 14px; }
  .mk-dot { left: -14px; top: -14px; width: 28px; height: 28px; font-size: 14px; }
  .marker[data-side="t"] .mk-tag { bottom: 23px; }
  .marker[data-side="r"] .mk-tag { left: 23px; }
  .mk-tag { padding: 6px 10px 7px; }
  .mk-t { font-size: 11.5px; letter-spacing: .05em; }
  .mk-s { font-size: 13px; }
}

/* Fichas: una sola línea de puntos une la ceremonia con la recepción, igual que la ruta del mapa */
.stops { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.place-info { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 0 30px 50px; }
.place-info:last-of-type { padding-bottom: 0; }
.place-info h3 { margin: 0 0 0 -50px; }
.stop-btn { display: flex; align-items: center; gap: 20px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.place-info .when { font-style: italic; }
.place-info p { text-wrap: pretty; }
.dot { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--olive); color: var(--paper); font-family: var(--body); font-size: 15px; transition: background .3s var(--ease), transform .16s ease-out; }
.place-info.on .dot { background: var(--hover); }
.stop-btn:active .dot { transform: scale(.94); }
.place-info[data-place="1"]::before, .walk::before { content: ""; position: absolute; left: 13px; width: 4px;
  background: radial-gradient(circle, var(--olive) 0, var(--olive) 1.3px, transparent 1.6px) center top / 4px 8px repeat-y; }
.place-info[data-place="1"]::before { top: 42px; bottom: 0; clip-path: inset(0 0 calc(100% * (1 - clamp(0, var(--p, 1) * 2, 1))) 0); }
.walk { position: relative; margin: 0; padding: 14px 0 38px 50px; font-style: italic; font-size: 16px; }
.walk::before { top: 0; bottom: -8px; clip-path: inset(0 0 calc(100% * (1 - clamp(0, var(--p, 1) * 2 - 1, 1))) 0); }
.walk b { margin-right: 10px; font-family: var(--display); font-style: normal; font-weight: 400; letter-spacing: .04em; }
@media (max-width: 640px) { .place-info p br { display: none; } .place-info { padding-left: 46px; } .place-info h3 { margin-left: -46px; } .stop-btn { gap: 16px; } .walk { padding-left: 46px; } }
.note { margin: 0; }
.note strong { font-weight: 600; margin-right: 8px; }
.rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.note.rv { transition-delay: .1s; }
.loc.pre .rv:not(.in) { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .mk-dot, .mk-tag, .rv { transition-duration: .01ms; transition-delay: 0s; } .marker.in .mk-ring { animation: none; } }

/* Hospedaje */
.hotels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap) clamp(24px, 3vw, 40px); }
@media (max-width: 820px) { .hotels { grid-template-columns: minmax(0, 1fr); } }
.hotel { display: flex; flex-direction: column; border: 1px solid var(--olive); transition: transform .4s var(--ease); }
.hotel:hover { transform: translateY(-4px); border-style: dashed; }
.hotel .img { overflow: hidden; }
.hotel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease); }
.hotel:hover img { transform: scale(1.05); }
.hotel .info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: clamp(22px, 2.4vw, 32px); }
.hotel .info .pill { margin-top: auto; }
.hotel .spacer { flex: 1 1 auto; min-height: 8px; }
.code { font-size: 16px; }
.code strong { font-weight: 600; }

/* Vestimenta: recomendaciones a la izquierda y, a la derecha, las dos fotos como impresiones en papel, alineadas */
.dress { --ln: rgba(247,247,243,.45); padding-block: var(--section); margin-top: var(--section); }
.dress .lede { color: rgba(247,247,243,.86); }
.dress h3.display { letter-spacing: .02em; }
.dress .body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--col-gap); align-items: start; }
@media (max-width: 820px) { .dress .body { grid-template-columns: minmax(0, 1fr); } }
.dress .tips { border-top: 1px solid var(--ln); }
.dress .tip { padding: 32px 0; border-bottom: 1px solid var(--ln); }
.dress .tip h3 { margin: 0 0 8px; }
.dress .tip p { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(247,247,243,.7); }
.dress .code-title { display: flex; align-items: center; gap: 24px; margin-bottom: clamp(28px, 3vw, 40px); }
.dress .code-title::after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.dress .code-title h3 { margin: 0; }
.dress .prints { display: flex; align-items: stretch; gap: clamp(16px, 2vw, 24px); }
.dress .print { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; padding: 12px 12px 0; background: var(--paper); color: var(--olive); transition: transform .35s var(--ease); }
.dress .pic { aspect-ratio: 4 / 5; overflow: hidden; }
.dress .pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1s var(--ease); }
.dress .print figcaption { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 8px 24px; text-align: center; }
.dress .print strong { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .04em; }
.dress .print span { font-style: italic; font-size: 16px; line-height: 1.5; color: rgba(69,74,33,.78); text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .dress .print:hover { transform: translateY(-2px); }
  .dress .print:hover .pic img { transform: scale(1.03); }
}
@media (max-width: 640px) {
  .dress .prints { gap: 14px; }
  .dress .print { padding: 8px 8px 0; }
  .dress .print figcaption { padding: 14px 4px 18px; }
  .dress .print strong { font-size: 16px; letter-spacing: .03em; }
  .dress .print span { font-size: 14.5px; }
}

/* Regalos y cierre */
.gift { max-width: 640px; margin: 0 auto; border: 1px solid var(--olive); padding: clamp(40px, 5vw, 56px) 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  transition: transform .4s var(--ease); }
.gift:hover { transform: translateY(-4px); border-style: dashed; }
.gift h2.display { margin: 0; }
.gift p { font-size: 20px; }
.gift .pill { min-width: 204px; }
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks h2.display { font-size: clamp(52px, 6vw, 88px); line-height: 1; margin-bottom: 24px; }
.thanks > p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; }
.thanks img { width: min(520px, 100%); height: auto; margin-block: var(--title-gap) var(--section); transition: transform .8s var(--ease); }
.thanks img:hover { transform: rotate(-2deg) scale(1.02); }
/* Cuenta regresiva */
.countdown { padding-block: clamp(72px, 9vw, 112px); text-align: center; }
.countdown h2.display { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.05; margin-bottom: clamp(32px, 4vw, 48px); }
.clock { display: flex; justify-content: center; }
.clock div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-inline: clamp(16px, 3.5vw, 44px); }
.clock div + div { border-left: 1px solid rgba(247,247,243,.45); }
.clock b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 52px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.clock span { font-style: italic; font-size: clamp(12px, 1.05vw, 14px); }
.countdown .when { margin-top: clamp(28px, 3vw, 40px); font-style: italic; font-size: clamp(14px, 1.2vw, 16px); }

/* Volver al inicio */
.top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--olive); color: var(--paper); box-shadow: 0 0 0 1.5px var(--paper), 0 10px 22px -12px rgba(44,48,20,.7);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s var(--ease); }
.top.show { opacity: 1; transform: none; pointer-events: auto; }
.top:hover { background: var(--hover); transform: translateY(-3px); }
.top svg { transition: transform .3s var(--ease); }
.top:hover svg { transform: translateY(-2px); }

@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes pop { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
