/* Invo — landing. Azul marino (confianza) + verde (verificado). Sora en títulos, Inter en texto. */
:root {
  --ink: #13233f;
  --ink-deep: #0e1b30;
  --teal: #0e9f8a;
  --teal-text: #0a7a6a;
  --teal-dark: #0a6a5c;
  --teal-soft: #e3f4f1;
  --mint: #5fd3bf;
  --bg-soft: #f3f6fa;
  --line: #e2e7ee;
  --line-strong: #c9d2de;
  --text: #13233f;
  --muted: #4a5872;
  --muted-2: #5b6880;
  --warn: #c2410c;
  --warn-text: #9a3412;
  --warn-soft: #ffedd5;
  --error-text: #b91c1c;
  --error-soft: #fee2e2;
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 44px rgba(19, 35, 63, 0.1);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--teal-text); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
.section { padding-top: 96px; padding-bottom: 96px; }
.band { background: var(--bg-soft); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.teal { color: var(--teal-text); }
.teal-text { color: var(--teal-dark); }
.warn-text { color: var(--warn-text); }
.error-text { color: var(--error-text); }
.mint { color: var(--mint); }
svg { flex: none; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); }
.eyebrow-light { color: var(--mint); }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.015em; }
.h2-lg { font-size: 42px; line-height: 1.12; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.lead-light { font-size: 18px; color: #c3cee0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.section-title { max-width: 720px; margin-bottom: 36px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; text-decoration: none; border-radius: 12px; padding: 14px 22px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 35, 63, .2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.is-static { pointer-events: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-teal { background: var(--teal-text); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Navegación */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(19, 35, 63, .08); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav-logo { display: flex; margin-right: auto; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 54px; line-height: 1.08; letter-spacing: -.02em; }
.underline { background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 94% / 0% .16em; animation: underline 1s .9s var(--ease) forwards; }
.proof { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.proof li { display: flex; align-items: center; gap: 8px; }
.enter { animation: up .8s var(--d, 0s) var(--ease) both; }

/* El pase cuelga bajo el panel (sobre la actividad), sin tapar las tres cifras. */
.hero-visual { position: relative; padding: 0 40px 150px 0; }
.panel { background: #fff; border: 1px solid #dfe5ee; border-radius: 18px; box-shadow: 0 24px 60px rgba(19, 35, 63, .14); padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--teal-dark); background: var(--teal-soft); padding: 5px 10px; border-radius: 999px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: blink 1.4s ease-in-out infinite; }
.live-inline { display: inline-flex; align-items: center; gap: 6px; }
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.meter-track { height: 12px; border-radius: 999px; background: #e9eef4; overflow: hidden; display: flex; }
.meter-track.thin { height: 8px; }
.meter-fill { display: flex; width: 100%; height: 100%; }
.meter-fill .ink, .fill-ink { background: var(--ink); }
.meter-fill .warn { background: var(--warn); }
.fill-teal { background: var(--teal); }
.meter-track > span.grow { display: block; height: 100%; }
.meter-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted-2); }
.grow { transform-origin: left center; animation: grow 1.6s var(--d, .6s) var(--ease) both; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--bg-soft); border-radius: 12px; padding: 14px; }
.stat p { font-size: 12px; color: var(--muted-2); }
.stat strong { font-family: var(--font-display); font-size: 24px; }
.stat-teal { background: var(--teal-soft); }
.stat-teal p, .stat-teal strong { color: var(--teal-dark); }
.feed { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-top: 1px solid #eef1f5; border-radius: 8px; }
.feed-new { animation: flash 3s ease-out infinite; }
.feed-new.is-changing { opacity: 0; transform: translateY(-6px); }
.feed-new { transition: opacity .3s ease, transform .3s ease; }

.pass { position: absolute; right: 0; bottom: 0; width: 190px; background: var(--ink); border-radius: 28px; padding: 10px; box-shadow: 0 24px 50px rgba(19, 35, 63, .3); }
.pass-screen { background: #fff; border-radius: 20px; padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pass-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.qr-wrap { position: relative; display: flex; }
.scanline { position: absolute; left: -4px; right: -4px; height: 2px; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: scan 2.6s ease-in-out infinite; }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fff; background: var(--teal-text); padding: 6px 12px; border-radius: 999px; }
.float { animation: float 5s var(--float-delay, 0s) ease-in-out infinite; }
.pulse { animation: pulse 2.2s ease-out infinite; }

/* Cinta */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #33415a; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap; }
.marquee .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Pasos */
#como-funciona { display: flex; flex-direction: column; gap: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ink); padding-top: 20px; }
.steps li.is-last { border-top-color: var(--teal); }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 15px; }
.step-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--teal-text); }
.steps-progress { height: 4px; border-radius: 999px; background: #e9eef4; overflow: hidden; margin-top: -24px; }
.steps-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), var(--teal)); animation: progress 6s cubic-bezier(.4, 0, .2, 1) infinite; }

