/* Invitación pública de Con un Abrazo.
   Los colores propios de cada evento llegan como variables (--ac, --tint, --paper, --orn, --fd, --fb) desde un <style> en la página. */
:root {
  --linea: #E6DDD8;
  --tinta: #2A2226;
  --tinta-suave: #6B5E64;
  --mesa: #3B302A;
  --alerta: #A33A1F;
  --grain: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .22' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .07 0 0 0 0 .05 0 0 0 1.1 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html[data-lang="es"] [lang="en"], html[data-lang="en"] [lang="es"] { display: none !important; }
body { margin: 0; background: var(--paper, #FBF8F6); color: var(--tinta); font-family: var(--fb); font-size: 16px; line-height: 1.65;
  padding-bottom: env(safe-area-inset-bottom, 0px); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); }

.preview-bar { position: sticky; top: 0; z-index: 30; background: #2A2226; color: #F3ECEE; font-size: 13px; text-align: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.sample-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font-size: 14px; }
.sample-bar a { color: #F3ECEE; text-decoration: underline; text-underline-offset: 3px; }
.sample-bar .sample-name { font-family: "Newsreader", Georgia, serif; font-size: 17px; }
.sample-bar form { margin: 0; flex: none; width: auto; }
.sample-bar a { white-space: nowrap; }
.sample-bar button { width: auto; min-height: 0; border: 0; border-radius: 4px; background: #F3ECEE; color: #2A2226; font: inherit; font-weight: 600; padding: 8px 14px; cursor: pointer; }
@media (max-width: 520px) { .sample-bar .sample-name { display: none; } }
body:has(.preview-bar.sample-bar) .lang { top: calc(64px + env(safe-area-inset-top, 0px)); }
body:has(.preview-bar) .lang { top: calc(52px + env(safe-area-inset-top, 0px)); }

/* Idioma */
.lang { position: fixed; z-index: 20; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
  display: flex; background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--tinta-suave); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ac); color: #fff; }

/* Mesa y sobre */
body { background-color: var(--mesa); background-image: radial-gradient(ellipse at 50% 40%, rgba(255,235,210,.08), rgba(0,0,0,.28) 75%), var(--wood), var(--grain); }
.intro { min-height: 88vh; min-height: 88svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: calc(72px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
/* El sobre crece en pantallas grandes, sin pasarse del alto de la ventana. */
.stage { width: min(540px, 100%, calc((100svh - 250px) * 1.46)); min-width: min(300px, 100%); }
.hint { margin: 0; color: #D8CBBE; font-size: 14px; text-align: center; }
.skip { color: #D8CBBE; font-size: 13px; }
.intro.revealed .hint, .intro.revealed .skip { opacity: 0; }

/* Antes de abrir el sobre solo se ve la mesa; la invitación aparece cuando la tarjeta sale. */
html.sealed .sheet, html.sealed .made { display: none; }
html.sealed .intro { min-height: 100vh; min-height: 100svh; }
.intro { padding-top: calc(120px + env(safe-area-inset-top, 0px)); }
.sheet.arrive { animation: arrive 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(80px) scale(.97); } to { opacity: 1; transform: none; } }

/* La hoja de la invitación: una tarjeta de papel grueso apoyada sobre la mesa.
   La textura es papel real fotografiado (ambientCG, CC0) que se multiplica sobre el color de la hoja. */
.sheet-wrap { position: relative; }
.sheet { position: relative; width: calc(100% - 24px); max-width: 600px; margin: -40px auto 0; border-radius: 3px;
  background-color: #FFFDF8; background-image: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), url("/img/papel-liso.webp");
  background-size: auto, 300px; background-blend-mode: multiply;
  padding: 72px max(32px, 9%) 60px; display: flex; flex-direction: column; gap: 52px; overflow: hidden; scroll-margin-top: 16px;
  box-shadow: 0 0 0 1px rgba(60,45,35,.06), 0 1px 1px rgba(0,0,0,.12), 0 6px 12px -4px rgba(0,0,0,.18), 0 34px 60px -24px rgba(0,0,0,.5); }
.sheet > * { position: relative; z-index: 1; }
/* Orilla rasgada a mano: una máscara con borde irregular en los cuatro lados. La sombra la da el envoltorio,
   porque la máscara recortaría la sombra de la propia hoja. */
.sheet-wrap.edge-rasgado { filter: drop-shadow(0 1px 1px rgba(0,0,0,.16)) drop-shadow(0 14px 18px rgba(0,0,0,.28)); }
.edge-rasgado .sheet { border-radius: 0; box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%2712%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.09 .6%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%27-20%27 y=%275%27 width=%27240%27 height=%2730%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") top left / 200px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%2712%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.09 .6%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%27-20%27 y=%27-23%27 width=%27240%27 height=%2730%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") bottom left / 200px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%27200%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.6 .09%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%275%27 y=%27-20%27 width=%2730%27 height=%27240%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") top left / 12px 200px repeat-y, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%27200%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.6 .09%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%27-23%27 y=%27-20%27 width=%2730%27 height=%27240%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") top right / 12px 200px repeat-y, linear-gradient(#000 0 0) center / calc(100% - 20px) calc(100% - 20px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%2712%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.09 .6%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%27-20%27 y=%275%27 width=%27240%27 height=%2730%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") top left / 200px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%2712%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.09 .6%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%27-20%27 y=%27-23%27 width=%27240%27 height=%2730%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") bottom left / 200px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%27200%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.6 .09%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%275%27 y=%27-20%27 width=%2730%27 height=%27240%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") top left / 12px 200px repeat-y, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%27200%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.6 .09%27 numOctaves=%273%27 seed=%274%27 stitchTiles=%27stitch%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%277%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27/%3E%3C/filter%3E%3Crect x=%27-23%27 y=%27-20%27 width=%2730%27 height=%27240%27 fill=%27%23000%27 filter=%27url(%23f)%27/%3E%3C/svg%3E") top right / 12px 200px repeat-y, linear-gradient(#000 0 0) center / calc(100% - 20px) calc(100% - 20px) no-repeat; }
/* Láminas botánicas pintadas a mano (dominio público), impresas sobre el papel con "multiplicar":
   una rama grande que entra por la esquina de arriba y otra más chica abajo, cortadas por la orilla.
   Olivo: Köhler 1887 · Rosas: Redouté 1824 · Lavanda: Köhler 1887. */
.sheet.orn-olivo::before, .sheet.orn-olivo::after, .sheet.orn-rosas::before, .sheet.orn-rosas::after, .sheet.orn-lavanda::before, .sheet.orn-lavanda::after {
  content: ""; position: absolute; background: center / contain no-repeat; mix-blend-mode: multiply; z-index: 0; pointer-events: none; }
.sheet.orn-olivo::before, .sheet.orn-olivo::after { background-image: url("/img/lamina-olivo.webp"); aspect-ratio: 900 / 1018; }
.sheet.orn-olivo::before { width: 300px; top: -70px; left: -96px; transform: rotate(-28deg); }
.sheet.orn-olivo::after { width: 220px; bottom: -70px; right: -70px; transform: rotate(152deg); opacity: .9; }
.sheet.orn-rosas::before, .sheet.orn-rosas::after { background-image: url("/img/lamina-rosa.webp"); aspect-ratio: 900 / 1131; }
.sheet.orn-rosas::before { width: 210px; top: -96px; left: -74px; transform: rotate(138deg); }
.sheet.orn-rosas::after { width: 170px; bottom: -84px; right: -60px; transform: rotate(-42deg); opacity: .9; }
.sheet.orn-lavanda::before, .sheet.orn-lavanda::after { background-image: url("/img/lamina-lavanda.webp"); aspect-ratio: 700 / 1682; }
.sheet.orn-lavanda::before { width: 132px; top: -128px; left: -6px; transform: rotate(150deg); }
.sheet.orn-lavanda::after { width: 110px; bottom: -124px; right: -4px; transform: rotate(-30deg); opacity: .85; }
/* Eucalipto de hojas redondas (Curtis's Botanical Magazine, lámina 7835; dominio público). */
.sheet.orn-eucalipto::before, .sheet.orn-eucalipto::after { content: ""; position: absolute; background: url("/img/lamina-eucalipto.webp") center / contain no-repeat;
  mix-blend-mode: multiply; z-index: 0; pointer-events: none; aspect-ratio: 900 / 1451; }
.sheet.orn-eucalipto::before { width: 200px; top: -150px; left: -62px; transform: rotate(150deg); }
.sheet.orn-eucalipto::after { width: 180px; bottom: -120px; right: -36px; transform: rotate(-32deg); opacity: .9; }
/* Cabecera pintada: un paisaje al óleo (Museo Metropolitano, dominio público) arriba de la tarjeta, que se funde con el papel. */
.sheet.has-cover { padding-top: 300px; }
.sheet .cover { position: absolute; z-index: 0; top: 24px; left: 24px; right: 24px; height: 250px; background-size: cover; background-repeat: no-repeat;
  -webkit-mask: linear-gradient(#000 62%, transparent); mask: linear-gradient(#000 62%, transparent); }
.cover-mar { background-image: url("/img/pintura-marino.webp"); background-position: 30% 40% !important; }
.cover-atardecer { background-image: url("/img/pintura-burdeos.webp"); background-position: center 45% !important; }
.cover-cabo { background-image: url("/img/pintura-noche.webp"); background-position: center 35% !important; }
.sheet.orn-marco { box-shadow: inset 0 0 0 14px #FFFDF8, inset 0 0 0 15px var(--orn), inset 0 0 0 19px #FFFDF8, inset 0 0 0 19.6px var(--orn), 0 1px 1px rgba(0,0,0,.12), 0 6px 12px -4px rgba(0,0,0,.18), 0 34px 60px -24px rgba(0,0,0,.5); }
@media (max-width: 480px) {
  .sheet { padding: 84px 26px 56px; width: calc(100% - 20px); }
  .sheet.orn-olivo, .sheet.orn-rosas, .sheet.orn-lavanda { padding-top: 128px; }
  .sheet.orn-olivo::before { width: 180px; top: -58px; left: -66px; }
  .sheet.orn-olivo::after { width: 140px; bottom: -46px; right: -50px; }
  .sheet.orn-eucalipto, .sheet.orn-eucalipto.has-cover { padding-top: 128px; }
  .sheet.orn-eucalipto::before { width: 160px; top: -104px; left: -30px; }
  .sheet.orn-eucalipto::after { width: 120px; bottom: -80px; right: -24px; }
  .sheet.has-cover { padding-top: 220px; }
  .sheet .cover { top: 14px; left: 14px; right: 14px; height: 180px; }
  .sheet.orn-rosas::before { width: 150px; top: -72px; left: -56px; }
  .sheet.orn-rosas::after { width: 120px; bottom: -62px; right: -44px; }
  .sheet.orn-lavanda::before { width: 96px; top: -96px; left: -6px; }
  .sheet.orn-lavanda::after { width: 80px; bottom: -92px; right: -4px; }
}

section { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; min-width: 0; }
h1, h2, h3 { font-family: var(--fd); font-weight: 400; margin: 0; text-wrap: balance; }
.hero { gap: 8px; }
.hero h1 { font-size: clamp(46px, 12vw, 68px); line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero .date { margin: 10px 0 0; font-family: var(--fd); font-size: 20px; }
.hero .city { margin: 0; color: var(--tinta-suave); font-size: 15px; }
h2 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 22px; }
.quote { margin: 0; font-family: var(--fd); font-style: italic; font-size: 19px; line-height: 1.55; max-width: 30ch; }
.cite { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--tinta-suave); }
.muted { margin: 0; color: var(--tinta-suave); }
.divider { width: 120px; height: 18px; }
.divider path { fill: none; stroke: var(--orn); stroke-width: 1.2; stroke-linecap: round; }
.divider circle { fill: var(--orn); }

/* Cuenta regresiva impresa: números grandes separados por líneas finas, sin cajas. */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 380px; margin: 4px 0 6px; }
.countdown div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; }
.countdown div + div { border-left: 1px solid color-mix(in srgb, var(--orn) 45%, transparent); }
.countdown b { font-family: var(--fd); font-weight: 400; font-size: clamp(30px, 9vw, 40px); line-height: 1.05; color: var(--ac); font-variant-numeric: tabular-nums lining-nums; }
.countdown span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave); font-weight: 600; }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; width: 100%; }
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 16px; width: 100%; }
.people p, .sponsors p { margin: 4px 0 0; font-family: var(--fd); font-size: 18px; line-height: 1.5; }

.event { width: 100%; border-top: 1px solid var(--linea); padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.event:first-of-type { border-top: 0; padding-top: 0; }
.event .time { font-family: var(--fd); font-size: 24px; margin: 0; }
.event .place { margin: 0; font-weight: 600; }
.event .addr { margin: 0; color: var(--tinta-suave); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--linea); background: #fff; color: var(--ac); }
.btn:hover { border-color: var(--ac); }
.btn.primary { background: var(--ac); border-color: var(--ac); color: #fff; }
.btn.wide { min-height: 52px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.timeline { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 340px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--linea); text-align: left; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { font-family: var(--fd); color: var(--ac); font-variant-numeric: tabular-nums; }
.swatches { display: flex; gap: 10px; justify-content: center; }
.swatches span { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--linea); }
.note { display: inline-block; background: var(--tint); color: var(--ac); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.box { width: 100%; background: var(--paper); border: 1px solid var(--linea); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.box .name { margin: 0; font-weight: 600; }
.box dl { margin: 6px 0 0; display: grid; grid-template-columns: auto auto; gap: 2px 12px; text-align: left; font-size: 15px; }
.box dt { color: var(--tinta-suave); }
.box dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Confirmación */
.rsvp { background: var(--paper); border-radius: 2px; padding: 40px 22px 34px; width: calc(100% + 16px); align-self: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orn) 50%, transparent), inset 0 0 0 5px var(--paper), inset 0 0 0 6px color-mix(in srgb, var(--orn) 25%, transparent); }
.pass-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.pass-chip b { color: var(--ac); }
form { width: 100%; display: flex; flex-direction: column; gap: 16px; text-align: left; margin-top: 8px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px; border-radius: 6px; background: #fff; border: 1px solid var(--linea); font-weight: 600; cursor: pointer; line-height: 1.3; }
.choice input:checked + label { background: var(--ac); border-color: var(--ac); color: #fff; }
.choice input:focus-visible + label { outline: 2px solid var(--ac); outline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; background: #fff; border: 1px solid var(--linea); border-radius: 6px; padding: 12px 14px; font-size: 16px; }
.field textarea { min-height: 88px; resize: vertical; }
.error { margin: 0; font-size: 14px; color: var(--alerta); }
.thanks { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seal-mini { width: 64px; height: 64px; }
.seal-mini svg { width: 100%; height: 100%; }
.link-btn { background: none; border: 0; color: var(--ac); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px; }

.closing .script { margin: 0; font-family: "Pinyon Script", cursive; font-size: 46px; line-height: 1; color: var(--ac); }
.closing .signed { margin: 0; font-family: var(--fd); font-size: 21px; }
.made { margin: 28px auto 40px; text-align: center; font-size: 13px; color: var(--tinta-suave); }
.made a { color: var(--ac); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .env3d, .flap, .seal, .envelope { transition: none !important; }
}

/* Menú en la confirmación */
fieldset.meals { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.meals legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.meal { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--linea); border-radius: 6px; padding: 8px 10px 8px 14px; }
.meal select { width: auto; min-width: 64px; border: 1px solid var(--linea); border-radius: 6px; padding: 6px 8px; font-size: 16px; background: #fff; }
.hint-meal { margin: 0; font-size: 13px; color: var(--tinta-suave); }

/* Botón de música (abajo a la derecha) */
.music-btn { position: fixed; z-index: 20; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; color: var(--ac);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.music-btn .ico { font-size: 15px; line-height: 1; }
.music-btn.on .ico { animation: music-pulse 1.6s ease-in-out infinite; }
.music-btn:not(.on) .ico { opacity: .55; }
@keyframes music-pulse { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .music-btn.on .ico { animation: none; } }
