/* Storefront, purchase journey and organizer dashboard — the brand's wine, gold, ivory and night blue
   (fixtures/ventures/social-first/brand/BRAND.md), mobile first. Nothing external: the fonts are our own files served
   under style-src 'self' — the brand's headline face (brand-display.woff2: Prata, SIL OFL, one weight, never faked
   bold), the serif the photo story invitations use as its fallback, and their script for the envelope. The page has
   one moment of motion, the hero envelope opening, and none under prefers-reduced-motion. */

@font-face { font-family: "Brand Display"; src: url("brand-display.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VF Serif"; src: url("vip-serif.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "VF Script"; src: url("vip-script.woff2") format("woff2"); font-display: swap; }

:root {
  --font-display: "Brand Display", "VF Serif", Gabriola, "Sitka Display", "Palatino Linotype", Palatino, Georgia, serif;
  /* Numbers: the display face's 1 reads like an l, so prices, counts and step numbers use the classic serif. */
  --font-numbers: "VF Serif", "Palatino Linotype", Palatino, Georgia, serif;
  --font-script: "VF Script", "Segoe Script", "Apple Chancery", Gabriola, cursive;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bg: #FBF7F2;
  --bg-2: #F5E6E1;
  --surface: #FFFFFF;
  --ink: #2A1F2D;
  --muted: #5E5362;
  --gold: #B08A45;
  --gold-text: #7A5A1E;
  --accent: #6E2F3E;
  --accent-hover: #5A2432;
  --accent-ink: #FFFFFF;
  --midnight: #1E2A4A;
  --midnight-ink: #F5F0E4;
  --midnight-gold: #E6CD8F;
  --midnight-deep: #141D35;
  --midnight-muted: #C9CFE3;
  --phone-frame: #0E1426;
  --line: #EADDD3;
  --line-strong: #D9C4B5;
  --focus: #1B4E9B;
  --success: #1F6B45;
  --success-bg: #E7F4EC;
  --error: #A3261F;
  --error-bg: #FBEAE8;
  --ribbon-bg: #FFF4D6;
  --ribbon-ink: #5A4300;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(42, 31, 45, 0.06);
  --shadow: 0 1px 2px rgba(42, 31, 45, 0.05), 0 14px 36px -18px rgba(42, 31, 45, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
html[data-active-lang="en"] [data-lang="es"], html[data-active-lang="es"] [data-lang="en"] { display: none !important; }

body {
  margin: 0; min-height: 100vh; min-height: 100svh; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Type scale 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 48 / 60; headings in the brand's face (its one weight), tight and balanced. */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 0.6rem; color: var(--ink); text-wrap: balance; }
/* The fallback serif's old-style figures make a 1 look like an I: numbers are set as lining figures. */
h1, h2, h3, h4, .price-amount, .summary-pkg, .totals .total dd { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2rem, 5.5vw + 0.5rem, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4.4vw, 2.5rem); }
h3, .h3 { font-size: 1.5rem; }
.h4 { font-size: 1.25rem; }
p { margin: 0 0 0.9rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.85em; background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 6px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 0.875rem; color: var(--muted); }
.eyebrow { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.7rem; }
.lead { font-size: clamp(1.125rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 38rem; }
.lead-sm { color: var(--muted); max-width: 44rem; margin-left: auto; margin-right: auto; }
.section { padding: 3.5rem 0; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

/* ---------------------------------------------------------------- sandbox ribbon, header, footer ---------------------------------------------------------------- */
.sandbox-ribbon {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 0.6rem; padding: 0.45rem var(--gutter);
  background: var(--ribbon-bg); color: var(--ribbon-ink); font-size: 0.82rem; text-align: center; border-bottom: 1px dashed #C9A449;
}
.sandbox-ribbon strong { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 242, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { color: var(--gold); }
.brand-name { font-family: var(--font-display); font-size: 1.65rem; letter-spacing: 0.02em; line-height: 1; }
/* The Fiestrella wordmark (outlined letters, gold star over the i): never re-set in a font (BRAND.md §5). */
.brand-wordmark { display: block; width: auto; height: 30px; }
.site-footer .brand-wordmark { height: 34px; }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { background: var(--bg-2); }
.nav-toggle { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 0.9rem var(--font-body); cursor: pointer; }
.has-nav-toggle .site-nav { display: none; order: 10; width: 100%; flex-direction: column; padding: 0.5rem 0 1rem; }
.has-nav-toggle .site-nav.is-open { display: flex; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch button { min-width: 44px; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 0.8rem var(--font-body); letter-spacing: 0.08em; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.market-control { display: grid; gap: 0.15rem; align-content: center; min-width: 0; }
.market-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.market-switch { display: inline-flex; width: max-content; max-width: 100%; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.market-switch button { min-height: 38px; padding: 0.3rem 0.7rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 0.8rem var(--font-body); cursor: pointer; white-space: nowrap; }
.market-switch button small { margin-left: 0.15rem; font-size: 0.72rem; color: inherit; }
.market-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.market-prompt { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.3; }
body[data-regional-pricing="true"][data-market="unknown"] [data-market-price] { color: var(--muted); }

/* Customer entry is added only by an account-enabled storefront. Legacy pages have none of these classes. */
.customer-account-nav.wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem 1rem; padding-top: .6rem; padding-bottom: .75rem; border-top: 1px solid var(--line); }
.customer-account-nav > p, .customer-account-nav > span { margin: 0 auto 0 0; color: var(--muted); font-size: .85rem; }
.customer-account-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .9rem; border-radius: 999px; color: var(--accent); font-weight: 600; text-decoration: none; }
.customer-account-nav a:hover { background: var(--bg-2); }
.customer-account-nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.customer-account-nav a.btn-primary { background: var(--accent); color: var(--accent-ink); }
.customer-account-entry { max-width: 740px; margin: 1.3rem 0; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.customer-account-entry h2, .customer-account-entry h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: .6rem; }
.customer-account-entry p { color: var(--muted); overflow-wrap: anywhere; margin-bottom: .75rem; }
.customer-account-entry p:last-child { margin-bottom: 0; }
.customer-account-entry-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.customer-account-entry .btn { min-height: 44px; white-space: normal; }
@media (max-width: 600px) { .customer-account-nav.wrap { justify-content: flex-start; gap: .4rem; } .customer-account-nav > p, .customer-account-nav > span { flex-basis: 100%; } .customer-account-entry-actions .btn { flex: 1 1 180px; } }

.site-footer { background: var(--midnight); color: var(--midnight-ink); padding: 3rem 0 2.5rem; margin-top: 2rem; }
.site-footer a { color: var(--midnight-ink); }
.site-footer .fine { color: #C9CFE3; }
.site-footer code { background: rgba(255, 255, 255, 0.1); color: var(--midnight-ink); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand .brand { color: var(--midnight-ink); }
.footer-brand .brand-mark { color: var(--midnight-gold); }
.footer-tagline { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.4; color: var(--midnight-gold); }
.footer-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-notices { display: grid; gap: 0.6rem; }
.site-footer .notice { background: rgba(255, 255, 255, 0.07); border-color: rgba(230, 205, 143, 0.45); color: var(--midnight-ink); }
.site-footer-min { background: transparent; color: var(--muted); padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.site-footer-min a { color: var(--muted); }
/* The seller block on the light journey footer: the page's muted ink (about 7:1 on the cream page), in the body font. */
.site-footer-min .commercial-contact, .site-footer-min .commercial-contact .fine, .site-footer-min .commercial-contact a { color: var(--muted); }
.commercial-address { white-space: pre-line; font-family: inherit; }

.notice { border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 0.75rem 1rem; background: var(--surface); font-size: 0.92rem; }
.notice-private { border-left-color: var(--accent); }
.notice-sandbox, .notice-draft { border-left-color: #C9A449; background: var(--ribbon-bg); color: var(--ribbon-ink); }
.tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tag-sandbox { background: var(--ribbon-bg); color: var(--ribbon-ink); border: 1px dashed #C9A449; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; margin: 0; }
.chip-proposed { background: var(--bg-2); color: var(--gold-text); }
.chip-demo { background: rgba(30, 42, 74, 0.86); color: var(--midnight-ink); }
.sandbox-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }

/* ---------------------------------------------------------------- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; max-width: 100%; padding: 0.75rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; font: 600 0.98rem/1.2 var(--font-body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; text-align: center; touch-action: manipulation;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 24px -14px rgba(110, 47, 62, 0.9); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--gold); }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--bg-2); }
/* On the night-blue bands: the gold of the brand's star, and a light outline. */
.btn-gold { background: var(--midnight-gold); color: var(--midnight); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.7); }
.btn-gold:hover { background: #F0DCA8; transform: translateY(-1px); }
.btn-light { background: transparent; color: var(--midnight-ink); border-color: rgba(245, 240, 228, 0.55); }
.btn-light:hover { background: rgba(245, 240, 228, 0.08); border-color: var(--midnight-ink); }
.btn-lg { min-height: 54px; padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; transform: none; }
.text-link { font-weight: 600; }

/* ---------------------------------------------------------------- home ---------------------------------------------------------------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1.1rem; }
.section-intro { max-width: 44rem; margin-bottom: 2rem; }
.section-intro h2 { font-size: clamp(1.875rem, 4.6vw, 3rem); line-height: 1.06; }
.section-intro p { color: var(--muted); font-size: 1.125rem; }
.section-intro-center { margin-left: auto; margin-right: auto; text-align: center; }
/* A section's title beside its one-paragraph introduction (stacked on phones). */
.section-head { display: grid; gap: 0.75rem 3rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.875rem, 4.6vw, 3rem); line-height: 1.06; margin: 0; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; max-width: 36rem; }

/* The screenshots of the samples, in a plain phone frame. */
.phone-shot {
  width: min(250px, 64vw); aspect-ratio: 390 / 700; padding: 8px; border-radius: 34px; background: var(--phone-frame);
  box-shadow: 0 34px 60px -30px rgba(14, 20, 38, 0.75), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.phone-shot-img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #FBF7F2; }
.phone-shot-sm { width: min(200px, 56vw); }

/* The night-blue band at the top: the promise, two buttons, the price, and the envelope that opens. */
.home-hero {
  position: relative; overflow: hidden; color: var(--midnight-ink); padding-block: 2.5rem 3.25rem;
  background: radial-gradient(110% 80% at 88% 0%, #2B3A66 0%, transparent 58%), radial-gradient(80% 70% at 0% 100%, var(--midnight-deep) 0%, transparent 60%), var(--midnight);
}
.home-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.home-hero h1 { color: var(--midnight-ink); font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); line-height: 1.08; max-width: 12em; margin-bottom: 1rem; }
.home-hero-sub { font-size: 1.125rem; line-height: 1.55; color: #DDE2F0; max-width: 34rem; }
.home-hero .hero-cta { margin: 1.5rem 0 1rem; }
.home-hero-price { font-size: 0.875rem; color: var(--midnight-muted); margin: 0; }
.home-hero-price strong { color: var(--midnight-gold); font-size: 1rem; }
/* What we are, in four lines under the hero: for whom, done for you, in both languages, made for WhatsApp. */
.home-pillars { background: var(--surface); border-bottom: 1px solid var(--line); }
.pillar-list { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; gap: 1.1rem 2rem; }
.pillar-list li { display: grid; gap: 0.2rem; padding-left: 1rem; border-left: 2px solid var(--gold); }
.pillar-list strong { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; line-height: 1.25; color: var(--ink); }
.pillar-list span:not([data-lang]) { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
.home-hero :focus-visible, .home-designs :focus-visible, .home-final :focus-visible, .site-footer :focus-visible, .pkg-card.is-featured :focus-visible { outline-color: var(--midnight-gold); }

/* The signature moment: the sealed envelope, built like the invitation's own (envelope.css), opens and the real
   sample rises out of it. The static rules below are the finished, open state; the opening animation is declared
   only for people who have not asked for reduced motion (further down). Paper, liner and wax are the Ivory & Gold
   palette of the sample it holds. */
.hero-scene { margin: 0; display: grid; justify-items: center; gap: 0.6rem; width: 100%; }
.hero-greeting { margin: 0; font-family: var(--font-script); font-size: clamp(2rem, 6.4vw, 2.75rem); line-height: 1.1; color: var(--midnight-gold); text-align: center; }
.hero-env-link { display: block; width: min(100%, 400px); color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hero-env-link:focus-visible { outline: 3px solid var(--midnight-gold); outline-offset: 8px; border-radius: 12px; }
.hero-env { position: relative; margin-top: 50%; aspect-ratio: 1.42; clip-path: inset(-300% -40% 0 -40%); }
.hero-env-back { position: absolute; inset: 0; z-index: 0; border-radius: 8px; background-color: #7A5A1E; background-image: repeating-linear-gradient(135deg, transparent 0 14px, #9C7A36 14px 15px); box-shadow: 0 40px 70px -28px rgba(0, 0, 0, 0.85); }
.hero-env-card { position: absolute; left: 10%; width: 80%; bottom: 7%; z-index: 2; border-radius: 6px; overflow: hidden; background: #FFFDF7; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45); transform: translateY(0); }
.hero-env-img { width: 100%; height: auto; }
/* The pocket's V notch (down to 57% at the centre) and its lower shade (up to 43%) are painted with hard-stop
   gradients, one per half, rather than clipped: a clip-path here is dropped by the browser while the layers over it
   animate. The angles and stops follow from the envelope's 1.42 aspect (each half is 0.71 of its height). */
.hero-env-pocket {
  position: absolute; inset: 0; z-index: 3; border-radius: 8px; background-repeat: no-repeat; background-size: 50% 100%;
  background-position: left top, right top, left top, right top;
  background-image: linear-gradient(141.2deg, transparent 63.6%, #E8DCC1 63.85%), linear-gradient(218.8deg, transparent 63.6%, #E8DCC1 63.85%),
    linear-gradient(218.8deg, transparent 36.2%, #F3EAD6 36.45%), linear-gradient(141.2deg, transparent 36.2%, #F3EAD6 36.45%);
}
/* The flap is two triangles over the same crease: the closed one (paper, over the pocket) folds flat (scaleY 1 → 0)
   and hides; the open one (the lined inside, behind the card) unfolds upward (scaleY 0 → −1), its tip at the top like
   a real opened flap. Only 2D transforms, which every browser composites reliably. */
.hero-env-flap { position: absolute; left: 0; right: 0; top: 0; height: 63%; transform-origin: 50% 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hero-env-flap-closed { z-index: 4; visibility: hidden; transform: scaleY(0); background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.06)), #EDE2CA; }
.hero-env-flap-open { z-index: 1; transform: scaleY(-1); background-color: #7A5A1E; background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 55%), repeating-linear-gradient(135deg, transparent 0 14px, #9C7A36 14px 15px); }
.hero-env-seal { position: absolute; left: 50%; top: 63%; width: 24%; min-width: 64px; aspect-ratio: 1; z-index: 5; transform: translate(-50%, -50%); }
.hero-env-seal-half { position: absolute; inset: 0; opacity: 0; }
.hero-env-seal-left { clip-path: polygon(0 0, 53% 0, 47% 38%, 54% 62%, 49% 100%, 0 100%); transform: translate(-16%, 14%) rotate(-16deg); }
.hero-env-seal-right { clip-path: polygon(53% 0, 100% 0, 100% 100%, 49% 100%, 54% 62%, 47% 38%); transform: translate(16%, 14%) rotate(16deg); }
.hero-seal-art { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-seal-letter { font-family: var(--font-script); text-anchor: middle; fill: #F7E9C9; opacity: 0.92; }
.hero-seal-shadow { fill: #4E380C; opacity: 0.85; }
.hero-seal-n1 .hero-seal-letter { font-size: 44px; }
.hero-seal-n2 .hero-seal-letter { font-size: 34px; }
.hero-seal-n3 .hero-seal-letter { font-size: 27px; }
.hero-scene figcaption { font-size: 0.8125rem; color: var(--midnight-muted); text-align: center; max-width: 26rem; margin-top: 0.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-env-seal-left { animation: hero-seal-left 0.55s var(--ease) 0.8s both; }
  .hero-env-seal-right { animation: hero-seal-right 0.55s var(--ease) 0.8s both; }
  .hero-env-flap-closed { animation: hero-flap-close 0.45s cubic-bezier(0.55, 0.05, 0.85, 0.5) 1.15s both; }
  .hero-env-flap-open { animation: hero-flap-open 0.5s cubic-bezier(0.15, 0.5, 0.35, 1) 1.6s both; }
  .hero-env-card { animation: hero-card 1.1s cubic-bezier(0.18, 0.8, 0.24, 1) 1.85s both; }
  .hero-env-link:hover .hero-env-card { translate: 0 -2%; transition: translate 0.25s var(--ease); }
}
@keyframes hero-seal-left { from { transform: none; opacity: 1; } to { transform: translate(-16%, 14%) rotate(-16deg); opacity: 0; } }
@keyframes hero-seal-right { from { transform: none; opacity: 1; } to { transform: translate(16%, 14%) rotate(16deg); opacity: 0; } }
@keyframes hero-flap-close { 0% { transform: scaleY(1); visibility: visible; } 99% { visibility: visible; } 100% { transform: scaleY(0); visibility: hidden; } }
@keyframes hero-flap-open { from { transform: scaleY(0); } to { transform: scaleY(-1); } }
@keyframes hero-card { from { transform: translateY(54%); } to { transform: translateY(0); } }

/* Samples: three working invitations, each with its own first screen. */
.home-samples { background: var(--surface); border-bottom: 1px solid var(--line); }
.sample-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sample-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0.75rem 1.1rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.sample-shot { display: block; position: relative; aspect-ratio: 390 / 420; border-radius: 10px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.sample-shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sample-body { min-width: 0; }
.sample-body h3 { font-size: 1.5rem; margin: 0 0 0.3rem; }
.sample-pkg { font-size: 0.875rem; font-weight: 600; color: var(--gold-text); margin: 0 0 0.15rem; }
.sample-body > p:not(.sample-pkg) { color: var(--muted); font-size: 0.95rem; }
.sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 0.75rem; }
.sample-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.sample-card .state { margin-top: 0.75rem; }

/* What guests get, then what the hosts get: a phone beside each list, the hosts' block on the rose ground. */
.experience-block { display: grid; gap: 1.5rem; padding: 2rem 0 0; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.experience-block-hosts { padding: 1.75rem 1.25rem; border-radius: var(--radius-lg); background: var(--bg-2); border-top: 0; }
.experience-shot { margin: 0; display: grid; justify-items: center; gap: 0.6rem; }
.experience-shot .phone-shot { width: min(220px, 60vw); }
.experience-shot figcaption { font-size: 0.8125rem; color: var(--muted); text-align: center; }
.experience-copy { min-width: 0; }
.experience-copy h3 { font-size: clamp(1.5rem, 3.4vw, 1.875rem); margin-bottom: 0.9rem; }
.features + .tier-label { margin-top: 1.25rem; }
.tier-label { font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }

/* The designs: every palette as a real screenshot of the same sample, on the night blue. */
.home-designs { background: var(--midnight); color: var(--midnight-ink); }
.home-designs h2, .home-designs h3 { color: var(--midnight-ink); }
.home-designs .section-head p, .home-designs .design-story p { color: #DDE2F0; }
/* Text links on the night section use the hero's gold (at least 10:1 on #111B20 and #1E2A4A), never the wine accent. */
.home-designs a:not(.btn):not(.preview-link) { color: var(--midnight-gold); text-decoration: underline; text-underline-offset: 0.18em; }
.home-designs a:not(.btn):not(.preview-link):hover { color: var(--midnight-ink); }
.design-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.9rem; }
.design-tile { margin: 0; min-width: 0; }
.design-shot { position: relative; aspect-ratio: 39 / 56; border-radius: 12px; overflow: hidden; background: var(--midnight-deep); box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.design-shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.design-name { margin: 0.6rem 0 0; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.2; text-align: center; }
.design-note { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--midnight-muted); text-align: center; }
.design-caption { margin: 1.5rem auto 0; font-size: 0.875rem; color: var(--midnight-muted); text-align: center; max-width: 38rem; }
.design-story { margin: 2.5rem auto 0; max-width: 40rem; text-align: center; }
.design-story h3 { font-size: clamp(1.5rem, 3.4vw, 1.875rem); }

/* How it works: an ordered process, so the steps keep their numbers (small, in the serif). */
.home-steps { background: var(--surface); border-top: 1px solid var(--line); }
.steps-grid { display: grid; gap: 1.5rem; }
.steps-intro { margin-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.timeline-step { position: relative; padding-left: 3.25rem; }
.timeline-step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: -0.2rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-text); font: 600 1.125rem/2.25rem var(--font-numbers); font-variant-numeric: lining-nums; text-align: center;
}
.timeline-step h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.timeline-step p { color: var(--muted); }

/* We are new (no reviews), next to the first questions. */
.home-trust { background: var(--bg); }
.trust-grid { display: grid; gap: 2.5rem; }
.honest-note { padding: 1.5rem 1.4rem; border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: var(--radius-md); background: var(--surface); align-self: start; }
.honest-note h2, .home-trust .faq-teaser h2 { font-size: clamp(1.5rem, 3.6vw, 1.875rem); }
.honest-note p { color: var(--muted); }

.home-final { background: var(--accent); color: #FFFFFF; padding-block: 3.5rem; text-align: center; }
.home-final h2 { color: #FFFFFF; font-size: clamp(1.875rem, 4.6vw, 3rem); }
.home-final p { color: #F3E4E8; font-size: 1.125rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.home-final .hero-cta { justify-content: center; margin-bottom: 0; }
.home-final .btn-gold { color: var(--accent); }

/* The sample pages keep their illustrated phone. */
.phone {
  position: relative; width: min(280px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px; background: #1A1420;
  box-shadow: 0 40px 70px -30px rgba(42, 31, 45, 0.55), inset 0 0 0 2px #3A3040;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 999px; background: #1A1420; z-index: 2; }
.phone-lg { width: min(300px, 80vw); }
.phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #FBF3EF; }
.phone-screen.theme-noche-azul { background: #0D1532; }
.phone-screen.theme-jardin-esmeralda { background: #F3F6EE; }
.phone-art { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- packages ---------------------------------------------------------------- */
.home-packages { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.pkg-grid { display: grid; gap: 1.25rem; align-items: stretch; }
.pkg-card {
  display: flex; flex-direction: column; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow); position: relative; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pkg-card.is-highlighted { outline: 3px solid var(--gold); outline-offset: 4px; }
.pkg-card-head h3 { font-size: 2rem; margin-bottom: 0.25rem; }
.tagline { color: var(--muted); font-size: 0.95rem; margin: 0; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0.5rem; }
.price-amount { font-family: var(--font-numbers); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--ink); }
.price-large .price-amount { font-size: 3.75rem; }
.price-note { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.04em; }
.pkg-card-body { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.mini-heading { font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; color: var(--gold-text); margin: 0.2rem 0 0.1rem; }
/* The four limits families ask about first, as numbers (also on the package page's hero). */
.pkg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.pkg-stats > div { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.pkg-stats dd { margin: 0; font-family: var(--font-numbers); font-weight: 600; font-size: 1.875rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.pkg-stats dt { font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
.pkg-stats-hero { margin: 1.25rem 0 0; max-width: 34rem; }
/* The package with the most in it, in the night blue of the brand (its label says only that). */
.pkg-flag { display: inline-block; margin: 0 0 0.6rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--midnight-gold); color: var(--midnight); font-size: 0.75rem; font-weight: 700; }
.pkg-card.is-featured { background: var(--midnight); color: var(--midnight-ink); border-color: transparent; box-shadow: 0 34px 64px -34px rgba(14, 20, 38, 0.8); }
.pkg-card.is-featured h3, .pkg-card.is-featured .price-amount { color: var(--midnight-ink); }
.pkg-card.is-featured .tagline, .pkg-card.is-featured .price-note, .pkg-card.is-featured .more, .pkg-card.is-featured .more a { color: var(--midnight-muted); }
.pkg-card.is-featured .mini-heading { color: var(--midnight-gold); }
.pkg-card.is-featured .pkg-stats > div, .pkg-card.is-featured .limits li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: var(--midnight-ink); }
.pkg-card.is-featured .pkg-stats dd { color: var(--midnight-gold); }
.pkg-card.is-featured .pkg-stats dt { color: var(--midnight-muted); }
.pkg-card.is-featured .icon-check { color: var(--midnight-gold); }
.pkg-card.is-featured .chip-proposed { background: rgba(230, 205, 143, 0.14); color: var(--midnight-gold); }
.pkg-card.is-featured .not-included, .pkg-card.is-featured .pkg-limits { border-top-color: rgba(255, 255, 255, 0.16); }
.pkg-card.is-featured .not-included summary, .pkg-card.is-featured .not-included li, .pkg-card.is-featured .pkg-limits summary { color: var(--midnight-muted); }
.pkg-card.is-featured .not-included summary::before, .pkg-card.is-featured .pkg-limits summary::before { border-color: rgba(255, 255, 255, 0.3); }
.limits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.limits li { font-size: 0.8125rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.features li { display: grid; grid-template-columns: 20px 1fr; gap: 0.55rem; align-items: start; font-size: 0.95rem; }
.features-lg li { font-size: 1.02rem; }
.icon-check { color: var(--success); margin-top: 0.25rem; }
.more { font-size: 0.875rem; color: var(--muted); margin: 0; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }
.not-included, .pkg-limits { margin-top: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.not-included summary, .pkg-limits summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--muted); list-style: none; }
.not-included summary::-webkit-details-marker, .pkg-limits summary::-webkit-details-marker { display: none; }
.not-included summary::before, .pkg-limits summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0.9rem; flex: none; }
.not-included[open] summary::before, .pkg-limits[open] summary::before { content: "−"; }
.pkg-limits .limits { margin-top: 0.5rem; }
.not-included ul, .not-list { margin: 0.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.not-included li, .not-list li { font-size: 0.875rem; color: var(--muted); padding-left: 1.3rem; position: relative; }
.not-included li::before, .not-list li::before { content: "—"; position: absolute; left: 0; color: var(--line-strong); }

/* ---------------------------------------------------------------- FAQ ---------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 0.8rem 0; font-weight: 600; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--gold-text); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 1.1rem; color: var(--muted); }
.faq-teaser .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.5rem; }

/* ---------------------------------------------------------------- package and sample pages ---------------------------------------------------------------- */
.breadcrumb ol { list-style: none; margin: 0; padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.pkg-hero, .sample-hero { padding: 1.5rem 0 3rem; }
.pkg-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.pkg-hero { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.pkg-kicker { font-size: 0.875rem; font-weight: 600; color: var(--gold-text); margin-bottom: 0.25rem; }
.pkg-hero h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: 1.04; margin-bottom: 0.5rem; }
.pkg-hero .lead { margin-bottom: 0.25rem; }
.order-box { margin-top: 1.5rem; display: grid; gap: 0.6rem; max-width: 28rem; }
.order-box .form-status:empty { min-height: 0; }
.order-box-regional { max-width: 32rem; }
.order-box-regional .field { max-width: 25rem; }
.order-box-regional input[data-promo-input] { text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-numbers); }
.quote-review { display: grid; gap: 0.6rem; padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.quote-review .totals .total dd { font-size: 1.35rem; }
.quote-review .notice { margin: 0; }
.quote-acceptance { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.quote-acceptance input { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; margin-top: 0.15rem; accent-color: var(--accent); }
body[data-regional-pricing="true"] .header-inner { padding-block: 0.6rem; }
body[data-regional-pricing="true"] :is(.market-switch button, .lang-switch button) { min-height: 44px; }
:is(.page-home, .page-package) body[data-regional-pricing="true"] :is(.market-label, .market-prompt) { color: #c7cfd3; }
@media (max-width: 639px) {
  body[data-regional-pricing="true"] .market-control { order: 3; flex-basis: 100%; padding-top: 0.4rem; border-top: 1px solid var(--line-strong); }
}
.pkg-sample-link { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.pkg-sample-link .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.pkg-hero-shot { margin: 0; display: grid; justify-items: center; gap: 0.75rem; }
.pkg-hero-shot .phone-shot { width: min(270px, 70vw); }
.pkg-hero-shot figcaption { font-size: 0.875rem; color: var(--muted); text-align: center; max-width: 22rem; }
.pkg-detail-grid { display: grid; gap: 2rem; }
.pkg-main h2 { font-size: 2rem; margin-top: 1.8rem; }
.pkg-main h2:first-child { margin-top: 0; }
.limit-table { margin: 0 0 1rem; display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.limit-table > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.limit-table > div:last-child { border-bottom: 0; }
.limit-table dt { color: var(--muted); font-size: 0.92rem; }
.limit-table dd { margin: 0; font-weight: 600; }
.pkg-aside { display: grid; gap: 1rem; align-content: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); display: grid; gap: 0.7rem; align-content: start; }
.card-soft { background: #FDF8F4; box-shadow: none; }
.pkg-story-card { margin: 0; justify-items: center; text-align: center; }
.pkg-story-card figcaption { font-size: 0.875rem; color: var(--muted); }
/* Every package side by side; the page's own package is marked, and the feature names stay put while the table scrolls sideways. */
.compare-section { background: var(--surface); border-top: 1px solid var(--line); }
/* position: relative keeps the table's visually hidden labels (absolutely positioned) inside the scroll box; without
   it they escaped it and widened the page on phones (found in Codex's review, 2026-09-27). */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; font-size: 0.92rem; }
.compare th, .compare td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; background: var(--bg); }
.compare tbody th { font-weight: 500; color: var(--muted); }
.compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 11rem; box-shadow: inset -1px 0 0 var(--line); }
.compare thead th:first-child { background: var(--bg); }
.compare td { font-weight: 600; }
.compare .is-current { background: #FBF1F3; }
.compare thead .is-current { box-shadow: inset 0 3px 0 var(--accent); }
/* Phones: a narrower fixed feature column, tighter cells and a visible "swipe" hint (storefront.js starts the scroll at
   the page's own package), so Plus and Premium are not hidden off-screen without a cue. */
.table-scroll-hint { display: none; }
@media (max-width: 599px) {
  .table-scroll-hint { display: block; margin: 0 0 0.5rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
  .compare { min-width: 31rem; font-size: 0.85rem; }
  .compare th, .compare td { padding: 0.6rem 0.65rem; }
  .compare thead th { font-size: 1.1rem; }
  .compare th:first-child { min-width: 7.5rem; max-width: 8.5rem; font-size: 0.8rem; }
}
.yes { color: var(--success); display: inline-flex; }
.no { color: var(--muted); }

/* ---------------------------------------------------------------- legal ---------------------------------------------------------------- */
.page-head { padding-top: 2.5rem; }
.prose { margin-top: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.3rem; }

/* ---------------------------------------------------------------- journey: checkout ---------------------------------------------------------------- */
.sandbox-panel { border: 2px dashed #C9A449; background: var(--ribbon-bg); color: var(--ribbon-ink); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.sandbox-panel-title { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 1rem; margin-bottom: 0.3rem; }
.checkout-grid { display: grid; gap: 1.2rem; margin-top: 1rem; }
.summary-pkg { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; margin: 0; }
.totals { margin: 0.4rem 0 0; display: grid; gap: 0.4rem; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .total dd { font-family: var(--font-numbers); font-size: 1.8rem; font-weight: 600; }
.pay-actions { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.form-status { min-height: 1.4rem; font-weight: 600; margin: 0; }
.form-status[data-tone="success"], .copy-status[data-tone="success"] { color: var(--success); }
.form-status[data-tone="error"], .copy-status[data-tone="error"] { color: var(--error); }
.form-status[data-tone="info"] { color: var(--muted); }
.state { border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.95rem; }
.state-empty { background: var(--bg); border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.state-info { background: #EEF2FA; border: 1px solid #CBD5EA; color: #26324F; }

/* ---------------------------------------------------------------- journey: intake form ---------------------------------------------------------------- */
.intake-form { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.1rem 1.4rem; margin: 0; background: var(--surface); display: grid; gap: 1rem; min-width: 0; }
.fieldset legend { font-family: var(--font-display); font-size: 1.45rem; padding: 0 0.4rem; color: var(--ink); }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { display: flex; gap: 0.25rem; align-items: baseline; }
.field-label { font-weight: 600; font-size: 0.93rem; }
.req { color: var(--error); font-weight: 700; }
.hint { font-size: 0.83rem; color: var(--muted); margin: 0; }
.field-error { font-size: 0.85rem; color: var(--error); font-weight: 600; margin: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #FFFFFF;
  color: var(--ink); font: 400 1rem/1.4 var(--font-body); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 104px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(27, 78, 155, 0.2); outline: none; }
[aria-invalid="true"] { border-color: var(--error) !important; background: var(--error-bg) !important; }
input[type="file"] { width: 100%; min-height: 48px; padding: 0.6rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); font: inherit; }
.field-pair { display: grid; gap: 1rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.choice-option { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.55rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #FFFFFF; cursor: pointer; }
.choice-option:has(input:checked) { border-color: var(--accent); background: #FBF1F3; }
.choice-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.choice-option.consent { align-items: flex-start; }
.choice-option.consent input { margin-top: 0.2rem; }
/* Mark the whole permission line: a native checkbox alone has no visible error border. */
.choice-option.consent[data-invalid] { border: 2px solid var(--error); background: var(--error-bg); box-shadow: 0 0 0 3px var(--error-bg); }
.repeat-row { display: grid; gap: 0.8rem; padding: 0.9rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.repeat-group { display: grid; gap: 0.8rem; }
.repeat-group > .field-label { margin: 0; }
fieldset.repeat-group { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.repeat-group > legend { padding: 0; margin-bottom: 0.4rem; }
/* A choice question's options: a nested list inside the question's row, as wide as the row. */
.repeat-row > .repeat-options { grid-column: 1 / -1; }
.repeat-options > .repeat-row { background: var(--surface); padding: 0.7rem; }
/* The own-song panel (Premium): two lines, "How it works" one tap away, then the rights box and the file, spaced apart. */
.music-panel { display: grid; gap: 1rem; min-width: 0; }
.song-intro { display: grid; gap: 0.35rem; }
.song-intro .hint { margin: 0; }
.song-how > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--accent); }
/* inline-flex drops the native disclosure triangle: a chevron says it opens, and turns when it is open. */
.song-how > summary { list-style: none; gap: 0.4rem; }
.song-how > summary::-webkit-details-marker { display: none; }
.song-how > summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.song-how[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .song-how > summary::after { transition: none; } }
.song-how > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.song-how > p { margin: 0.2rem 0 0; }
.song-rights { justify-self: start; }
/* The song file: the native control (which speaks the browser's language) is hidden but still focusable; its label is
   the button, in the page's language, with the chosen file's name beside it. */
.file-pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.file-pick .file-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.file-pick .file-button { cursor: pointer; }
.file-pick .file-input:focus-visible + .file-button { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-pick .file-input:disabled + .file-button { opacity: 0.6; cursor: progress; }
.file-pick .file-input[aria-invalid="true"] + .file-button { border-color: var(--error); }
.file-name { min-width: 0; font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
/* Lluvia de sobres: each way to give is a plain block under a hairline, not a tinted card inside the section's card. */
[data-repeat="cashGifts"] > .repeat-row { padding: 1rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.repeat-options > [data-repeat-add] { justify-self: start; }
/* Colours for guests: the picker, the #RRGGBB code and a live chip like the one guests see (its circle is coloured by
   its own SVG fill; storefront.js sets it). An empty chip shows a dashed ring. */
.color-input { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.color-input input[data-color-hex] { flex: 1 1 7rem; width: auto; font-variant-numeric: tabular-nums; }
.color-pick { display: inline-flex; flex: none; }
.color-input .color-pick input[type="color"][data-color-picker] { width: 56px; min-height: 48px; padding: 0.25rem; cursor: pointer; }
.color-chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0.2rem 0.8rem 0.2rem 0.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.9rem; overflow-wrap: anywhere; }
.color-chip svg { flex: none; }
.color-chip circle { stroke: var(--ink); stroke-opacity: 0.3; stroke-width: 1.5; }
.color-chip[data-empty] circle { stroke-dasharray: 3 3; }
.photo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.photo-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.photo-name { font-weight: 600; overflow-wrap: anywhere; flex: 1 1 10rem; min-width: 0; }
.photo-names { display: flex; flex-direction: column; gap: 0.1rem; flex: 1 1 10rem; min-width: 0; }
.photo-names > .photo-name { flex: none; }
.photo-file { font-size: 0.8rem; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.file-stem { overflow-wrap: anywhere; }
.file-ext { white-space: nowrap; }
.photo-state { overflow-wrap: anywhere; min-width: 0; }
.photo-state { font-size: 0.85rem; color: var(--muted); }
.photo-state[data-tone="success"] { color: var(--success); }
.photo-state[data-tone="error"] { color: var(--error); }
/* Removing a photo changes the new version's references, not its original media or list position. */
.photo-item[data-removed] { border-style: dashed; background: var(--surface); }
.photo-item[data-removed] > img { opacity: 0.35; }
.photo-item[data-removed] .photo-name { text-decoration: line-through; color: var(--muted); }
.photo-item > img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.photo-note { flex-basis: 100%; }
.revision-section { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.revision-section > summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--font-display); font-size: 1.3rem; min-height: 48px; }
.revision-section > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-lg); }
.revision-section > .fieldset { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.revision-section[open] > summary { border-bottom: 1px solid var(--line); }
.revision-remove-row { grid-column: 1 / -1; justify-self: start; }
[data-full-review] .photo-item > img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
[data-full-review] .photo-item .btn { min-height: 44px; }
/* The invitation style (Premium quinceañeras) and each photo's place in the story. */
.design-grid { display: grid; gap: 0.7rem; }
.design-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.75rem; align-items: start; min-height: 48px; padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: #FFFFFF; cursor: pointer; }
.design-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.design-option input { grid-row: span 2; width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--accent); }
.design-name { font-weight: 600; }
.design-note { font-size: 0.86rem; color: var(--muted); }
/* The small drawing beside a style (Calas): decorative, under its words. */
.design-preview { grid-column: 2; width: 100%; max-width: 132px; height: auto; margin-top: 0.35rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #F7F3EE; }
/* The style picker on the order and review forms (.design-picker): one full-width choice per row, never the home
   gallery's two columns and centred captions (.design-grid, .design-name and .design-note are shared names). The words
   start at the top left; a choice with a picture shows it on the right, 140px wide (96px on a phone). */
.design-grid.design-picker { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.design-picker .design-option { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; text-align: left; }
.design-picker .design-option:has(.design-preview) { grid-template-columns: auto minmax(0, 1fr) 140px; }
.design-picker .design-name, .design-picker .design-note { grid-column: 2; margin: 0; font-family: inherit; line-height: 1.45; text-align: left; }
.design-picker .design-name { font-size: 1rem; }
.design-picker .design-note { align-self: start; text-wrap: pretty; }
.design-picker .design-preview { grid-column: 3; grid-row: 1 / span 2; align-self: start; width: 100%; max-width: none; margin: 0; aspect-ratio: 39 / 56; object-fit: cover; object-position: top; }
@media (max-width: 520px) { .design-picker .design-option:has(.design-preview) { grid-template-columns: auto minmax(0, 1fr) 96px; } }
/* Narrow phones (360px): the preview moves under the text, so the note uses the card's full width instead of ~120px. */
@media (max-width: 380px) {
  .design-picker .design-option:has(.design-preview) { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .design-picker .design-preview { grid-column: 2; grid-row: 3; max-width: 160px; margin-top: 0.5rem; }
}
.photo-role { display: grid; gap: 0.3rem; flex: 1 1 100%; }
.photo-role label { font-weight: 600; font-size: 0.88rem; }
.photo-role select { min-height: 44px; }
.theme-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.theme-option { display: grid; gap: 0.5rem; padding: 0.7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: #FFFFFF; cursor: pointer; position: relative; }
.theme-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.theme-option input { position: absolute; top: 0.9rem; right: 0.9rem; width: 20px; height: 20px; accent-color: var(--accent); }
.swatch { display: block; height: 72px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(135deg, #FBF3EF, #F6E6E0); }
.swatch-rosa-dorada { background: radial-gradient(circle at 30% 35%, #D9919E 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #C2994B 0 8%, transparent 9%), linear-gradient(135deg, #FFF9F6, #F6E6E0); }
.swatch-noche-azul { background: radial-gradient(circle at 72% 30%, #DCC07E 0 12%, transparent 13%), radial-gradient(circle at 30% 65%, #9AAEE3 0 6%, transparent 7%), linear-gradient(135deg, #22306A, #0D1532); }
.swatch-jardin-esmeralda { background: radial-gradient(circle at 30% 40%, #7FA78E 0 14%, transparent 15%), radial-gradient(circle at 68% 62%, #E3A9A1 0 9%, transparent 10%), linear-gradient(135deg, #FFFFFA, #E4ECDF); }
.swatch-marfil-oro { background: radial-gradient(circle at 30% 35%, #E8D3A8 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #B8964D 0 8%, transparent 9%), linear-gradient(135deg, #FFFDF7, #F1E8D4); }
.swatch-azul-cielo { background: radial-gradient(circle at 30% 35%, #A9C8E6 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #C2A15A 0 8%, transparent 9%), linear-gradient(135deg, #FFFFFF, #DFEAF5); }
.swatch-lavanda { background: radial-gradient(circle at 30% 35%, #C9B0E3 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #C2A15A 0 8%, transparent 9%), linear-gradient(135deg, #FFFFFF, #E9E0F3); }
.swatch-borgona { background: radial-gradient(circle at 72% 30%, #E5BE86 0 12%, transparent 13%), radial-gradient(circle at 30% 65%, #D99AA6 0 6%, transparent 7%), linear-gradient(135deg, #4A1A28, #1E0910); }
.theme-name { font-weight: 600; font-size: 0.92rem; }
.form-actions { display: grid; gap: 0.6rem; justify-items: start; }
.error-summary { border: 2px solid var(--error); background: var(--error-bg); border-radius: var(--radius-md); padding: 1rem 1.2rem; }
.error-summary h2 { color: var(--error); }
.error-summary ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.intake-done { margin-top: 1.5rem; }
.organizer-once { display: grid; gap: 0.7rem; }

/* ---------------------------------------------------------------- journey: order status ---------------------------------------------------------------- */
.order-card { gap: 1rem; }
.order-state { font-size: 1.1rem; margin: 0; }
.order-state-label { color: var(--muted); }
.payment-text { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.payment-text[data-payment-msg="verified_test_payment"] { background: var(--success-bg); border-color: #BFE0CB; color: #174F33; }
.payment-text[data-payment-msg="failed"] { background: var(--error-bg); border-color: #F0C6C1; color: #7E1E18; }
.progress { list-style: none; margin: 0.4rem 0; padding: 0; display: grid; gap: 0.55rem; }
.step-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--muted); }
.step-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); flex: none; }
.step-item[data-status="done"] { color: var(--ink); }
.step-item[data-status="done"] .step-dot { background: var(--success); border-color: var(--success); }
.step-item[data-status="current"] { color: var(--ink); font-weight: 700; }
.step-item[data-status="current"] .step-dot { border-color: var(--accent); background: #FBF1F3; box-shadow: 0 0 0 4px rgba(110, 47, 62, 0.12); }
.order-links, .next-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.poll-status { font-size: 0.85rem; color: var(--muted); min-height: 1.3rem; margin: 0; }
.poll-status[data-tone="error"] { color: var(--error); }
.timeline-card { margin-top: 1.2rem; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.timeline-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.8rem; font-size: 0.92rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.timeline-list time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- organizer dashboard ---------------------------------------------------------------- */
.organizer h1 { margin-bottom: 0.8rem; }
.organizer .notice-private { margin-bottom: 1.4rem; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1rem; box-shadow: var(--shadow-sm); }
.tile-value { font-family: var(--font-numbers); font-weight: 600; font-size: 2.6rem; line-height: 1; margin: 0 0 0.3rem; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.tile-label { font-weight: 600; font-size: 0.9rem; margin: 0; }
.tile-sub { font-size: 0.8rem; color: var(--muted); margin: 0.2rem 0 0; }
.capacity { display: grid; gap: 0.3rem; margin: 1rem 0 1.6rem; }
.capacity meter { width: 100%; height: 12px; }
.org-grid { display: grid; gap: 1.2rem; }
.org-main, .org-aside { display: grid; gap: 1.2rem; align-content: start; min-width: 0; }
.org-section { gap: 0.9rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }
.section-head h2 { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.data-table th, .data-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--bg); font-weight: 700; }
.data-table tbody th { font-weight: 600; }
.cell-label { display: none; }
.pill { display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.pill-yes { background: var(--success-bg); border-color: #BFE0CB; color: #174F33; }
.pill-no { background: #F3EFF3; border-color: #DCD3DC; color: #4A3F4C; }
.pill-state { white-space: nowrap; }
.household-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.household { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.9rem 1rem; display: grid; gap: 0.6rem; background: var(--bg); }
.household-new { border-color: var(--gold); background: #FFFBF1; }
.household-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; }
.household-name { font-weight: 700; margin: 0; }
.household-meta { font-size: 0.85rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.link-once { margin: 0; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: start; }
.copy-source { font-size: 0.88rem !important; background: #FFFFFF; min-height: 44px; }
textarea.copy-source { min-height: 96px; }
.copy-status { grid-column: 1 / -1; font-size: 0.82rem; font-weight: 600; min-height: 1.1rem; }
.household-form { display: grid; gap: 0.9rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 0.8rem; }
.created-links { display: grid; gap: 0.7rem; }
.subsection { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.reminder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
/* The state pill moves under the reminder when both do not fit (a 360px phone), instead of running out of the card;
   where there is room (10rem of text beside it) it stays beside it. */
.reminder { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 0.8rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.reminder > div { flex: 1 1 10rem; min-width: 0; }
.reminder .pill-state { max-width: 100%; white-space: normal; }
.reminder-kind { font-weight: 600; margin: 0 0 0.1rem; font-size: 0.93rem; }
.reminder p.muted { margin: 0; font-size: 0.85rem; }
/* Guest needs (answers to the event's extra RSVP questions) */
.needs-grid { display: grid; gap: 1rem; }
/* Guest groups on the organizer page. */
.household-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; margin: 0.3rem 0 0.5rem; }
.household-group select { min-height: 40px; }
.group-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.group-item { padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); display: grid; gap: 0.35rem; }
/* Seating: a table next to each family, and each table with its families. */
.household-table { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; margin: 0 0 0.5rem; }
.household-table input { min-height: 40px; max-width: 14rem; }
.table-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.table-item { padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); display: grid; gap: 0.35rem; align-content: start; }
/* The seating chart (Premium): round tables drawn as a floor plan, names at their seats, and the guests and rules beside. */
.seat-names { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.2rem; }
.seating-app { display: grid; gap: 1rem; min-width: 0; }
.seating-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: end; }
.seating-add, .seating-auto { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; min-width: 0; }
.seating-add input[type="text"] { width: 11rem; max-width: 100%; }
.seating-add input[type="number"], .seat-table-seats { width: 5.5rem; }
.seating-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .seating-layout { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); } }
.seating-floor { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); align-content: start; min-width: 0; }
.seat-table { margin: 0; padding: 0.6rem 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.seat-table-drawing { width: 100%; max-width: 100%; height: auto; display: block; }
.seat-table-top { fill: #FFFFFF; stroke: var(--gold); stroke-width: 2; }
.seat { fill: #FFFFFF; stroke: var(--line-strong); stroke-width: 2; }
.seat-taken { fill: var(--accent); stroke: var(--accent); }
.seat-selected { fill: var(--gold); stroke: var(--gold); }
.seat-name { fill: var(--ink); font-size: 16px; }
.seat-table-name { fill: var(--ink); font-size: 19px; font-weight: 600; }
.seat-table-count { fill: var(--muted); font-size: 15px; }
.seat-table-controls { display: grid; gap: 0.5rem; }
.seat-table-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.seat-table-rename { flex: 1 1 8rem; min-width: 0; }
.seat-table-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seat-person { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 44px; width: 100%; padding: 0.35rem 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #FFFFFF; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.seat-person.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.seat-person:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seat-person-party { font-size: 0.8rem; color: var(--muted); }
.seat-unseated, .seating-rule-list, .seating-rule-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.seating-side { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.seating-rules { display: grid; gap: 0.6rem; }
.seating-rule { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; align-items: center; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius-sm); background: #FFFFFF; }
.seating-rule-kept { border-left-color: var(--success); }
.seating-rule-broken { border-left-color: var(--error); }
.seating-rule-state { font-size: 0.85rem; color: var(--muted); }
.seating-rule-broken .seating-rule-state { color: var(--error); font-weight: 600; }
.seating-rule-kinds { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seating-rule-choices { max-height: 16rem; overflow-y: auto; padding-right: 0.25rem; }
.seating-rule-choices .choice-option { width: 100%; }
/* Busca tu mesa (Premium): the hosts' card; the page a guest opens from the sign (one column, big targets from 360px up:
   their name, their table, and the tables as round markers in the chart's order, theirs marked in words as well as
   colour); and the printed sign for the entrance, one letter page (an 8 x 10 frame) in portrait. */
.seat-finder-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.seat-finder-form { margin-top: 1.25rem; gap: 1rem; }
.seat-finder-form input[type="text"] { font-size: 1.125rem; min-height: 52px; }
.seat-finder-form .btn-lg { width: 100%; justify-content: center; min-height: 52px; }
@media (min-width: 640px) { .seat-finder-form .btn-lg { width: auto; } }
.seat-finder-results { display: grid; gap: 0.6rem; min-width: 0; }
.seat-finder-results:empty { display: none; }
.seat-finder-message, .seat-finder-note { margin: 0; overflow-wrap: anywhere; }
.seat-finder-message { font-weight: 600; }
.seat-finder-message[data-tone="error"] { color: var(--error); }
.seat-finder-found { margin: 0; padding: 1rem 1.1rem; border: 1px solid #BFE0CB; border-radius: var(--radius-md); background: var(--success-bg); font-size: 1.3rem; line-height: 1.35; overflow-wrap: anywhere; }
.seat-finder-found:focus { outline: none; }
.seat-finder-found:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.seat-finder-table { font-family: var(--font-numbers); font-size: 1.5rem; color: var(--accent); font-variant-numeric: lining-nums; }
.seat-finder-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.seat-finder-choice { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.75rem; width: 100%; min-height: 52px; padding: 0.6rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #FFFFFF; color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.seat-finder-choice:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.seat-finder-choice .seat-finder-name { font-weight: 600; }
.seat-finder-choice-table { color: var(--muted); }
.seat-map-wrap { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.seat-map-wrap h2 { margin: 0; }
.seat-map { list-style: none; margin: 0; padding: 1rem 0.75rem; display: grid; gap: 1rem 0.5rem; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.seat-map-table { display: grid; justify-items: center; align-content: start; gap: 0.35rem; text-align: center; min-width: 0; }
/* A table's name is never cut: up to three short lines make a round marker; a longer name (hosts can type 40
   characters) makes it a taller pill instead. The top and bottom padding keeps the first and last lines clear of the
   rounded ends. */
.seat-map-dot { display: grid; place-items: center; width: 4.75rem; max-width: 100%; min-height: 4.75rem; padding: 0.85rem 0.4rem; border: 2px solid var(--gold); border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 0.8rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.seat-map-table.is-here .seat-map-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(110, 47, 62, 0.22); }
.seat-map-here { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.seat-sign-sheet { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: 1.5rem; }
/* The sign: the invitation's colour behind light letters (the SVG backdrop carries the colour and its gold frame), the
   title in the invitation's script, the QR code on a white card so every phone reads it; or white, to save ink. */
.seat-sign { position: relative; isolation: isolate; box-sizing: border-box; width: 100%; max-width: 30rem; aspect-ratio: 4 / 5; display: grid; justify-items: center; align-content: center; gap: 1rem; padding: 2.25rem 1.75rem; text-align: center; color: #FFFDF8; border-radius: var(--radius-md); box-shadow: 0 18px 40px rgba(40, 20, 28, 0.22); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.seat-sign-backdrop { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; border-radius: inherit; }
.seat-sign-title { margin: 0; color: inherit; font-family: "VF Script", var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1.05; }
.seat-sign-title span, .seat-sign-steps span, .seat-sign-how span { display: block; }
.seat-sign-title span + span { margin-top: 0.35em; font-family: "VF Serif", var(--font-display); font-size: 0.34em; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.9; }
.seat-sign-name { margin: 0; font-family: "VF Serif", var(--font-display); font-style: italic; font-size: clamp(1.15rem, 4.5vw, 1.6rem); overflow-wrap: anywhere; }
.seat-sign-code { width: 56%; max-width: 15rem; padding: 0.55rem; background: #FFFFFF; border-radius: 0.75rem; }
.seat-sign-code svg { display: block; width: 100%; height: auto; }
.seat-sign-address { margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.seat-sign-address code { color: var(--ink); }
.seat-sign-steps { margin: 0; font-family: "VF Serif", var(--font-display); font-size: clamp(0.95rem, 3.8vw, 1.2rem); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.seat-sign-steps span + span { margin-top: 0.2em; font-size: 0.8em; font-weight: 500; opacity: 0.85; }
.seat-sign-how { margin: 0; max-width: 20rem; font-size: 0.85rem; opacity: 0.88; }
.seat-sign-styles { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.seat-sign-styles legend { padding: 0 0.35rem; font-weight: 600; }
.seat-sign-styles label { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; cursor: pointer; }
.seat-sign-styles input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.seat-signs:has(#ss-style-light:checked) .seat-sign { color: var(--ink); box-shadow: none; border: 1px solid var(--line-strong); }
.seat-signs:has(#ss-style-light:checked) .seat-sign-backdrop rect:first-child { fill: #FFFFFF; }
.seat-signs:has(#ss-style-light:checked) .seat-sign-name { color: var(--gold-text); }
.seat-signs:has(#ss-style-light:checked) .seat-sign-code { padding: 0; }
@page seat-sign { size: letter portrait; margin: 0.5in 0.25in; }
@media print {
  /* Only the sign, 8 x 10 inches on its own letter page, black on white; the screen's words and buttons stay behind. */
  .page-seat-sign .site-header, .page-seat-sign .site-footer, .page-seat-sign .skip-link, .page-seat-sign .sandbox-ribbon, .page-seat-sign .seat-sign-screen { display: none !important; }
  .page-seat-sign body, .page-seat-sign .seat-signs, .page-seat-sign .section { background: #FFFFFF; padding: 0; }
  .page-seat-sign .wrap { max-width: none; padding: 0; }
  .page-seat-sign .seat-sign-sheet { display: block; margin: 0; }
  .page-seat-sign .seat-sign { page: seat-sign; width: 8in; height: 10in; max-width: none; aspect-ratio: auto; margin: 0 auto; padding: 0.7in 0.6in; gap: 0.3in; border-color: #999999; border-radius: 0; box-shadow: none; break-inside: avoid; }
  .page-seat-sign .seat-sign-title { font-size: 52pt; }
  .page-seat-sign .seat-sign-name { font-size: 24pt; }
  .page-seat-sign .seat-sign-code { width: 3.6in; max-width: none; }
  .page-seat-sign .seat-sign-title { font-size: 66pt; }
  .page-seat-sign .seat-sign-steps { font-size: 19pt; }
  .page-seat-sign .seat-sign-how { font-size: 12pt; max-width: 5in; }
}
/* The invitation to print (Premium): the card's preview beside its choices, then how to print it. On paper ("Print at
   home") only the card, at its real size, on a page of that size: named pages, so the lists', the seating chart's and
   the table cards' printouts keep their own. */
.print-card-layout { display: grid; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
@media (min-width: 860px) { .print-card-layout { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 2.5rem; } }
.print-card-preview { margin: 0; display: grid; gap: 0.6rem; justify-items: center; min-width: 0; }
.print-card-canvas { display: block; width: 100%; max-width: 26rem; height: auto; background: var(--bg-2); border-radius: 3px; box-shadow: var(--shadow); }
.print-card-controls { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.print-card-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.45rem; }
.print-card-choice > legend { padding: 0; margin-bottom: 0.4rem; }
.print-card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.print-card-note { display: block; }
.print-card-note + .print-card-note { margin-top: 0.35rem; }
.print-card-help { max-width: 46rem; margin-top: 2.5rem; }
.print-card-steps { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding-left: 1.3rem; }
@media print {
  @page card-5x7 { size: 5in 7in; margin: 0; }
  @page card-4x6 { size: 4in 6in; margin: 0; }
  body[data-print="card"] > :not(main), body[data-print="card"] .print-card .wrap > :not(.print-card-layout), body[data-print="card"] .print-card-controls,
  body[data-print="card"] .print-card-preview > :not(.print-card-canvas) { display: none !important; }
  body[data-print="card"], body[data-print="card"] main, body[data-print="card"] .print-card, body[data-print="card"] .print-card .wrap, body[data-print="card"] .print-card-layout,
  body[data-print="card"] .print-card-preview { display: block; min-height: 0; max-width: none; margin: 0; padding: 0; background: #FFFFFF; }
  body[data-print="card"] .print-card-canvas { width: 5in; height: 7in; max-width: none; border-radius: 0; box-shadow: none; page: card-5x7; }
  body[data-print="card"] .print-card-canvas[data-size="4x6"] { width: 4in; height: 6in; page: card-4x6; }
}
/* Guests' photos (Premium): the hosts' album on the organizer page — the table card's code, the controls, every photo. */
.photo-share { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 640px) { .photo-share { grid-template-columns: 11rem minmax(0, 1fr); } }
.photo-share-qr { width: 11rem; max-width: 100%; padding: 0.5rem; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.photo-share-qr svg, .photo-card-code svg { display: block; width: 100%; height: auto; }
.photo-share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; min-width: 0; }
.photo-share-actions > .copy-row { flex: 1 1 100%; }
.guest-photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem 0.75rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.guest-photo { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.guest-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); }
.guest-photo-meta { margin: 0; font-size: 0.85rem; line-height: 1.35; overflow-wrap: anywhere; }
.guest-photo-name { font-weight: 600; }
.guest-photo-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* The hosts' photo messages float over the page instead of pushing the photos down: nothing under a finger moves
   between the two taps of a confirmation. Taps pass through; the message stays a polite live region. */
.guest-photos-host .form-status[data-photo-status] {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30;
  width: max-content; max-width: min(92vw, 30rem); min-height: 0; margin: 0; padding: 0.65rem 1rem; border-radius: var(--radius-sm);
  background: var(--ink); color: #FFFFFF; box-shadow: var(--shadow); font-size: 0.92rem; pointer-events: none; opacity: 0; transition: opacity 0.2s var(--ease);
}
.guest-photos-host .form-status[data-photo-status]:not(:empty) { opacity: 1; }
.guest-photos-host .form-status[data-photo-status][data-tone="error"] { background: var(--error); color: #FFFFFF; }
.guest-photos-host .form-status[data-photo-status][data-tone="success"] { background: var(--success); color: #FFFFFF; }
/* A removed photo keeps its place as an empty square (its picture is not loaded). */
.guest-photo.is-hidden::before { content: ""; display: block; aspect-ratio: 1; max-width: 100%; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); background: var(--bg); }
.guest-photo.is-hidden .guest-photo-meta { color: var(--muted); }
/* The page a guest opens from the card: one column, big targets. */
.guest-photos-form { margin-top: 1.25rem; gap: 1rem; }
.guest-photos-form .btn-lg { width: 100%; justify-content: center; }
@media (min-width: 640px) { .guest-photos-form .btn-lg { width: auto; } }
/* The printable table cards: on screen a preview, on paper four to a letter page. */
.photo-card-sheet { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.photo-card { display: grid; justify-items: center; align-content: center; text-align: center; gap: 0.7rem; padding: 1.75rem 1.4rem; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-md); outline: 1px solid var(--gold); outline-offset: -9px; }
.photo-card-eyebrow { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); }
.photo-card-name { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.photo-card-code { width: 62%; max-width: 12rem; }
.photo-card-code:empty { display: none; }
.photo-card-steps { margin: 0; max-width: 17rem; font-size: 0.9rem; color: var(--muted); }
/* Co-hosts and family links (organizer page) and a relative's family link page. */
.access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.access-item { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); display: grid; gap: 0.3rem; }
.access-item .reminder-actions:empty { display: none; }
.access-form { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.family-form { display: grid; gap: 0.9rem; }
.family-more > summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; }
.family-more[open] > summary { margin-bottom: 0.6rem; }
.family-more > .family-row + .family-row { margin-top: 0.9rem; }
/* The note on the invitation (organizer page). */
.update-current { display: grid; gap: 0.35rem; margin: 0.4rem 0 0; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: var(--bg); }
.update-texts { display: grid; gap: 0.3rem; }
.update-text { margin: 0; overflow-wrap: anywhere; }
.update-text .pill { margin-right: 0.3rem; }
.update-form { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.update-form textarea { width: 100%; min-height: 4.5rem; resize: vertical; }
/* A family's answer the hosts recorded (received by message), and the form to record it. */
.pill-host { background: #FFF6E3; border-color: #E8D3A6; color: #6B4E12; margin-left: 0.3rem; }
.record-reply { border-top: 1px dashed var(--line); padding-top: 0.5rem; display: grid; gap: 0.6rem; }
.record-reply > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.record-reply textarea { width: 100%; min-height: 3.5rem; resize: vertical; }
.record-choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.record-choice legend { margin-bottom: 0.3rem; }
.choice-inline { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; cursor: pointer; }
/* Questions from guests (organizer page). */
.question-text { margin: 0; overflow-wrap: anywhere; }
.answered-questions > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.answered-questions[open] > summary { margin-bottom: 0.6rem; }
/* Guests' good wishes and songs (organizer page; wishes.ts): each item with its kind and state, the words as written. */
.wall-host-tools { display: grid; gap: 0.7rem; margin: 0 0 0.9rem; }
.wall-host-tools [aria-pressed="true"] { border-color: var(--accent); background: var(--bg); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wall-host-bulk { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.wall-host-bulk [data-confirm] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.wall-host-item { position: relative; gap: 0.55rem; border-left: 4px solid var(--line-strong); }
.wall-host-item[data-state="pending"] { border-left-color: var(--gold); background: var(--surface); }
.wall-host-item[data-state="approved"] { border-left-color: var(--success); }
.wall-host-item[data-state="hidden"] { border-left-color: var(--line-strong); }
.wall-host-item[data-state="hidden"] :is(.wall-host-quote, .wall-host-song) { opacity: 0.62; }
.wall-host-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.wall-kind-wish { background: #FBF0F2; border-color: #EBCBD3; color: #6E2F3E; }
.wall-kind-song { background: #EEF2FA; border-color: #CBD5EA; color: #26324F; }
.wall-state-pending { background: #FFF6E3; border-color: #E8D3A6; color: #6B4E12; }
.wall-state-approved { background: var(--success-bg); border-color: #BFE0CB; color: #174F33; }
.wall-state-hidden { background: #F3EFF3; border-color: #DCD3DC; color: #4A3F4C; }
.wall-host-quote { margin: 0; padding: 0.1rem 0 0.1rem 0.9rem; border-left: 2px solid var(--gold); }
.wall-host-quote p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.wall-host-song { margin: 0; overflow-wrap: anywhere; }
.wall-host-song-title { font-weight: 700; }
.wall-host-song-artist { color: var(--muted); }
.wall-host-who { margin: 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.wall-host-item [data-wall-status]:empty, .wall-host-bulk-status:empty { min-height: 0; }
.wall-host-bulk-status { margin: 0; text-align: left; }
/* Suggestions for the kind of celebration (event-details form): a typical program, questions guests often ask. */
.preset-start { display: grid; gap: 0.5rem; margin: 0 0 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.preset-chip { min-height: 44px; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.95rem; line-height: 1.3; text-align: left; cursor: pointer; }
.preset-chip:hover { border-color: var(--accent); }
.preset-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* The door on the day (for the phone of whoever greets the guests). */
.door .door-totals { font-weight: 600; color: var(--ink); }
.door-filters { margin: 0.4rem 0 0.8rem; }
.door-list { display: grid; gap: 0.6rem; }
.door-party { display: grid; gap: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.9rem 1rem; background: var(--bg); }
.door-party.is-arrived { background: var(--success-bg); border-color: var(--success); }
.door-state { margin: 0; color: var(--success); font-weight: 600; }
.door-state:empty { display: none; }
/* Guest-list depth: the door's pass lookup, the hosts' card, the access-code cover and a family's entry pass. */
.door-pass { margin: 0.4rem 0 0.8rem; padding: 0.8rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.guest-list .gl-plus { margin-top: 0.4rem; }
.guest-list .inline-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.access-gate form { display: grid; gap: 0.8rem; }
.entry-pass { display: grid; justify-items: center; gap: 0.4rem; text-align: center; }
.entry-pass-qr { width: min(18rem, 80vw); background: #FFFFFF; padding: 0.5rem; border-radius: var(--radius-sm); }
.entry-pass-qr svg { display: block; width: 100%; height: auto; }
.entry-pass-code strong { font-family: ui-monospace, monospace; font-size: 1.2rem; letter-spacing: 0.08em; }
.door-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* Every button at the door is a one-handed tap target: 48px, "Undo" too. */
.door-actions .btn { min-height: 48px; }
.door-step { min-width: 48px; min-height: 48px; padding: 0; font-size: 1.3rem; line-height: 1; }
/* The hosts' printable lists (by table, by name). Wide tables scroll inside their own box on a phone. */
.lists .lists-table { margin: 0 0 1.4rem; break-inside: avoid; }
.lists .lists-table h3 { margin: 0 0 0.4rem; }
.lists h2 { margin: 1.6rem 0 0.8rem; }
.lists-actions { margin: 0.8rem 0; }
.lists-scroll { overflow-x: auto; }
.lists-grid { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lists-grid th, .lists-grid td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.lists-grid th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
.lists-grid td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lists-entrance td:last-child { white-space: nowrap; font-weight: 600; }
/* Host command center: replies open or closed, filters, reminders, many families at once. */
.reply-state { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0 0 0.8rem; }
.reply-filters { display: grid; gap: 0.6rem; margin: 0 0 0.8rem; }
.reply-filters [aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* The reply-by date the hosts change after publishing. */
.deadline-setting { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.deadline-now { margin: 0; }
.deadline-form { display: flex; flex-wrap: wrap; gap: 0.6rem 0.8rem; align-items: end; }
.deadline-form .field { flex: 0 1 13rem; }
.deadline-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.deadline-setting .form-status:empty { min-height: 0; }
/* Letters from guests who can't come, shown as letters (their own line breaks kept). */
.letter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.letter { padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); background: #FFFFFF; display: grid; gap: 0.5rem; }
.letter-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.letter-from { margin: 0; font-weight: 600; font-size: 0.92rem; }
.reminder-item { display: grid; gap: 0.4rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.reminder-body { display: grid; gap: 0.4rem; }
.reminder-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
/* While replies are closed (by the host or the deadline) the names stay and the reminders are put away. */
[data-waiting]:not([data-replies="open"]) .reminder-body { display: none; }
/* Who opened the invitation (issue #32): filters, and one status line per family. */
.waiting-filters { margin: 0 0 0.6rem; }
.waiting-filters [aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.reminder-seen { margin: 0; }
.reminder-item [data-reminder-prepared] { margin: 0; }
.bulk-add { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; display: grid; gap: 0.6rem; }
.bulk-add > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.bulk-add textarea { width: 100%; font: inherit; }
.needs-block { display: grid; gap: 0.5rem; align-content: start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.needs-block .h4 { margin: 0; }
.needs-list, .needs-notes, .answer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.needs-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; font-size: 0.93rem; }
.need-count { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.needs-notes li, .answer-list li { font-size: 0.9rem; }
.answer-key { font-weight: 600; }
@media (min-width: 640px) { .needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Responsive reply table: rows become cards on phones. */
@media (max-width: 639px) {
  .table-wrap:has(.responsive) { border: 0; background: transparent; overflow: visible; }
  .data-table.responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table.responsive, .data-table.responsive tbody, .data-table.responsive tr, .data-table.responsive th, .data-table.responsive td { display: block; width: 100%; }
  .data-table.responsive tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.6rem; padding: 0.4rem 0.2rem; background: var(--surface); }
  .data-table.responsive th, .data-table.responsive td { border: 0; padding: 0.35rem 0.8rem; }
  .data-table.responsive tbody th { font-size: 1.02rem; }
  .data-table.responsive .cell-label { display: inline-block; min-width: 6.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .copy-row { grid-template-columns: 1fr; }
  .timeline-list li { grid-template-columns: 1fr; gap: 0.1rem; }
}


/* ---------------------------------------------------------------- wider screens ---------------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 1.75rem; }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .repeat-row { grid-template-columns: repeat(3, 1fr); }
  .repeat-row.repeat-row-pairs { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .progress { grid-template-columns: repeat(5, 1fr); }
  .step-item { flex-direction: column; text-align: center; gap: 0.4rem; font-size: 0.85rem; }
  .fieldset { padding: 1.6rem 1.6rem 1.7rem; }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 1.4fr; }
  .design-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .pillar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.75rem 0; }
  .sample-card { grid-template-columns: 150px minmax(0, 1fr); }
  .pkg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pkg-card .pkg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-block-hosts { padding: 2rem 1.75rem; }
}
@media (min-width: 900px) {
  .has-nav-toggle .nav-toggle { display: none !important; }
  .has-nav-toggle .site-nav { display: flex; order: 0; width: auto; flex-direction: row; padding: 0; }
  .section { padding: 5rem 0; }
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-bottom: 2.75rem; }
  .home-hero { padding-block: 4rem 4.5rem; }
  .home-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; }
  .hero-scene { justify-self: end; }
  .pillar-list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2rem 0; gap: 2.5rem; }
  .sample-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
  /* The picture row keeps its size; the text takes the rest, so every ticket's label starts on the same line. */
  .sample-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 1rem; padding: 0; border: 0; background: transparent; }
  .sample-shot { aspect-ratio: 1; border-radius: var(--radius-md); }
  .sample-body h3 { font-size: 1.75rem; }
  .experience-block { grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; align-items: center; padding-top: 3rem; margin-top: 2rem; }
  .experience-block-hosts { grid-template-columns: minmax(0, 1fr) 300px; padding: 2.5rem 3rem; }
  .experience-block-hosts .experience-shot { order: 2; }
  .experience-shot .phone-shot { width: 230px; }
  .steps-grid { gap: 2.5rem; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
  .trust-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; }
  .pkg-grid { grid-template-columns: repeat(3, 1fr); }
  .pkg-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(42, 31, 45, 0.05), 0 24px 44px -20px rgba(42, 31, 45, 0.35); }
  .pkg-hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .pkg-detail-grid { grid-template-columns: 1.6fr 1fr; gap: 3rem; }
  .checkout-grid { grid-template-columns: 1fr 1fr; }
  .org-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .home-hero-grid { gap: 4rem; }
  .design-grid { gap: 1.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* The hero envelope stays open and still: no seal breaking, no flap, no rising card. */
  .hero-env-seal-half, .hero-env-flap, .hero-env-card { animation: none !important; }
}
@media (forced-colors: active) {
  .btn, .lang-switch button, .choice-option, .theme-option, .design-option { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .sandbox-ribbon, .skip-link { position: static; }
  .nav-toggle { display: none !important; }
  /* The printable lists: black on white, no header, buttons or site links, every table's columns lined up with the
     next, the entrance list on its own page. */
  .page-lists .site-header, .page-lists .skip-link, .page-lists [data-print], .page-lists .lists-screen-only, .page-lists .site-footer { display: none !important; }
  .page-lists body, .page-lists .lists { background: #FFFFFF; color: #000000; }
  .page-lists .muted, .page-lists .lists-grid th { color: #333333; }
  .page-lists .lists-grid th, .page-lists .lists-grid td { border-bottom-color: #999999; }
  .page-lists .lists-scroll { overflow: visible; }
  .page-lists .lists-grid { table-layout: fixed; }
  .page-lists .lists-table .lists-grid th:nth-child(1) { width: 30%; }
  .page-lists .lists-table .lists-grid th:nth-child(2) { width: 13%; }
  .page-lists .lists-table .lists-grid th:nth-child(3) { width: 32%; }
  .page-lists .lists-table .lists-grid th:nth-child(4) { width: 25%; }
  .page-lists .lists-entrance th:nth-child(1) { width: 75%; }
  .page-lists .lists-break { break-before: page; }
  /* The seating chart ("Print chart"): only the drawn tables and their names, black on white, three tables a row. */
  body[data-print="seating"] .site-header, body[data-print="seating"] .site-footer, body[data-print="seating"] .skip-link, body[data-print="seating"] .sandbox-ribbon,
  body[data-print="seating"] .organizer > .wrap > :not(.org-grid):not(h1), body[data-print="seating"] .org-aside, body[data-print="seating"] .org-main > :not(.seating-chart),
  body[data-print="seating"] .seating-chart > :not(.section-head):not(.seating-app), body[data-print="seating"] .seating-toolbar, body[data-print="seating"] .seating-app .form-status,
  body[data-print="seating"] .seating-side, body[data-print="seating"] .seat-table-head, body[data-print="seating"] .seat-table-actions, body[data-print="seating"] .seat-person-party { display: none !important; }
  /* Each table's full names print under its drawing, as plain text. */
  body[data-print="seating"] .seat-person { border: 0; box-shadow: none; min-height: 0; padding: 0; background: none; color: #000000; }
  body[data-print="seating"], body[data-print="seating"] .seating-chart { background: #FFFFFF; color: #000000; border: 0; box-shadow: none; }
  body[data-print="seating"] .org-grid, body[data-print="seating"] .seating-layout { display: block; }
  body[data-print="seating"] .seating-floor { grid-template-columns: repeat(3, 1fr); }
  body[data-print="seating"] .seat-table { break-inside: avoid; border-color: #999999; }
  body[data-print="seating"] .seat-table-top { fill: #FFFFFF; stroke: #000000; }
  body[data-print="seating"] .seat-name, body[data-print="seating"] .seat-table-name, body[data-print="seating"] .seat-table-count { fill: #000000; }
  /* The guests' photo cards ("Print cards"): only the cards, two by two (a letter or A4 page holds four; cut along the
     edges), the code black on white. */
  .page-photo-card .site-header, .page-photo-card .site-footer, .page-photo-card .skip-link, .page-photo-card .sandbox-ribbon, .page-photo-card .photo-cards-screen { display: none !important; }
  .page-photo-card body, .page-photo-card .photo-cards, .page-photo-card .section { background: #FFFFFF; padding: 0; }
  .page-photo-card .wrap { max-width: none; padding: 0; }
  .page-photo-card .photo-card-sheet { grid-template-columns: 1fr 1fr; gap: 0.25in; margin: 0; }
  .page-photo-card .photo-card { height: 4.7in; break-inside: avoid; border-color: #999999; border-radius: 0; box-shadow: none; }
  .page-photo-card .photo-card-code { width: 2.3in; max-width: 62%; }
  .page-photo-card .photo-card-steps { color: #333333; }
}

/* ---------------------------------------------------------------- the hosts' planner ----------------------------------------------------------------
   "Lista de pendientes" and "Presupuesto" at the end of the organizer page (every package; the hosts' eyes only). Each
   title is a real heading above the bar that folds the tool open (how far the hosts are and a +/−); the page script
   lets a tap on the title fold it too. Every control is at least 44px tall and everything stacks in one column on a
   360px phone. Overdue tasks and balances say so in words (a pill), not only in colour. */
.planner { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.planner-card { padding: 0; gap: 0; }
.planner-title { margin: 0; padding: 1.1rem 1.4rem 0; }
.planner-title[data-planner-title] { cursor: pointer; }
.planner-fold > summary { position: relative; list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 48px; padding: 0.3rem 1.4rem 1rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.planner-fold > summary::-webkit-details-marker { display: none; }
/* The +/− is drawn, not read: the second `content` gives it no spoken text (browsers without that syntax keep the first). */
.planner-fold > summary::after { content: "+"; content: "+" / ""; grid-column: 2; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold-text); font-size: 1.1rem; }
.planner-fold[open] > summary::after { content: "−"; content: "−" / ""; }
.planner-fold[open] > summary { border-bottom: 1px solid var(--line); border-radius: 0; }
.planner-fold > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.planner-progress { grid-column: 1; color: var(--muted); font-size: 0.93rem; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.planner-body { display: grid; gap: 1rem; padding: 1.1rem 1.4rem 1.4rem; min-width: 0; }
.planner-app, .planner-content, .planner-fallback { display: grid; gap: 1rem; min-width: 0; }
.planner-status:empty { display: none; }
.planner-status:not(:empty) { position: sticky; bottom: 0.5rem; z-index: 2; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.planner-toolbar { display: grid; gap: 0.4rem; }
.planner-meter { width: 100%; height: 10px; accent-color: var(--success); }
.planner-toggle { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: 0.93rem; cursor: pointer; justify-self: start; }
.planner-toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.planner-group { display: grid; gap: 0.5rem; }
.planner-group h3 { margin: 0.3rem 0 0; font-size: 1.1rem; }
.planner-items, .planner-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.planner-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.6rem; align-items: start; padding: 0.4rem 0.6rem 0.6rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); min-width: 0; }
.planner-item.is-done { border-left-color: var(--success); }
.planner-item.is-done .planner-item-text { text-decoration: line-through; color: var(--muted); }
.planner-item.is-overdue { border-left-color: var(--error); background: #FFF7F6; }
.planner-check { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 44px; padding: 0.45rem 0 0.2rem; cursor: pointer; min-width: 0; }
.planner-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--accent); }
.planner-item-text { overflow-wrap: anywhere; font-weight: 600; }
.planner-fallback .planner-item-text { margin: 0; grid-column: 1 / -1; }
.planner-item-meta { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.planner-content .planner-item-meta, .planner-content .planner-item > .planner-item-note { padding-left: calc(24px + 0.65rem); }
.planner-item-note { grid-column: 1 / -1; margin: 0; font-size: 0.88rem; white-space: pre-line; overflow-wrap: anywhere; }
.pill-overdue { background: var(--error-bg); border-color: #EBB8B2; color: var(--error); }
.planner-edit-toggle { justify-self: end; }
.planner-edit { grid-column: 1 / -1; display: grid; gap: 0.8rem; margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line); min-width: 0; }
.planner-fields { display: grid; gap: 0.7rem; min-width: 0; }
@media (min-width: 640px) { .planner-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .planner-field-wide { grid-column: 1 / -1; } }
.planner-fields textarea { min-height: 88px; }
.planner-edit-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.planner-delete { margin-left: auto; }
.planner-add { display: grid; gap: 0.7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.planner-budget-top { display: grid; gap: 0.7rem; max-width: 24rem; }
.planner-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
@media (min-width: 640px) { .planner-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.planner-total { padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); min-width: 0; }
.planner-total dt { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.planner-total dd { margin: 0.1rem 0 0; font-family: var(--font-numbers); font-size: 1.3rem; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.planner-total.is-left { border-color: #BFE0CB; background: var(--success-bg); }
.planner-total.is-over { border-color: var(--error); background: var(--error-bg); }
.planner-total.is-over dd, .planner-total.is-over dt { color: var(--error); }
.planner-per-guest { display: grid; gap: 0.6rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: var(--surface); }
.planner-per-guest h3 { margin: 0; font-size: 1.1rem; }
.planner-per-guest .field { max-width: 16rem; }
.planner-per-guest .btn { justify-self: start; }
.planner-estimate { margin: 0; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.planner-line { display: grid; gap: 0.35rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); min-width: 0; }
.planner-line-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.3rem 0.6rem; }
.planner-line-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.planner-line-amounts, .planner-line-meta { margin: 0; font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.9rem; overflow-wrap: anywhere; }
.planner-line-amounts strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.planner-line .planner-edit-toggle { justify-self: start; }

/* ================================================================ More colours and design motifs (2026-09-28) ================================================================
   The swatches of the palettes added with the design motifs, the ornament picker of the details form (a small
   preview of each motif) and the motifs row of the home page's "Colores y diseños". */
.swatch-terracota-deco { background: radial-gradient(circle at 30% 35%, #C4826B 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #7C835B 0 8%, transparent 9%), linear-gradient(135deg, #FFFCF7, #EEE3D3); }
.swatch-salvia-olivo { background: radial-gradient(circle at 30% 35%, #9FB08A 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #B8A566 0 8%, transparent 9%), linear-gradient(135deg, #FDFEF8, #E3E9D9); }
.swatch-rosa-palo { background: radial-gradient(circle at 30% 35%, #D8AAAB 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #C9A97C 0 8%, transparent 9%), linear-gradient(135deg, #FFFBFA, #EFDEDC); }
.swatch-champan { background: radial-gradient(circle at 30% 35%, #E6CCB8 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #CDAE7A 0 8%, transparent 9%), linear-gradient(135deg, #FFFDF8, #EDE1D0); }
.swatch-lila-mariposa { background: radial-gradient(circle at 30% 35%, #D6B3E1 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #BDB2D2 0 8%, transparent 9%), linear-gradient(135deg, #FFFFFF, #EEDFF3); }
.swatch-azul-rey { background: radial-gradient(circle at 72% 30%, #E6CB86 0 12%, transparent 13%), radial-gradient(circle at 30% 65%, #C8D2F2 0 6%, transparent 7%), linear-gradient(135deg, #2A47A8, #0F2470); }
.swatch-rojo-rubi { background: radial-gradient(circle at 72% 30%, #F0C87F 0 12%, transparent 13%), radial-gradient(circle at 30% 65%, #E2536C 0 6%, transparent 7%), linear-gradient(135deg, #6E1226, #3D0712); }
.swatch-negro-oro { background: radial-gradient(circle at 72% 30%, #E2C27A 0 12%, transparent 13%), radial-gradient(circle at 30% 65%, #F7F1E3 0 6%, transparent 7%), linear-gradient(135deg, #2A251C, #0E0D0B); }
.swatch-fucsia-fiesta { background: radial-gradient(circle at 30% 35%, #EE62A4 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #D9AE55 0 8%, transparent 9%), linear-gradient(135deg, #FFFAFD, #F8DCEA); }
.swatch-durazno { background: radial-gradient(circle at 30% 35%, #F5A383 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #A9BF95 0 8%, transparent 9%), linear-gradient(135deg, #FFFCF9, #FBE3D5); }
.swatch-turquesa { background: radial-gradient(circle at 30% 35%, #7CCFC9 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #CFAC62 0 8%, transparent 9%), linear-gradient(135deg, #FBFFFF, #D6EEEB); }
/* The ornament picker: radio, small preview, name and a line about it. Two per row on a phone: at 360px the fieldset
   leaves about 283px, too narrow for two 140px columns, and one per row would make this optional choice ~2,400px long. */
.motif-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .motif-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.motif-option { display: grid; gap: 0.35rem; align-content: start; padding: 0.7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: #FFFFFF; cursor: pointer; position: relative; }
.motif-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.motif-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.motif-option input { position: absolute; top: 0.9rem; right: 0.9rem; width: 20px; height: 20px; accent-color: var(--accent); }
.motif-preview { display: block; width: 100%; height: auto; aspect-ratio: 39 / 56; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.motif-name { font-weight: 600; font-size: 0.92rem; }
.motif-note { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
/* The home page: the motifs after the palettes, on the same night blue. */
.motif-gallery-title { margin: 2.75rem 0 0.4rem; text-align: center; }
.motif-gallery-lead { margin: 0 auto 1.25rem; max-width: 38rem; text-align: center; color: #DDE2F0; }
.motif-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.9rem; }
.motif-tile { margin: 0; min-width: 0; }
/* The notes under the home tiles ("Vista ilustrada", each ornament's line, the photo story's) in the night blue's muted
   ink: the order form's later .design-note rule (--muted, made for white cards) would otherwise leave them near 2:1. */
.home-designs .design-note { color: var(--midnight-muted); font-size: 0.8125rem; }
@media (min-width: 640px) { .motif-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (forced-colors: active) { .motif-option { border: 1px solid ButtonText; } }

/* The off-road collection is a read-only concept beside the orderable collections. */
.home-occasions .occasion-offroad .occasion-scene { background: #17111b; }
.home-occasions .occasion-offroad .occasion-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.occasion-landing.occasion-offroad { --occasion-ground: #17111b; --occasion-ink: #fff2df; --occasion-light: #f4ad66; }
.occasion-offroad .occasion-hero-art { aspect-ratio: 3 / 4; object-fit: cover; object-position: 58% center; }
.offroad-preview-window img { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.offroad-concepts .template-card-actions .btn { min-height: 44px; }
.offroad-concepts .template-card-actions .fine { margin: 0; }
.offroad-director { background: #15121b; color: #fff3df; }
.offroad-director-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.offroad-director-copy { min-width: 0; }
.offroad-director-copy h2 { color: #fff3df; }
.offroad-director-copy > p:not(.eyebrow) { color: #e3d7c9; }
.offroad-director-copy .fine { color: #c8b9a9; }
.offroad-choice-group { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.offroad-choice { min-width: 4.75rem; min-height: 44px; padding: .55rem .85rem; border: 1px solid #8f7869; border-radius: 999px; background: #261f27; color: #fff3df; cursor: pointer; font: inherit; }
.offroad-choice:hover, .offroad-choice:focus-visible { border-color: #f4bb78; }
.offroad-choice:focus-visible { outline: 3px solid #f4bb78; outline-offset: 3px; }
.offroad-choice[aria-pressed="true"] { border-color: #f4bb78; background: #6c3b27; color: #fff; }
.offroad-current { min-height: 1.5em; margin-top: .8rem; font-size: .9rem; }
.offroad-director-stage { position: relative; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #705846; border-radius: 1rem; background: #271d20; box-shadow: 0 24px 60px #0008; }
.offroad-director-stage > img, .offroad-director-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.offroad-director-stage > video { opacity: 0; }
.offroad-director-stage.is-playing > video { opacity: 1; }
.offroad-mood-layer { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #100e18a8, transparent 45%); }
.offroad-director[data-offroad-season="halloween"] .offroad-mood-layer { background: radial-gradient(circle at 82% 20%, #bb6cf840, transparent 28%), linear-gradient(135deg, #1209297a, transparent 55%), linear-gradient(0deg, #100e18c7, transparent 50%); }
.offroad-director[data-offroad-season="christmas"] .offroad-mood-layer { background: radial-gradient(circle at 70% 18%, #f9e1a65c, transparent 28%), linear-gradient(120deg, #004f4d7d, transparent 62%), linear-gradient(0deg, #032d35b8, transparent 50%); }
.offroad-director[data-offroad-season="christmas"] .offroad-mood-layer::after { content: ""; position: absolute; inset: -20% 0 0; background-image: radial-gradient(#fff9 1px, transparent 2px), radial-gradient(#fff7 1px, transparent 2px); background-size: 37px 41px, 61px 67px; background-position: 0 0, 13px 19px; opacity: .55; animation: offroad-snow 9s linear infinite; }
@keyframes offroad-snow { to { transform: translateY(20%); } }
.offroad-stage-label { position: absolute; left: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: .45rem .65rem; border: 1px solid #ffffff6b; border-radius: .35rem; background: #110f18ba; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
@media (max-width: 760px) { .offroad-director-grid { grid-template-columns: 1fr; } .offroad-director-stage { aspect-ratio: 3 / 4; } }
@media (prefers-reduced-motion: reduce) { .offroad-director-stage > video { transition: none; } .offroad-director[data-offroad-season="christmas"] .offroad-mood-layer::after { animation: none; } }

/* Invited friends' site: the invitation code next to the order button, what the code covered, the hosts' page link. */
.order-box-invite input[data-promo-input] { text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-numbers); }
.order-box-invite .field { max-width: 20rem; }
.payment .totals { margin-top: 0.6rem; }
.payment .totals .total dd { font-size: 1.15rem; }
.hosts-card { display: grid; gap: 0.6rem; }
.hosts-card > .btn { justify-self: start; }

/* A delivered paid order's comment card (order page; testimonials.ts). */
.testimonial-card { display: grid; gap: 0.8rem; }
.testimonial-form { display: grid; gap: 0.9rem; }
.testimonial-rating { border: 0; margin: 0; padding: 0; min-width: 0; }
.testimonial-rating > legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.93rem; }
.testimonial-card > .btn, .testimonial-form > .btn { justify-self: start; }

/* A paid order's package upgrade before production (order page; order-upgrades.ts). */
.upgrade-card { display: grid; gap: 0.6rem; }
.upgrade-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.upgrade-options > .btn { white-space: normal; text-align: left; }

/* Customers' comments on the home page (the live paid build, three or more). */
.home-testimonials { grid-column: 1 / -1; display: grid; gap: 1rem; }
.home-testimonials > h2 { font-size: clamp(1.5rem, 3.6vw, 1.875rem); }
.home-testimonials + .faq-teaser { grid-column: 1 / -1; }
.testimonial-list { display: grid; gap: 1rem; }
.testimonial { margin: 0; padding: 1.25rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); display: grid; gap: 0.6rem; align-content: start; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; overflow-wrap: anywhere; }
.testimonial figcaption { font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 720px) { .testimonial-list { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); } }

/* Six original occasion collections and native keyboard/touch navigation. */
.occasion-nav { position: relative; }
.occasion-nav summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .8rem; border-radius: 24px; cursor: pointer; list-style: none; font-weight: 500; }
.occasion-nav summary::-webkit-details-marker { display: none; }
.occasion-nav summary:hover, .occasion-nav[open] summary { background: var(--bg-2); }
.occasion-nav-links { display: flex; flex-direction: column; min-width: 14rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: .5rem; box-shadow: var(--shadow); z-index: 50; }
.site-nav .occasion-nav-links a { width: 100%; border-radius: 8px; }
.occasion-nav-links > [data-lang] { display: block; }
.swatch-linterna { background: radial-gradient(circle at 72% 30%, #f4a44c 0 12%, transparent 13%), linear-gradient(135deg, #302044, #171128); }
.swatch-navidad { background: radial-gradient(circle at 72% 30%, #e4c480 0 12%, transparent 13%), linear-gradient(135deg, #214c3c, #102b24); }
.home-occasions .occasion-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-occasions .occasion-halloween .occasion-scene { background: #171128; }
.home-occasions .occasion-christmas .occasion-scene { background: #102b24; }
.home-occasions .occasion-photo { object-fit: contain; }
.occasion-landing { --occasion-ground: #f4edde; --occasion-ink: #342a26; --occasion-light: #7a5a1e; background: var(--occasion-ground); color: var(--occasion-ink); position: relative; overflow: hidden; }
.occasion-landing.occasion-corporate { --occasion-ground: #101e35; --occasion-ink: #f8f1df; --occasion-light: #e4c480; }
.occasion-landing.occasion-halloween { --occasion-ground: #171128; --occasion-ink: #fff3de; --occasion-light: #f4b46a; }
.occasion-landing.occasion-christmas { --occasion-ground: #231522; --occasion-ink: #fff5df; --occasion-light: #e4c480; }
.occasion-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6rem); }
.occasion-hero-copy { max-width: 35rem; position: relative; z-index: 1; }
.occasion-hero h1 { color: inherit; font-size: clamp(3rem, 6vw, 5rem); margin-block: 1rem; }
.occasion-hero .eyebrow { color: var(--occasion-light); letter-spacing: .16em; font-size: .72rem; font-weight: 600; }
.occasion-hero .fine { color: inherit; opacity: .85; margin-top: 1.5rem; }
.occasion-hero .lead { color: inherit; opacity: .9; }
.occasion-hero .btn-outline { color: inherit; background: transparent; border-color: var(--occasion-light); }
.occasion-hero .btn-outline:hover { color: var(--occasion-ground); background: var(--occasion-ink); }
.occasion-hero-visual { position: relative; width: min(100%, 30rem); margin-inline: auto; }
.occasion-hero-visual::before { content: ""; position: absolute; inset: 10% -18%; background: radial-gradient(ellipse, #e1bd7930, transparent 65%); pointer-events: none; }
.occasion-hero-art { position: relative; width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 24px #0003); }
.occasion-how, .occasion-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.occasion-how h2 { font-size: 1.6rem; margin-block: .75rem; }
.occasion-how .step-index { font-family: var(--font-numbers); font-size: 1.25rem; color: var(--gold-text); }
.occasion-how p { color: var(--muted); }
.occasion-package { display: flex; flex-direction: column; align-items: flex-start; }
.occasion-package .btn { margin-top: auto; }
.occasion-package-price { font-family: var(--font-numbers); font-size: 1.8rem; }
.occasion-package-price span { font-family: var(--font-body); font-size: .7rem; color: var(--muted); }
.review-occasion { padding: .65rem 1rem; border-left: 3px solid var(--gold); background: var(--bg); }
@media (min-width: 980px) { .occasion-nav-links { position: absolute; top: calc(100% + .5rem); left: 0; } }
@media (max-width: 1100px) { .home-occasions .occasion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .occasion-hero { grid-template-columns: 1fr; gap: 1rem; }
  .occasion-hero-copy { text-align: center; margin-inline: auto; }
  .occasion-hero-copy .form-actions { justify-content: center; }
  .occasion-hero-visual { width: min(100%, 23rem); }
  .occasion-how, .occasion-package-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .home-occasions .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .home-occasions .occasion-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .occasion-hero-art { animation: occasion-art-arrive 800ms var(--ease) both; }
  @keyframes occasion-art-arrive { from { opacity: .6; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
:is(.page-home,.page-package) .occasion-nav summary { color: #e6e9e8; font-size: .85rem; }
:is(.page-home,.page-package) .occasion-nav summary:hover, :is(.page-home,.page-package) .occasion-nav[open] summary { background: #2c3e46; }
:is(.page-home,.page-package) .occasion-nav-links { background: #15212a; border-color: #627078; }

.occasion-nav-link[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 currentColor; }

/* Fixed original arrival thumbnails: each concept has its own geometry; previews carry the live story. */
.home-occasions .occasion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.occasion-landing.occasion-travel { --occasion-ground: #183d55; --occasion-ink: #fff1dc; --occasion-light: #f0bd71; }
.story-template-arrival { position: relative; overflow: hidden; }
.occasion-scene > .story-template-arrival { position: absolute; inset: 0; }
.story-thumbnail { position: relative; overflow: hidden; width: 100%; height: 100%; min-height: 0; }
.story-thumbnail .story-scene-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-thumbnail :is(.story-drift,.story-orbit,.story-flicker,.story-spark,.story-dance,.story-fly) { animation: none !important; }
.occasion-hero-art.story-template-arrival { aspect-ratio: 3 / 4; border-radius: 1.5rem; border: 1px solid #ffffff35; box-shadow: 0 2rem 4rem #0004; }
.occasion-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.occasion-template-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.template-preview-window { position: relative; overflow: hidden; aspect-ratio: 3 / 4; isolation: isolate; background: var(--midnight); }
.template-preview-window .story-thumbnail { position: absolute; inset: 0; }
.template-preview-window::after { content: ""; position: absolute; inset: 50% 0 0; z-index: 1; background: linear-gradient(transparent, #071020aa); pointer-events: none; }
.template-opening-symbol { position: absolute; z-index: 1; width: 5.8rem; height: 5.8rem; left: 50%; top: 42%; transform: translate(-50%, -50%); border: 1px solid #fff3c8; border-radius: 50%; background: conic-gradient(from 30deg, #d5a75f, #fff0bc, #b8d6cf, #e8c19b, #ba9dce, #f5d896, #d5a75f); box-shadow: 0 .9rem 1.8rem #05102070, inset 0 0 0 .35rem #59422570, inset 0 0 0 .45rem #fff5; pointer-events: none; }
.template-opening-symbol::before { content: ""; position: absolute; inset: .7rem; border: 1px solid #fff4c2; border-radius: inherit; }
.template-opening-symbol::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; font: 2rem/1 var(--font-numbers); color: #392643; text-shadow: 0 1px #fff8; }
[data-opening-kind="prism-seal"] .template-opening-symbol { width: 5.6rem; height: 5.6rem; border-radius: .7rem; transform: translate(-50%, -50%) rotate(45deg); background: conic-gradient(from 45deg, #fbe9ac, #b5ded8, #ceb1e0, #f4c4a4, #fbe9ac); box-shadow: 0 .7rem 2rem #05102080, inset 0 0 0 .35rem #fff3, inset 0 0 1.4rem #62678a70; }
[data-opening-kind="prism-seal"] .template-opening-symbol::after { transform: rotate(-45deg); }
[data-opening-kind="ivory-folio"] .template-opening-symbol { width: 8rem; height: 9rem; border-radius: .35rem; transform: translate(-50%, -50%) rotate(-8deg); background: linear-gradient(90deg, transparent 46%, #8f785c55 49%, #fff9e8 51%, transparent 55%), linear-gradient(135deg, #fff6df, #d9c9ae 75%, #f9ebd2); box-shadow: .4rem .6rem 0 -.2rem #aa9061, 0 1rem 2rem #05102080, inset 0 0 0 .35rem #fff7; }
[data-opening-kind="ivory-folio"] .template-opening-symbol::before { border: .2rem double #9a794c; inset: .6rem; }
[data-opening-kind="ivory-folio"] .template-opening-symbol::after { color: #876637; font-size: 2.4rem; }
[data-opening-kind="passport-folio"] .template-opening-symbol { width: 7rem; height: 9rem; border-radius: .35rem .9rem .9rem .35rem; transform: translate(-50%, -50%) rotate(8deg); background: linear-gradient(90deg, #071f35 0 7%, #819798 8%, #193d52 11%, #214e60 75%, #163749); box-shadow: .35rem .3rem 0 -.12rem #e8d9b5, 0 1rem 2rem #05102080, inset 0 0 0 .2rem #c8ae723d; }
[data-opening-kind="passport-folio"] .template-opening-symbol::before { inset: .8rem .65rem .8rem 1rem; border: 1px solid #cbb77c; }
[data-opening-kind="passport-folio"] .template-opening-symbol::after { content: "◎"; color: #efdcaa; font-size: 3.6rem; text-shadow: 0 1px #001c30; }
[data-opening-kind="starlight-doors"] .template-opening-symbol { width: 7.5rem; height: 10rem; border-radius: .35rem; background: linear-gradient(180deg, transparent 48.5%, #071020 49% 51%, transparent 51.5%), linear-gradient(90deg, #0c2940e8 0 43%, #b79456 44%, #ffefbd 50%, #b79456 56%, #14374ce8 57%); box-shadow: 0 1rem 2rem #05102080, inset 0 0 0 .3rem #e8c98e66; }
[data-opening-kind="starlight-doors"] .template-opening-symbol::before { inset: .65rem; border: .2rem double #dfc185; }
[data-opening-kind="starlight-doors"] .template-opening-symbol::after { content: "✧"; color: #fff2c3; font-size: 2.8rem; text-shadow: 0 0 1rem #ffe3a3; }
[data-opening-kind="lantern-portal"] .template-opening-symbol { width: 8rem; height: 8rem; background: radial-gradient(circle, #f7c66f24 0 48%, #101833cc 51%); border: .35rem double #ffdaa5; box-shadow: 0 0 2rem #f5ae5866, inset 0 0 2rem #f5ae5866, 0 1rem 2rem #05102060; }
[data-opening-kind="lantern-portal"] .template-opening-symbol::before { inset: .75rem; border: 1px solid #ffdaa594; }
[data-opening-kind="lantern-portal"] .template-opening-symbol::after { content: "✧"; color: #ffdf9f; font-size: 3rem; text-shadow: 0 0 1rem #f5ae58; }
[data-opening-kind="royal-envelope"] .template-opening-symbol { width: 9.4rem; height: 6.5rem; border-radius: .35rem; background: linear-gradient(150deg, transparent 49%, #a8865266 50%, transparent 51%), linear-gradient(30deg, #d1ae73 0 49%, #af8a50 50%, #f9e4b9 51%); box-shadow: 0 .9rem 1.8rem #05102080, inset 0 0 0 .2rem #fff5; }
[data-opening-kind="royal-envelope"] .template-opening-symbol::before { inset: .6rem; border-color: #92724b80; }
[data-opening-kind="royal-envelope"] .template-opening-symbol::after { inset: auto; left: 50%; top: 50%; width: 2.8rem; height: 2.8rem; transform: translate(-50%, -50%); border: .2rem double #edc69b; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #a85272, #5c233e); color: #f6d7b2; font-size: 1.4rem; text-shadow: none; }
.template-opening-label { position: absolute; z-index: 2; bottom: 1rem; left: 1rem; right: 1rem; color: #fff5dc; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-align: center; }
.template-card-copy { padding: 1.25rem; }
.template-card-copy :is(h3,h4) { font-size: 1.6rem; margin: 0 0 .7rem; }
.template-card-copy p { color: var(--muted); font-size: .92rem; }
.template-card-actions { display: grid; gap: .9rem; margin-top: 1.2rem; }
.template-card-actions .btn { min-height: 44px; white-space: normal; }
.template-card-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .occasion-template-grid, .home-occasions .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .occasion-template-grid, .home-occasions .occasion-grid { grid-template-columns: 1fr; } }
@media (forced-colors: active) { .template-preview-window { border: 1px solid CanvasText; } .template-opening-label { background: Canvas; color: CanvasText; } .template-opening-symbol { background: Canvas; border-color: CanvasText; } }

/* Native one-tap invitation previews: same-tab navigation, visible touch cues and keyboard focus. */
a.preview-link { display: block; min-width: 44px; min-height: 44px; color: inherit; text-decoration: none; touch-action: manipulation; }
a.preview-link:focus-visible { outline: 3px solid var(--focus,#e7be70); outline-offset: -4px; }
.phone-shot.preview-link, .design-shot.preview-link { position: relative; }
.preview-link .preview-tap { position: absolute; z-index: 5; left: .8rem; right: .8rem; bottom: .8rem; display: grid; place-items: center; min-height: 44px; padding: .6rem .65rem; border: 1px solid #fff7; border-radius: .8rem; background: #102630ed; color: #fff5dc; font: 700 .78rem/1.35 var(--font-body); text-align: center; letter-spacing: .01em; pointer-events: none; box-shadow: 0 .3rem 1rem #0004; }
.preview-link:hover .preview-tap { background: #254b53; }
.template-preview-window.preview-link .template-opening-label { bottom: 4.8rem; }
.premium-photo-card.preview-link { pointer-events: auto; }
.premium-photo-card.preview-link > .preview-tap { padding: .6rem .4rem; color: #fff5dc; font: 700 .72rem/1.35 var(--font-body); }
.flagship-detail.preview-link .preview-tap { left: .3rem; right: .3rem; bottom: .4rem; font-size: .7rem; }
@media (forced-colors: active) { a.preview-link:focus-visible { outline-color: Highlight; } .preview-link .preview-tap { background: Canvas; color: LinkText; border-color: LinkText; box-shadow: none; } }
@media print { .preview-link .preview-tap { display: none; } }

/* The complete catalog stays in the document: wrap navigation, ordinary anchors, and open editorial groups. */
.invitation-gallery { background: #fffaf3; color: #2a3030; }
#invitation-gallery, .gallery-group, .occasion-designs, .occasion-collection-intro { scroll-margin-block-start: 6.5rem; }
.gallery-intro { min-width: 0; }
.gallery-intro.section-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
.gallery-intro.section-head > .fine { max-width: 60rem; margin: 0; }
@media (min-width: 900px) { .gallery-intro.section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } .gallery-intro.section-head > .fine { grid-column: 1 / -1; } }
.gallery-intro :is(h1,h2) { max-width: 20ch; text-wrap: balance; }
.gallery-intro .premium-eyebrow { color: #6b583e; margin-bottom: .9rem; }
.gallery-intro p { max-width: 43rem; color: #56615c; }
.gallery-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2.75rem; padding: 0; }
.gallery-nav > :is(a,[data-lang]) { min-width: 0; max-width: 100%; }
.gallery-nav a { --gallery-accent: #315949; --gallery-tint: #eef2e8; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 44px; min-height: 44px; max-width: 100%; padding: .6rem 1rem; border: 1px solid var(--gallery-accent); border-radius: 999px; background: var(--gallery-tint); color: var(--gallery-accent); font: 650 .88rem/1.35 var(--font-body); text-decoration: none; text-align: center; overflow-wrap: anywhere; touch-action: manipulation; }
.gallery-nav a:hover, .gallery-nav a[aria-current="page"] { background: var(--gallery-accent); color: #fff; }
.gallery-nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px currentColor; }
.gallery-count { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 1.75em; min-height: 1.75em; margin-inline-start: .25em; padding: .1em .4em; border: 1px solid currentColor; border-radius: 999px; color: inherit; font: 600 .8rem/1.15 var(--font-body); vertical-align: middle; font-variant-numeric: tabular-nums; }
.gallery-group, .occasion-collection-intro, .occasion-designs { --gallery-accent: #315949; --gallery-tint: #eef2e8; --gallery-detail: #b08a45; }
[data-gallery-occasion="wedding"], .gallery-nav a[href*="wedding"] { --gallery-accent: #785034; --gallery-tint: #f3e8d7; }
[data-gallery-occasion="quinceanera"], .gallery-nav a[href*="quinceanera"] { --gallery-accent: #763858; --gallery-tint: #f5e5ee; }
[data-gallery-occasion="corporate"], .gallery-nav a[href*="corporate"] { --gallery-accent: #2b5079; --gallery-tint: #e6eef7; }
[data-gallery-occasion="travel"], .gallery-nav a[href*="travel"] { --gallery-accent: #245f63; --gallery-tint: #e0efec; }
[data-gallery-occasion="halloween"], .gallery-nav a[href*="halloween"] { --gallery-accent: #683d72; --gallery-tint: #eee4f2; --gallery-detail: #a55d27; }
[data-gallery-occasion="christmas"], .gallery-nav a[href*="christmas"] { --gallery-accent: #2c5c42; --gallery-tint: #e5efe3; --gallery-detail: #8a3847; }
.gallery-group { padding-block: clamp(2rem, 5vw, 3.75rem); border-top: 3px solid var(--gallery-accent); background: linear-gradient(180deg, var(--gallery-tint), #fffaf3 38rem); }
.gallery-group:last-child { padding-bottom: 0; }
.gallery-group > .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.65rem; padding: 1.1rem clamp(.8rem, 2vw, 1.5rem); border-inline-start: 4px solid var(--gallery-detail); background: var(--gallery-tint); background: linear-gradient(110deg, color-mix(in srgb, var(--gallery-accent) 16%, var(--gallery-tint)), var(--gallery-tint) 78%); }
.gallery-group > .section-head h3 { margin: 0; color: var(--gallery-accent); font-size: clamp(1.65rem, 3.3vw, 2.35rem); line-height: 1.2; }
.gallery-group > .section-head .gallery-count { margin-inline-start: .65rem; background: #fffaf3; border-color: transparent; }
.gallery-group > .section-head a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gallery-accent); font: 600 .9rem/1.4 var(--font-body); text-underline-offset: .25em; }
:is(.gallery-group,.occasion-designs) .occasion-template-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: stretch; gap: 2rem 1.5rem; }
:is(.gallery-group,.occasion-designs) .occasion-template-card { display: flex; flex-direction: column; min-width: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:is(.gallery-group,.occasion-designs) .template-preview-window { flex: 0 0 auto; width: 100%; border: 1px solid #d8c8ae; border-radius: .6rem .6rem 1.75rem .6rem; box-shadow: 0 .9rem 1.8rem -1.5rem #142536b3; }
:is(.gallery-group,.occasion-designs) .template-card-copy { display: flex; flex-direction: column; flex: 1; padding: 1.1rem .1rem 0; }
.template-card-copy :is(h3,h4) { overflow-wrap: anywhere; }
:is(.gallery-group,.occasion-designs) .template-card-copy :is(h3,h4) { color: #293a36; font-size: clamp(1.35rem, 2.1vw, 1.65rem); line-height: 1.24; }
:is(.gallery-group,.occasion-designs) .template-card-copy p { color: #55615d; font-size: .91rem; line-height: 1.65; }
:is(.gallery-group,.occasion-designs) .template-card-actions { margin-top: auto; padding-top: .9rem; gap: .4rem; }
:is(.gallery-group,.occasion-designs) .template-card-actions .btn-outline { border-color: var(--gallery-accent); color: #fff; background: var(--gallery-accent); }
:is(.gallery-group,.occasion-designs) .template-card-actions .btn-outline:hover { background: color-mix(in srgb, var(--gallery-accent) 86%, #000); border-color: color-mix(in srgb, var(--gallery-accent) 86%, #000); color: #fff; }
:is(.gallery-group,.occasion-designs) .template-card-actions .text-link { color: var(--accent); }
.occasion-collection-intro { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; background: var(--gallery-tint); background: linear-gradient(110deg, color-mix(in srgb, var(--gallery-accent) 16%, var(--gallery-tint)), var(--gallery-tint) 78%); border-top: 4px solid var(--gallery-detail); border-bottom: 1px solid var(--gallery-accent); }
.occasion-collection-intro :is(h1,h2), .occasion-collection-intro .premium-eyebrow { color: var(--gallery-accent); }
.occasion-collection-intro p { color: #34403b; }
.occasion-collection-intro .breadcrumb { margin-top: 0; }
.occasion-collection-intro .sibling-nav { margin-bottom: 1rem; }
.page-occasion .occasion-designs { padding-top: 2rem; background: linear-gradient(180deg, var(--gallery-tint), #fffaf3 30rem); }
.occasion-designs > .wrap > .section-head { padding-inline-start: 1rem; border-inline-start: 4px solid var(--gallery-detail); }
.occasion-designs > .wrap > .section-head h2 { color: var(--gallery-accent); }
a.collection-link { position: relative; min-width: 44px; min-height: 44px; text-decoration: none; touch-action: manipulation; }
.occasion-scene.collection-link { display: block; color: inherit; }
.palette-sheet.preview-link { position: relative; }
.collection-title-link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; text-underline-offset: .2em; }
.collection-title-link:hover { text-decoration: underline; }
.collection-link .preview-tap { position: absolute; z-index: 5; inset-inline: .8rem; bottom: .8rem; display: grid; place-items: center; min-height: 44px; padding: .6rem .65rem; border: 1px solid #fff7; border-radius: .8rem; background: #102630ed; color: #fff5dc; font: 700 .78rem/1.35 var(--font-body); text-align: center; pointer-events: none; box-shadow: 0 .3rem 1rem #0004; }
.collection-link:hover .preview-tap, .collection-link:focus-visible .preview-tap, .preview-link:focus-visible .preview-tap { background: #254b53; border-color: #fff3bf; }
:is(.invitation-gallery,.occasion-designs,.occasion-collection-intro) a:focus-visible, a.collection-link:focus-visible, a.collection-title-link:focus-visible { outline: 3px solid #174f80; outline-offset: 4px; }
:is(.invitation-gallery,.occasion-designs) a.preview-link:focus-visible, a.collection-link:focus-visible { box-shadow: 0 0 0 3px #fffaf3; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.gallery-group,.occasion-designs) .template-preview-window .story-thumbnail { transition: transform 350ms var(--ease); }
  :is(.gallery-group,.occasion-designs) .template-preview-window:is(:hover,:focus-visible) .story-thumbnail { transform: scale(1.025); }
}
@media (max-width: 600px) {
  .gallery-nav { gap: .55rem; margin-bottom: 2rem; }
  .gallery-nav > :is(a,[data-lang]) { flex: 1 1 calc(50% - .55rem); }
  .gallery-nav > [data-lang] > a { width: 100%; height: 100%; }
  .gallery-nav a { padding: .65rem .75rem; font-size: .8rem; }
  .gallery-group > .section-head { padding-inline-start: .8rem; gap: .4rem .8rem; }
  :is(.gallery-group,.occasion-designs) .occasion-template-grid { gap: 2.2rem 1rem; }
  :is(.gallery-group,.occasion-designs) .template-preview-window { aspect-ratio: 4 / 5; }
  :is(.gallery-group,.occasion-designs) .template-opening-symbol { top: 38%; }
  .gallery-group .template-card-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.gallery-group,.occasion-designs) .template-preview-window .story-thumbnail { transform: none; transition: none; }
}
@media (forced-colors: active) {
  .gallery-nav a, .gallery-group > .section-head .gallery-count { background: Canvas; color: LinkText; border: 1px solid LinkText; }
  .gallery-nav a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -4px; }
  .gallery-group, .occasion-collection-intro, .page-occasion .occasion-designs, .gallery-group > .section-head { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .gallery-nav a:is(:hover,[aria-current="page"]), :is(.gallery-group,.occasion-designs) .template-card-actions .btn-outline, :is(.gallery-group,.occasion-designs) .template-card-actions .btn-outline:hover { color: LinkText; background: Canvas; border-color: LinkText; }
  .occasion-collection-intro p, .occasion-collection-intro .premium-eyebrow, .occasion-designs > .wrap > .section-head h2 { color: CanvasText; }
  .occasion-designs > .wrap > .section-head { border-color: CanvasText; }
  .gallery-group > .section-head a, :is(.gallery-group,.occasion-designs) .template-card-actions .text-link { color: LinkText; }
  .gallery-group > .section-head h3, .occasion-collection-intro :is(h1,h2), :is(.gallery-group,.occasion-designs) .template-card-copy :is(h3,h4) { color: CanvasText; }
  .template-opening-symbol, [data-opening-kind] .template-opening-symbol { background: Canvas; border: 2px solid CanvasText; box-shadow: none; }
  .template-opening-symbol::before, [data-opening-kind] .template-opening-symbol::before { border-color: CanvasText; }
  .template-opening-symbol::after, [data-opening-kind] .template-opening-symbol::after { background: Canvas; color: CanvasText; text-shadow: none; border-color: CanvasText; }
  .collection-link .preview-tap { background: Canvas; color: LinkText; border-color: LinkText; box-shadow: none; }
  :is(.invitation-gallery,.occasion-designs,.occasion-collection-intro) a:focus-visible, a.collection-link:focus-visible, a.collection-title-link:focus-visible { outline-color: Highlight; }
}
@media print {
  .gallery-nav { display: none; }
  .gallery-group { break-before: auto; padding-top: 1.5rem; }
  .gallery-group, .occasion-collection-intro, .page-occasion .occasion-designs, .gallery-group > .section-head { background: #fff; color: #000; border-color: #777; }
  .gallery-group > .section-head :is(h3,a,.gallery-count), .occasion-collection-intro :is(h1,h2,p,.premium-eyebrow), .occasion-designs > .wrap > .section-head h2, :is(.gallery-group,.occasion-designs) .template-card-actions .text-link { color: #000; }
  .occasion-designs > .wrap > .section-head { border-color: #777; }
  :is(.gallery-group,.occasion-designs) .template-card-actions .btn-outline, :is(.gallery-group,.occasion-designs) .template-card-actions .btn-outline:hover { color: #000; background: #fff; border-color: #000; box-shadow: none; }
  .occasion-template-card { break-inside: avoid; }
  .collection-link .preview-tap { display: none; }
}
.cinematic-thumbnail { background:#10151b; } .cinematic-thumbnail img { width:100%; height:100%; display:block; object-fit:cover; object-position:50% 48%; } .story-template-arrival:has(.cinematic-thumbnail) { background:#10151b; }

/* Original photographic covers stay unobscured; one shared silent video is mounted only on a visible card. */
.photographic-gallery-media { display: block; position: absolute; inset: 0; overflow: hidden; background: #152225; pointer-events: none; }
.photographic-gallery-poster, .photographic-gallery-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.photographic-gallery-video { opacity: 0; pointer-events: none; }
.is-gallery-playing .photographic-gallery-video { opacity: 1; }
:is(.gallery-group,.occasion-designs) .template-preview-window:has(.photographic-gallery-media) { aspect-ratio: 2 / 3; border-radius: .75rem; border-color: #b8aa9466; box-shadow: 0 1rem 2rem -1.4rem #14253680; }
.template-preview-window:has(.photographic-gallery-media)::after { inset: auto 0 0; height: 5.5rem; background: linear-gradient(transparent, #08131685); }
.template-preview-window:has(.photographic-gallery-media) .preview-tap { left: .7rem; right: .7rem; bottom: .65rem; width: fit-content; max-width: calc(100% - 1.4rem); min-height: 44px; margin-inline: auto; padding: .55rem .85rem; border-radius: 999px; border-color: #ffffff75; background: #16282dcc; box-shadow: none; font-size: .75rem; }
.template-title-link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; text-underline-offset: .2em; }
.template-title-link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .photographic-gallery-video { display: none; } }
@media (forced-colors: active) {
  .template-preview-window:has(.photographic-gallery-media) .preview-tap { color: LinkText; background: Canvas; border-color: LinkText; }
}
@media print { .photographic-gallery-video { display: none !important; } }

/* Original invitation styles remain fully visible beneath the newer cinematic collection. */
.original-occasion-examples { margin-top: clamp(2.8rem, 6vw, 4.5rem); padding-top: clamp(1.8rem, 4vw, 2.8rem); border-top: 1px solid #bba88a; }
.original-style-heading { max-width: 44rem; margin-bottom: 1.75rem; }
.original-style-heading > :is(h2,h4) { margin: .35rem 0 .65rem; color: var(--gallery-accent); font: 400 clamp(1.85rem, 3.5vw, 2.55rem)/1.2 var(--font-display); }
.original-style-heading > p:last-child { max-width: 39rem; color: #526058; line-height: 1.65; }
.original-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.original-preview-card { min-width: 0; overflow: hidden; border: 1px solid #d8c8ae; border-radius: .9rem; background: #fffaf3; box-shadow: 0 1rem 2rem -1.7rem #35251860; }
.original-preview-art { min-width: 0; }
.original-preview-art > [data-lang] { display: block; }
.original-preview-picture { position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; isolation: isolate; background: #eee5d8; color: #fff; text-decoration: none; }
.original-preview-picture > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.original-preview-treatment-envelope > img { object-fit: contain; }
.original-preview-picture > .preview-tap { position: absolute; z-index: 3; inset-inline: 1rem; bottom: 1rem; display: grid; place-items: center; width: fit-content; max-width: calc(100% - 2rem); min-height: 44px; margin-inline: auto; padding: .6rem 1rem; border: 1px solid #fff9; border-radius: 999px; background: #1c2e2bef; color: #fff; font: 650 .8rem/1.3 var(--font-body); text-align: center; }
.original-preview-copy { padding: clamp(1.2rem, 2.5vw, 2rem); }
.original-preview-edition { margin: 0 0 .65rem; color: var(--gallery-accent); font: 650 .66rem/1.4 var(--font-body); letter-spacing: .14em; }
.original-preview-copy :is(h3,h5) { margin: 0 0 .8rem; font: 400 clamp(1.45rem, 2.7vw, 2rem)/1.2 var(--font-display); overflow-wrap: anywhere; }
.original-preview-title { color: #293a36; text-decoration: none; }
.original-preview-title:hover { text-decoration: underline; text-underline-offset: .2em; }
.original-preview-copy > p:not(.original-preview-edition) { color: #526058; font-size: .94rem; line-height: 1.7; }
.original-preview-actions { margin-top: 1rem; }
.original-preview-actions .btn { min-height: 44px; border-color: var(--gallery-accent); background: var(--gallery-accent); color: #fff; }
.original-scene-peek { position: relative; overflow: hidden; margin: 1.5rem 0 0; border-radius: .55rem; aspect-ratio: 16 / 9; background: #14231f; }
.original-scene-peek img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 40%; }
.original-scene-peek figcaption { position: absolute; inset: auto 0 0; padding: 1.3rem .8rem .7rem; color: #fff; background: linear-gradient(transparent, #0a1515e8); font: 500 .77rem/1.4 var(--font-body); }
.original-photo-caption { position: absolute; inset: auto 0 0; display: grid; gap: .4rem; padding: 4rem 1.1rem 5.1rem; text-align: center; background: linear-gradient(transparent, #102c45ed 50%); color: #fff5d9; }
.original-photo-caption small { font: 600 .63rem/1.4 var(--font-body); letter-spacing: .2em; }
.original-photo-caption strong { font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.2 var(--font-display); }

.original-preview-picture.original-preview-treatment-card { margin: 0; padding: 1.2rem 1.2rem 9.8rem; border: 0; border-radius: 0; background: #f3e8d7; box-shadow: none; }
.original-preview-picture.original-preview-treatment-card > img { height: 100%; object-position: top; border-radius: 50% 50% .25rem .25rem; }
.original-preview-picture.original-preview-treatment-card .original-photo-caption { padding: 1rem 1rem 5.1rem; background: none; color: #3d473e; }
.original-preview-featured { grid-template-columns: minmax(0,1fr); }
.original-preview-featured > .original-preview-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: center; background: linear-gradient(130deg, #fffaf3, var(--gallery-tint)); }
.original-preview-featured .original-preview-copy { padding: clamp(1.4rem, 4vw, 3rem); }
.original-preview-featured .original-preview-picture { border-inline-end: 1px solid #d8c8ae; }
@media (max-width: 800px) { .original-preview-grid:not(.original-preview-featured) { grid-template-columns: repeat(2,minmax(0,1fr)); } .original-preview-featured > .original-preview-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media (max-width: 600px) { .original-preview-grid, .original-preview-grid:not(.original-preview-featured), .original-preview-featured > .original-preview-card { grid-template-columns: minmax(0,1fr); } .original-preview-featured .original-preview-picture { border-inline-end: 0; border-bottom: 1px solid #d8c8ae; } .original-preview-copy { padding: 1.4rem; } }
@media (forced-colors: active) { .original-preview-card, .original-preview-picture, .original-preview-actions .btn { border-color: CanvasText; } .original-preview-picture > .preview-tap, .original-photo-caption, .original-scene-peek figcaption { background: Canvas; color: CanvasText; } }
.original-style-heading > :is(h2,h4) { scroll-margin-top: 8rem; }

/* Exact selection remains beside the package and price throughout discovery. */
.selected-package-design { margin-block: 1.2rem; padding: 1rem 1.2rem; border: 1px solid currentColor; border-radius: .75rem; }
.selected-package-design h2, .selected-package-design p { margin: 0 0 .45rem; }
.selected-package-design .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Customer envelope appearance fields; names and pricing remain separate. */
.envelope-color-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.envelope-color-fields input[type=color] { width:54px; height:44px; padding:3px; display:block; margin-top:8px; cursor:pointer; }
@media(max-width:620px) { .envelope-color-fields { grid-template-columns:1fr; } }

.envelope-studio-link{display:inline-flex;min-height:44px;align-items:center;padding:5px 12px;margin-top:8px}
.photo-backdrop { display: flex; flex: 1 1 100%; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.photo-backdrop input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }

/* The gender reveal poll on the organizer page (organizer.ts revealPollSection; reveal-poll.ts). Each answer's colour is
   a palette token (data-poll-tone) with the same soft swatch as on the invitation. */
.reveal-poll-host [data-poll-tone="rosa-dorada"] { --poll-tone: #E7B3BC; }
.reveal-poll-host [data-poll-tone="noche-azul"] { --poll-tone: #9AAEE3; }
.reveal-poll-host [data-poll-tone="jardin-esmeralda"] { --poll-tone: #A8D5BA; }
.reveal-poll-host [data-poll-tone="marfil-oro"] { --poll-tone: #E8D3A8; }
.reveal-poll-host [data-poll-tone="azul-cielo"] { --poll-tone: #A9C8E6; }
.reveal-poll-host [data-poll-tone="lavanda"] { --poll-tone: #C9B0E3; }
.reveal-poll-host [data-poll-tone="borgona"] { --poll-tone: #D48A9B; }
.reveal-poll-host [data-poll-tone="terracota-deco"] { --poll-tone: #D99A82; }
.reveal-poll-host [data-poll-tone="salvia-olivo"] { --poll-tone: #C5D1A8; }
.reveal-poll-host [data-poll-tone="rosa-palo"] { --poll-tone: #F0B7C4; }
.reveal-poll-host [data-poll-tone="champan"] { --poll-tone: #E6CCB8; }
.reveal-poll-host [data-poll-tone="lila-mariposa"] { --poll-tone: #D6B3E1; }
.reveal-poll-host [data-poll-tone="azul-rey"] { --poll-tone: #8FA6EE; }
.reveal-poll-host [data-poll-tone="rojo-rubi"] { --poll-tone: #EA7286; }
.reveal-poll-host [data-poll-tone="negro-oro"] { --poll-tone: #D4B66F; }
.reveal-poll-host [data-poll-tone="fucsia-fiesta"] { --poll-tone: #F07BB1; }
.reveal-poll-host [data-poll-tone="durazno"] { --poll-tone: #F5A383; }
.reveal-poll-host [data-poll-tone="turquesa"] { --poll-tone: #7CCFC9; }
.reveal-poll-host [data-poll-tone="linterna"] { --poll-tone: #F4B15A; }
.reveal-poll-host [data-poll-tone="navidad"] { --poll-tone: #D99AA8; }
.reveal-poll-host .poll-host-state { font-weight: 600; }
.reveal-poll-host .poll-host-counts { display: grid; gap: 0.5rem; }
.reveal-poll-host .poll-bar { display: block; width: 100%; height: 18px; border-radius: 999px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.reveal-poll-host .poll-bar-part { fill: var(--poll-tone, var(--accent)); }
.reveal-poll-host .poll-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; }
.reveal-poll-host .poll-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.reveal-poll-host .poll-swatch { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--poll-tone, var(--accent)); border: 1px solid rgba(30, 26, 29, 0.2); }
.reveal-poll-host .poll-host-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; max-height: 18rem; overflow: auto; }
.reveal-poll-host .poll-host-names li { border-left: 4px solid var(--poll-tone, var(--line)); padding: 0.15rem 0 0.15rem 0.6rem; overflow-wrap: anywhere; }
.reveal-poll-host .poll-host-form .field input, .reveal-poll-host .poll-host-form .field select { width: 100%; }
.choice-line { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; }
.choice-line input { width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--accent); }

/* Page not found (product server, status 404): the storefront shell, a short message and three ways back. */
.notfound { padding-block: clamp(3rem, 10vw, 6.5rem); text-align: center; }
.notfound .eyebrow { color: var(--accent); }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 0.75rem; }
.notfound .lead { max-width: 34rem; margin-inline: auto; color: var(--muted); }
.notfound-actions { justify-content: center; }
.notfound-actions > [data-lang] { display: contents; }
@media (max-width: 480px) { .notfound-actions .btn { flex: 1 1 100%; } }


/* Studio: the new-invitation form one simple step at a time (built by storefront.js; without it the form stays whole).
   Large text and buttons, progress always visible, Back / Next never move, and a live phone preview beside the form. */
.intake .wrap.narrow:has(.studio-shell) { max-width: 1140px; }
.studio-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.studio-shell > .intake-form { margin-top: 0; }
.studio-on .studio-step { display: grid; gap: 1.2rem; }
.studio-on .studio-step[hidden] { display: none; }
.studio-step-head { display: grid; gap: .35rem; }
.studio-step-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.1; margin: 0; color: var(--ink); }
.studio-step-title:focus { outline: none; }
.studio-step-intro { margin: 0; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.studio-on { font-size: 1.05rem; }
.studio-on input:not([type=checkbox]):not([type=radio]):not([type=color]), .studio-on select, .studio-on textarea { min-height: 48px; font-size: 1.05rem; }
.studio-progress { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: grid; gap: .55rem; padding: .85rem 0 .75rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.studio-progress-label { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.studio-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.studio-bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.studio-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; }
.studio-chip { min-height: 40px; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .9rem/1.2 var(--font-body); white-space: nowrap; cursor: pointer; }
.studio-chip[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.studio-chip:focus-visible, .studio-nav .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.studio-nav { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0 calc(.9rem + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.studio-nav .btn { min-height: 56px; min-width: 9rem; font-size: 1.15rem; }
.studio-nav .btn[disabled] { opacity: .45; cursor: default; }
.studio-on .form-actions .btn { min-height: 56px; font-size: 1.15rem; }
.studio-save { display: grid; justify-items: start; gap: .65rem; margin: 1rem 0; }
.studio-save > .btn { min-height: 56px; font-size: 1.05rem; }
.studio-preview { position: sticky; top: 1rem; display: grid; gap: .6rem; justify-items: center; }
.studio-preview-label { margin: 0; font-weight: 700; color: var(--gold-text); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.studio-phone { width: 100%; max-width: 280px; aspect-ratio: 9 / 18; border-radius: 36px; padding: 11px; background: var(--phone-frame); box-shadow: 0 24px 50px -24px rgba(30, 20, 40, .55); }
.studio-scene { position: relative; height: 100%; border-radius: 26px; border: 0; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 1.2rem; text-align: center; overflow: hidden; }
.studio-envelope { position: relative; width: 78%; aspect-ratio: 3 / 2.1; border-radius: 8px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); background: #F1E8D9; }
.studio-envelope::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 58%; background: inherit; filter: brightness(.93); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 8px 8px 0 0; }
.studio-seal { position: absolute; left: 50%; top: 58%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; font: 600 1rem/1 var(--font-display); background: #B88B3F; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), 0 3px 8px rgba(0, 0, 0, .3); }
.studio-name { margin: .4rem 0 0; font: 400 1.6rem/1.1 var(--font-script); color: #3A1F2B; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); overflow-wrap: anywhere; }
.studio-date { margin: 0; font: 600 .85rem/1 var(--font-body); letter-spacing: .12em; color: #3A1F2B; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .studio-shell { grid-template-columns: 1fr; }
  .studio-preview { position: static; order: -1; }
  .studio-phone { max-width: 200px; }
}
@media (max-width: 520px) {
  .studio-nav .btn { min-width: 0; flex: 1 1 0; }
  .studio-phone { max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) { .studio-bar > i { transition: none; } }

/* Two ways to start an invitation, using the same existing packages and editor. */
.starting-paths { max-width: 52rem; margin-block: 1.2rem; }
.starting-paths .hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.starting-paths .btn-light { background: transparent; border: 1px solid currentColor; color: inherit; }
.custom-background { scroll-margin-top: 6rem; }
.background-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.background-grid-single { max-width: 22rem; grid-template-columns: 1fr; }
.background-choice { display: flex; min-width: 0; flex-direction: column; gap: .65rem; padding: 12px; border: 1px solid #b08a3e77; border-radius: 16px; background: #fff; color: #3c1025; text-decoration: none; }
.background-choice:hover, .background-choice[aria-current="true"] { border-color: #8d682b; box-shadow: 0 0 0 2px #b08a3e; }
.background-choice:focus-visible { outline: 3px solid #8d682b; outline-offset: 4px; }
.background-preview { display: block; width: 100%; height: auto; border-radius: 10px; }
.background-choice-name { font-weight: 650; }
.background-choice-action { text-decoration: underline; text-underline-offset: .2em; }
.background-selection-status { min-height: 1.5em; font-weight: 650; }
.background-ornament { padding: 1rem; }
@media (max-width: 720px) { .background-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .background-grid-single { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .background-grid { grid-template-columns: 1fr; } }
/* Original illustrative backgrounds. Every motion layer remains a visible still until the shared observer enables it. */
svg.background-scene { --background-float-duration: 10s; --background-sway-duration: 12s; --background-drift-duration: 16s; --background-light-duration: 7s; display: block; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
svg.background-scene [data-motion-part] { transform-box: fill-box; transform-origin: center; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: paused; }
svg.background-scene [data-motion-part="float"] { animation-name: vf-background-float; animation-duration: var(--background-float-duration); }
svg.background-scene [data-motion-part="sway"] { animation-name: vf-background-sway; animation-duration: var(--background-sway-duration); }
svg.background-scene [data-motion-part="drift"] { animation-name: vf-background-drift; animation-duration: var(--background-drift-duration); }
svg.background-scene [data-motion-part="twinkle"] { animation-name: vf-background-light; animation-duration: var(--background-light-duration); }
svg.background-scene [data-motion-part]:nth-of-type(2n) { animation-delay: -3s; }
svg.background-scene [data-motion-part]:nth-of-type(3n) { animation-delay: -5s; }
svg.background-scene[data-motion-active="true"] [data-motion-part] { animation-play-state: running; }
@keyframes vf-background-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -6px, 0); } }
@keyframes vf-background-sway { from { transform: rotate(-1deg); } to { transform: rotate(1.5deg); } }
@keyframes vf-background-drift { from { transform: translate3d(-3px, 0, 0); } to { transform: translate3d(5px, -2px, 0); } }
@keyframes vf-background-light { from { opacity: .62; } to { opacity: 1; } }
.background-motion-control { position: relative; z-index: 2; max-width: 100%; min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--line, #C8B98E); border-radius: 999px; background: var(--surface, #FFFFFF); color: var(--ink, #293458); font: inherit; font-size: .85rem; line-height: 1.25; cursor: pointer; }
.background-motion-control:hover { border-color: var(--gold, #A28045); }
.background-motion-control:focus-visible { outline: 3px solid var(--focus, #A28045); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  svg.background-scene [data-motion-part], svg.background-scene[data-motion-active="true"] [data-motion-part] { animation: none !important; transform: none !important; opacity: 1; }
}
@media print {
  svg.background-scene [data-motion-part], svg.background-scene[data-motion-active="true"] [data-motion-part] { animation: none !important; transform: none !important; opacity: 1; }
  .background-motion-control { display: none; }
}
.background-preview-stage { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; background: var(--bg, #F3E9DA); }
.background-preview-stage > svg.background-scene { position: absolute; inset: 0; }
.background-preview-content { position: relative; z-index: 1; display: grid; min-height: 100%; align-content: center; justify-items: center; gap: .55rem; padding: 2rem 1rem; text-align: center; pointer-events: none; overflow-wrap: anywhere; }
.background-preview-content > * { max-width: 100%; margin-block: 0; }.background-preview-stage[data-background-tone="dark"] .background-preview-content { color: #FFF6E8; }
.background-preview-stage[data-background-tone="light"] .background-preview-content { color: #293458; }
.background-preview-content strong { font-family: var(--font-display, Georgia, serif); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 500; line-height: 1.12; }
.background-preview-content small { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
/* Search head (search-head.ts): the short line that names the product ahead of a page's H1 title (live public build only). */
h1 .title-product { display: block; margin: 0 0 .45em; font-family: inherit; font-size: max(.78rem, .3em); font-weight: 600; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; opacity: .86; }