/* Bloques de dos columnas */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split-top { align-items: start; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { margin-top: 2px; }
.checklist-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; color: #e3e9f2; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.tags span { background: var(--bg-soft); padding: 8px 14px; border-radius: 10px; }

.card { background: #fff; border: 1px solid #dfe5ee; border-radius: 16px; box-shadow: var(--shadow); }
.card-head { padding: 16px 20px; border-bottom: 1px solid #eef1f5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.card-foot { padding: 14px 20px; border-top: 1px solid #eef1f5; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); }
.chip.is-active { background: var(--ink); color: #fff; }

.table-wrap { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted-2); padding: 10px 12px; }
.table td { padding: 11px 12px; border-top: 1px solid #eef1f5; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.row-warn { background: #fff7ed; }
.row-error { background: #fef2f2; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; animation: pop .5s var(--d, 0s) var(--ease) both; }
.badge-ok { color: var(--teal-dark); background: var(--teal-soft); }
.badge-warn { color: var(--warn-text); background: var(--warn-soft); }
.badge-error { color: var(--error-text); background: var(--error-soft); }
.rowscan { position: absolute; left: 0; right: 0; height: 42px; background: rgba(14, 159, 138, .08); border-top: 2px solid rgba(14, 159, 138, .5); pointer-events: none; animation: rowscan 3.4s ease-in-out infinite; }

.sending { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.sector { display: flex; flex-direction: column; gap: 6px; }
.sector-label { display: flex; justify-content: space-between; font-size: 13px; }
.split-reverse > :first-child { order: 0; }

.invite-map { height: 70px; border-radius: 10px; background: #e7edf4; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #33415a; font-family: var(--font-body); }
.upload { border: 1px dashed #b6c1cf; border-radius: 8px; padding: 10px; text-align: center; color: var(--muted); }

/* Modo diseñador (maqueta con evento de ejemplo) */
.design { display: flex; flex-direction: column; gap: 40px; }
.design-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.design-head .tags { max-width: 420px; }
.studio { border-radius: 18px; overflow: hidden; border: 1px solid #dfe5ee; box-shadow: 0 30px 70px rgba(19, 35, 63, .16); background: var(--bg-soft); }
.studio-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--ink-deep); color: #fff; font-size: 14px; }
.studio-exit { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #33415a; border-radius: 10px; }
.studio-title { font-family: var(--font-display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.studio-status { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-size: 13px; font-weight: 600; white-space: nowrap; }
.studio-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.studio-actions { display: flex; gap: 8px; margin-left: auto; }
.studio-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #33415a; border-radius: 10px; white-space: nowrap; }
.studio-btn-primary { background: var(--teal-text); border-color: var(--teal-text); font-weight: 600; }

.studio-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 20px; }
.studio-side { display: flex; flex-direction: column; gap: 16px; }
.studio-card { background: #fff; border: 1px solid #e2e7ee; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.studio-h { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.studio-row { display: flex; justify-content: space-between; align-items: center; }
.studio-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.studio-field label, .studio-label { font-weight: 600; color: var(--muted); }
.studio-field select { font: inherit; font-size: 14px; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; }
.studio-hint { font-size: 12px; color: var(--muted-2); }
.studio-swatches { display: flex; gap: 10px; }
.studio-swatches button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #c9d2de; background: var(--swatch); cursor: pointer; padding: 0; transition: transform .2s var(--ease); }
.studio-swatches button:hover { transform: scale(1.08); }
.studio-swatches button[aria-pressed="true"] { outline: 2px solid var(--teal); outline-offset: 3px; }
.studio-sections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.studio-sections li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e7ee; border-radius: 10px; }
.studio-sections li:nth-child(2) { animation: nudge 6s 1s var(--ease) infinite; }
.studio-grip { color: #9aa6b8; }

.studio-preview { background: #fff; border: 1px solid #e2e7ee; border-radius: 14px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.studio-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #e2e7ee; }
.studio-toggle { display: flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.studio-toggle button { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer; }
.studio-toggle button[aria-pressed="true"] { background: #fff; color: var(--teal-text); box-shadow: 0 1px 4px rgba(19, 35, 63, .12); }
/* La vista previa se corta abajo con un desvanecido, como una ventana con scroll. */
.studio-stage { position: relative; flex: 1 1 0; min-height: 560px; overflow: hidden; background: #eceff3; padding: 24px; }
.studio-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(236, 239, 243, 0), #eceff3); pointer-events: none; }
.studio-page { --page-bg: #ffffff; margin: 0 auto; max-width: 100%; width: 640px; background: var(--page-bg); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 18px; color: #2b3445; font-family: Georgia, "Times New Roman", serif; text-align: center; transition: width .5s var(--ease), background .5s ease; box-shadow: 0 6px 20px rgba(19, 35, 63, .08); }
.studio-page[data-font="sora"] { font-family: var(--font-display); }
.studio-page[data-font="inter"] { font-family: var(--font-body); }
.studio-stage.is-mobile .studio-page { width: 320px; padding: 14px; }

/* Selector de ejemplo (solo con JavaScript; sin él se ve el primer ejemplo) */
.studio-types { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e7ee; font-size: 14px; }
.js .studio-types { display: flex; }
.studio-types-label { font-weight: 600; color: var(--muted); margin-right: 4px; }
.studio-types button { font: inherit; font-weight: 600; color: var(--ink); background: var(--bg-soft); border: 1px solid transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.studio-types button:hover { border-color: var(--line-strong); }
.studio-types button[aria-pressed="true"] { background: var(--ink); color: #fff; }
[data-tpl][hidden] { display: none !important; }
.tpl { display: flex; flex-direction: column; gap: 16px; animation: up .5s var(--ease) both; }

/* Piezas comunes de la invitación */
.inv-card { background: #fff; border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 2px 10px rgba(19, 35, 63, .06); font-size: 15px; line-height: 1.5; }
.crest { color: #2b3445; }
.inv-caps { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #5b6880; }
.inv-muted { color: #5b6880; font-size: 14px; }
.inv-btn { background: #1f4d2a; color: #fff; border-radius: 10px; padding: 10px 20px; font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.inv-card .invite-map { width: 100%; }

/* Evento de gobierno: el cartel imita un flyer subido, por eso usa su propia tipografía */
.inv-host-name { font-size: 20px; font-weight: 700; color: #1d2433; }
.inv-poster { border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #f7f7f7 0%, #ececec 45%, #f8f8f8 46%, #efefef 100%); box-shadow: 0 2px 10px rgba(19, 35, 63, .06); font-family: var(--font-body); color: #1d2433; }
.inv-band { height: 34px; background-color: #3f9a4b; background-image: linear-gradient(45deg, #2c7a37 25%, transparent 25%, transparent 75%, #2c7a37 75%), linear-gradient(45deg, #2c7a37 25%, transparent 25%, transparent 75%, #2c7a37 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.inv-poster-body { padding: 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.inv-brand { display: flex; align-items: center; gap: 10px; text-align: left; }
.inv-brand .crest { color: #1d2433; }
.inv-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.inv-brand-tag { display: inline-block; margin-top: 4px; background: #1d2433; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.inv-brand-tag span { color: #f59e0b; letter-spacing: 0; }
.inv-poster-lead { font-size: 13px; line-height: 1.45; }
.inv-poster-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: #3f9a4b; max-width: 22ch; }
.inv-strip { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; background: #e3e3e3; border-radius: 12px; box-shadow: 0 4px 0 #c9c9c9; padding: 10px 12px; }
.inv-strip > div { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.inv-strip-date, .inv-strip-time { font-size: 9px; }
.inv-strip-date strong, .inv-strip-time strong { font-size: 30px; font-weight: 300; }
.inv-strip-place { border-left: 2px solid #1d2433; border-right: 2px solid #1d2433; margin: 0 10px; padding: 0 8px; font-size: 8px; gap: 2px; }
.inv-strip-place strong { font-size: 13px; font-weight: 800; color: #3f9a4b; }
.inv-poster-note { font-size: 11px; }
.inv-details { align-items: stretch; text-align: left; }
.inv-details ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inv-details li { display: flex; gap: 10px; align-items: flex-start; }
.inv-details svg { color: var(--teal-text); margin-top: 3px; }
.inv-link { color: var(--teal-text); text-decoration: underline; }
.inv-pass { gap: 12px; }
.inv-ok { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; padding: 10px; border-radius: 10px; background: #e6f4ea; color: #1f6b35; font-family: var(--font-body); font-weight: 600; font-size: 14px; }

/* Boda: la "foto" es un degradado cálido; se puede cambiar por una imagen con background-image. */
.inv-photo { position: relative; min-height: 440px; border-radius: 14px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 12px; padding: 28px 16px 26px; text-align: center;
  background:
    linear-gradient(180deg, rgba(25, 14, 6, 0) 25%, rgba(25, 14, 6, .7) 100%),
    radial-gradient(55% 40% at 72% 14%, rgba(255, 238, 205, .95), rgba(255, 238, 205, 0) 70%),
    radial-gradient(60% 55% at 28% 58%, rgba(140, 92, 58, .9), rgba(140, 92, 58, 0) 70%),
    linear-gradient(160deg, #ecd9bd 0%, #bf9168 45%, #5a3a25 100%); }
.inv-ornament { color: #fff; }
.inv-names { border: 1px solid rgba(255, 255, 255, .85); padding: 10px 18px; font-size: 26px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.inv-names-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.inv-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 320px; margin-top: 6px; }
.inv-countdown div { display: flex; flex-direction: column; align-items: center; }
.inv-countdown strong { font-size: 28px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.inv-countdown span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.inv-events { gap: 16px; }
.inv-events > div:not(.invite-map) { display: flex; flex-direction: column; gap: 4px; }
.inv-card svg:not(.crest) { color: #8a6a4a; }
.inv-details svg { color: var(--teal-text); }

/* Invitación angosta (vista Móvil o pantalla de celular) */
.studio-page { container-type: inline-size; }
@container (max-width: 380px) {
  .inv-poster-body { padding: 20px 12px; gap: 14px; }
  .inv-brand-name { font-size: 28px; }
  .inv-poster-title { font-size: 19px; }
  .inv-strip { padding: 8px; }
  .inv-strip-date strong, .inv-strip-time strong { font-size: 22px; }
  .inv-strip-place { margin: 0 6px; padding: 0 6px; font-size: 7px; }
  .inv-strip-place strong { font-size: 10px; }
  .inv-photo { min-height: 380px; padding: 22px 12px 20px; }
  .inv-names { font-size: 19px; padding: 8px 12px; }
  .inv-names-sub { font-size: 10px; }
  .inv-countdown strong { font-size: 22px; }
  .inv-countdown span { font-size: 8px; }
}

.trace-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.trace { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.trace-step { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #dfe5ee; transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s var(--ease); }
.trace-step.is-on { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.05); }
.trace-final.is-on { background: var(--teal-text); border-color: var(--teal-text); }
.table-trace { font-size: 14px; min-width: 760px; }
.table-trace td { padding-top: 14px; padding-bottom: 14px; }

/* Sección oscura: escáner */
.dark { background: var(--ink-deep); color: #fff; }
.devices { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 10px; color: #c3cee0; font-size: 14px; }
.devices span { display: flex; align-items: center; gap: 8px; }
.devices svg { color: #fff; }
.scanner-wrap { display: flex; justify-content: center; }
.scanner { width: 300px; background: #1b2c48; border-radius: 40px; padding: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.scanner-screen { background: #08111f; border-radius: 30px; padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scanner-label { font-size: 13px; color: #9fb0c8; }
.viewfinder { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; }
.corner { position: absolute; width: 40px; height: 40px; border: 0 solid var(--mint); }
.corner.tl { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-radius: 10px 0 0 0; }
.corner.tr { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-radius: 0 10px 0 0; }
.corner.bl { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-radius: 0 0 0 10px; }
.corner.br { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-radius: 0 0 10px 0; }
.sweep { position: absolute; left: 14px; right: 14px; height: 3px; background: var(--mint); border-radius: 2px; box-shadow: 0 0 14px var(--mint); animation: sweep 4s ease-in-out infinite; }
.scan-result { width: 100%; background: var(--teal-text); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; animation: result 4s ease-in-out infinite; }
.scan-result .small { color: #d8f3ee; }
.scan-ok { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--teal-text); display: flex; align-items: center; justify-content: center; }

/* Para quién y caso */
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.audience { border: 1px solid #dfe5ee; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.audience:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(19, 35, 63, .12); border-color: var(--teal); }
.audience h3 { font-size: 18px; }
.audience p { color: var(--muted); font-size: 15px; }
.case-section { padding-bottom: 96px; }
.case { background: var(--bg-soft); border-radius: 20px; padding: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.case-copy { display: flex; flex-direction: column; gap: 16px; }
.quote { font-family: var(--font-display); font-size: 26px; line-height: 1.35; font-weight: 600; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-stats div { background: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.case-stats strong { font-family: var(--font-display); font-size: 30px; }
.case-stats span { font-size: 13px; color: var(--muted); }

/* Contacto */
.contact { background: var(--ink); color: #fff; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-mail { display: flex; align-items: center; gap: 10px; }
.contact-mail a { color: #fff; }
.contact-form { background: #fff; color: var(--ink); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 159, 138, .2); }
.field textarea { resize: vertical; }
.form-errors { grid-column: 1 / -1; background: var(--error-soft); color: var(--error-text); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted-2); text-align: center; }

.footer { background: var(--ink-deep); color: #9fb0c8; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 40px; padding-bottom: 40px; }
.footer img { height: 30px; width: auto; }

.wa-float { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; background: var(--teal-text); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 40; box-shadow: 0 10px 28px rgba(19, 35, 63, .3); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.08); }

/* Aparición al hacer scroll (solo con JavaScript; sin él todo queda visible) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:not(.is-visible) .grow, .js .reveal:not(.is-visible) .badge { animation: none; opacity: 0; }

@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes underline { to { background-size: 100% .16em; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scan { 0%, 100% { top: 4%; } 50% { top: 94%; } }
@keyframes sweep { 0% { top: 8%; opacity: 1; } 45% { top: 88%; opacity: 1; } 52%, 100% { top: 88%; opacity: 0; } }
@keyframes result { 0%, 48% { opacity: 0; transform: translateY(10px) scale(.96); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 159, 138, .55); } 70% { box-shadow: 0 0 0 14px rgba(14, 159, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 159, 138, 0); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes rowscan { 0% { top: 40px; opacity: 0; } 10%, 85% { opacity: 1; } 100% { top: calc(100% - 42px); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes flash { 0%, 15% { background: var(--teal-soft); } 100% { background: rgba(227, 244, 241, 0); } }
@keyframes progress { 0% { width: 0; } 75%, 100% { width: 100%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nudge { 0%, 70%, 100% { transform: none; box-shadow: none; } 78%, 90% { transform: translate(6px, -3px); box-shadow: 0 10px 22px rgba(19, 35, 63, .14); border-color: var(--teal); } }

/* Tablet y celular */
@media (max-width: 960px) {
  .hero-grid, .split, .case { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .split { gap: 40px; }
  .split-reverse > :first-child { order: 2; }
  .steps, .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-progress { display: none; }
  .case { padding: 32px; }
  .studio-body { grid-template-columns: minmax(0, 1fr); }
  .studio-side { order: 2; }
  .studio-hide-md { display: none; }
  .studio-stage { flex: none; height: 520px; min-height: 0; }
}

@media (max-width: 760px) {
  .container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .nav { min-height: 64px; }
  .nav-logo img { height: 30px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: 0 16px 30px rgba(19, 35, 63, .1); display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #eef1f5; }
  .nav-links .btn { margin-top: 14px; }
  .hero h1 { font-size: 33px; line-height: 1.12; }
  .lead { font-size: 16px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { width: 100%; }
  .hero-visual { padding: 0; display: flex; flex-direction: column; align-items: flex-end; }
  .panel { padding: 18px; gap: 16px; width: 100%; }
  .pass { position: relative; right: auto; bottom: auto; margin-top: -22px; margin-right: 12px; }
  .stat strong { font-size: 20px; }
  .stats { gap: 8px; }
  .pass { width: 150px; border-radius: 22px; padding: 8px; }
  .pass-screen { padding: 12px 10px; border-radius: 16px; }
  .pass .qr-wrap svg { width: 90px; height: 90px; }
  .feed { display: none; }
  h2 { font-size: 26px; }
  .h2-lg { font-size: 28px; }
  .steps, .audiences, .checklist-2, .case-stats { grid-template-columns: minmax(0, 1fr); }
  .audiences { gap: 12px; }
  .case-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .case-stats div { padding: 12px; }
  .case-stats strong { font-size: 20px; }
  .quote { font-size: 20px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .design { gap: 28px; }
  .studio-hide-sm, .studio-status, .studio-card-sections { display: none; }
  .studio-bar { gap: 10px; padding: 10px 12px; font-size: 13px; }
  .studio-body { padding: 12px; gap: 12px; }
  .studio-preview-head { padding: 12px 14px; }
  .studio-stage { padding: 12px; height: 460px; }
  .studio-page { padding: 12px; }
  .inv-card { padding: 20px 14px; }
  .studio-types { padding: 10px 12px; }
  .studio-types-label { width: 100%; }
  .contact-copy .btn { width: 100%; }
  .wa-float { width: 56px; height: 56px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .underline { background-size: 100% .16em; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal:not(.is-visible) .grow, .js .reveal:not(.is-visible) .badge { opacity: 1; }
}
