/* Ascenso Digital v2.0.
   Todos los colores viven en :root. Marca: azul #052450 y acento cian #1AD5E9 (el cian solo sobre fondos azules: sobre blanco no se lee). */
:root {
  --brand: #052450;
  --brand-2: #0a3a78;
  --accent: #1ad5e9;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --ink: #0b1a33;
  --ink-2: #34425a;
  --muted: #64718a;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --soft: #e9eff7;
  --cta: var(--brand);
  --cta-hover: var(--brand-2);
  --cta-ink: #ffffff;
  --wa: #25d366;
  --wa-ink: #08361b;
  --ok: #15803d;
  --star: #f5a524;
  --radius: 10px;
  --radius-sm: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { fill: currentColor; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon-lg { width: 2rem; height: 2rem; }
.muted { color: var(--muted); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { flex: none; width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-primary:disabled { background: var(--line-strong); cursor: not-allowed; }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #20bd5a; }
.btn-sm { padding: .55rem .9rem; font-size: .875rem; }
.btn-lg { padding: 1rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-underline-offset: 3px; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 30px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }
.nav { position: fixed; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; gap: .25rem; padding: .75rem 20px 1.25rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(17, 24, 39, .08); }
.nav.is-open { display: flex; }
.nav a { padding: .7rem .25rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta, .nav .nav-cta:hover { margin-top: .5rem; padding: .7rem 1rem; color: var(--cta-ink); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.25rem; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav a { padding: 0; font-size: .95rem; }
  .nav .nav-cta, .nav .nav-cta:hover { margin: 0 0 0 .5rem; padding: .55rem .9rem; }
}

/* ---------- textos de sección ---------- */
.eyebrow { margin-bottom: .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); }
.lede { max-width: 60ch; margin-top: 1rem; font-size: 1.125rem; color: var(--ink-2); }
.section { padding-block: 4rem; }
@media (min-width: 960px) { .section { padding-block: 6rem; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.section-head p:not(.eyebrow) { margin-top: .75rem; font-size: 1.0625rem; color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }

/* ---------- 1. hero ---------- */
.hero { padding-block: 3.5rem 4rem; }
@media (min-width: 960px) { .hero { padding-block: 6rem; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr .85fr; gap: 4rem; } }
.hero h1 { max-width: 16ch; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); letter-spacing: -0.03em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-card { padding: 1.75rem; }
.hero-card-title { margin-bottom: 1rem; font-weight: 700; }
.feature-list { display: grid; gap: .9rem; }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; color: var(--ink-2); }
.feature-list strong { color: var(--ink); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--soft); color: var(--brand); }
.feature-icon svg { width: 16px; height: 16px; }

.compare { display: grid; gap: 1rem; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.compare-col { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-col h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.compare-col.is-ours { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.list { display: grid; gap: .7rem; }
.list li { display: flex; gap: .65rem; align-items: flex-start; }
.list svg { flex: none; width: 14px; height: 14px; margin-top: .35rem; }
.list-x li { color: var(--muted); }
.list-x svg { color: #9ca3af; }
.list-check svg { color: var(--ok); }
.list.small { gap: .5rem; font-size: .92rem; }

/* ---------- 2. demos ---------- */
.demo-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.demo { display: flex; flex-direction: column; gap: 1.1rem; }
.demo-head { display: flex; gap: 1rem; align-items: flex-start; }
.demo-head h3 { margin-bottom: .35rem; font-size: 1.125rem; }
.demo-head p { font-size: .95rem; color: var(--ink-2); }
.demo-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--soft); color: var(--brand); }
.demo-icon svg { width: 20px; height: 20px; }
.demo-note { margin-top: auto; font-size: .85rem; color: var(--muted); }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.5rem 1rem; text-align: center; color: var(--ink-2); border: 2px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: var(--bg-alt); }
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.is-compact { flex-direction: row; gap: .6rem; padding: .7rem 1rem; font-size: .92rem; }
.dropzone.is-compact .icon-lg { width: 1.2rem; height: 1.2rem; }
.gal-result { display: grid; gap: .85rem; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 8px; }
.seg button { padding: .4rem .75rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .14); }
.text-btn { padding: .25rem; font-size: .85rem; font-weight: 600; color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { color: var(--ink); }
/* Ventana de navegador simulada: las fotos subidas se ven como la galería de una web. */
.browser { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(17, 24, 39, .08); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: .5rem .75rem; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-bar span { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar p { flex: 1; min-width: 0; margin-left: .4rem; padding: .1rem .6rem; overflow: hidden; font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.browser-body { padding: .9rem; }
.browser-title { margin-bottom: .7rem; font-weight: 700; }
.gal-view { position: relative; display: grid; gap: .45rem; }
.gal-view button { display: block; min-height: 0; padding: 0; overflow: hidden; background: var(--bg-alt); border: 0; border-radius: 6px; cursor: zoom-in; }
.gal-view img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-view button:hover img { transform: scale(1.05); }
.gal-view[data-layout="mosaico"] { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; }
.gal-view[data-layout="mosaico"] button:first-child { grid-row: span 2; }
.gal-view[data-layout="mosaico"][data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal-view[data-layout="mosaico"][data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gal-view[data-layout="mosaico"]:not([data-count="3"]) button:first-child { grid-row: auto; }
.gal-view[data-layout="cuadricula"] { grid-template-columns: repeat(3, 1fr); }
.gal-view[data-layout="cuadricula"][data-count="1"] { grid-template-columns: 1fr; }
.gal-view[data-layout="cuadricula"][data-count="2"] { grid-template-columns: 1fr 1fr; }
.gal-view[data-layout="cuadricula"] button { aspect-ratio: 1; }
.gal-view[data-layout="carrusel"] { display: block; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track button { flex: 0 0 100%; aspect-ratio: 16 / 10; border-radius: 0; scroll-snap-align: start; }
.gal-arrow { position: absolute; top: calc(50% - .65rem); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--ink); background: rgba(255, 255, 255, .92); border: 0; border-radius: 50%; box-shadow: 0 2px 8px rgba(17, 24, 39, .2); transform: translateY(-50%); cursor: pointer; }
.gal-arrow svg { width: 13px; height: 13px; }
.gal-prev { left: .5rem; }
.gal-next { right: .5rem; }
.gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: .6rem; }
.gal-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color .2s, transform .2s; }
.gal-dots span.is-on { background: var(--ink); transform: scale(1.25); }

.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 44px; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field-row { display: grid; gap: .9rem; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form .btn { justify-self: start; }

.wa-chat { padding: 1rem; background: #efeae2; border-radius: var(--radius); }
.wa-bubble { max-width: 90%; margin-left: auto; padding: .6rem .8rem; font-size: .95rem; background: #d9fdd3; border-radius: 8px 8px 2px 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.demo .btn-wa { align-self: flex-start; }

.reviews { display: grid; gap: 1rem; }
.reviews-summary { display: flex; gap: .85rem; align-items: center; }
.g-mark { flex: none; width: 28px; height: 28px; color: var(--ink); }
.reviews-biz { font-weight: 700; }
.reviews-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }
.review-list { display: grid; gap: .75rem; }
.review { display: flex; gap: .75rem; font-size: .93rem; color: var(--ink-2); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); font-size: .75rem; font-weight: 700; color: var(--ink); }
.review-name { font-weight: 600; color: var(--ink); }
.rate { display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rate-q { font-weight: 600; }
.rate-stars { display: flex; gap: .25rem; }
.rate-stars button { padding: .25rem; background: none; border: 0; color: var(--line-strong); cursor: pointer; }
.rate-stars button svg { width: 28px; height: 28px; }
.rate-stars button.is-on { color: var(--star); }
.rate-msg { min-height: 1.4em; font-size: .9rem; color: var(--ink-2); }

/* ---------- 3. casos ---------- */
.cases { display: grid; gap: 3rem; }
.case { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) {
  .case { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .case:nth-child(even) .case-media { order: 2; }
}
.case-media { position: relative; }
.case-desktop { display: none; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(17, 24, 39, .08); }
.case-phone { width: min(220px, 62%); aspect-ratio: 9 / 16; margin: 0 auto; object-fit: cover; object-position: top; border: 6px solid var(--ink); border-radius: 22px; box-shadow: 0 10px 30px rgba(17, 24, 39, .12); }
@media (min-width: 700px) {
  .case-media { padding: 0 1.5rem 2rem 0; }
  .case-desktop { display: block; }
  .case-phone { position: absolute; right: 0; bottom: 0; width: 26%; margin: 0; border-width: 5px; border-radius: 18px; }
}
.case-kind { margin-bottom: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.case-body h3 { margin-bottom: .75rem; font-size: 1.5rem; }
.case-body > p:not(.case-kind) { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.25rem; }
.tags li { padding: .25rem .6rem; font-size: .8rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.case-badge { display: inline-block; margin-left: .4rem; padding: .1rem .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; color: #92400e; background: #fef3c7; border-radius: 5px; }
.case-soon { font-size: .92rem; font-weight: 600; color: var(--muted); }

/* ---------- diseños de ejemplo (perfiles) ---------- */
.section-dark { color: #f3f6fb; background: var(--brand); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .section-head p:not(.eyebrow) { color: #c3cfe0; }
.section-dark :focus-visible { outline-color: #fff; }
.tpl-grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; } }
@media (min-width: 960px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; } }
@media (max-width: 639px) {
  .tpl-grid-home { grid-auto-flow: column; grid-auto-columns: 84%; gap: 1rem; margin-inline: -20px; padding: 0 20px .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
  .tpl-grid-home::-webkit-scrollbar { display: none; }
  .tpl-grid-home > li { scroll-snap-align: start; }
}
.tpl { position: relative; display: grid; gap: .9rem; color: inherit; text-decoration: none; }
/* Mismo efecto al pasar el mouse que el catálogo original de /perfiles/, pero con capturas livianas en vez de iframes. */
.tpl-visual { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #031a3b; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; transition: transform .6s cubic-bezier(.16, 1, .3, 1), border-color .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s cubic-bezier(.16, 1, .3, 1); }
.tpl-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(.8); transition: filter .4s ease; }
.tpl-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 500; color: #fff; background: rgba(3, 16, 38, .74); opacity: 0; transition: opacity .4s ease; }
.tpl-overlay svg { width: 18px; height: 18px; }
.tpl:hover .tpl-visual, .tpl:focus-visible .tpl-visual { transform: scale(1.03); border-color: rgba(255, 255, 255, .2); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.tpl:hover img, .tpl:focus-visible img { filter: brightness(1); }
.tpl:hover .tpl-overlay, .tpl:focus-visible .tpl-overlay { opacity: 1; }
@media (hover: hover) { .tpl:hover .tpl-overlay { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }
.tpl:focus-visible { outline: none; }
.tpl:focus-visible .tpl-visual { outline: 2px solid #fff; outline-offset: 3px; }
.tpl-text { display: grid; gap: .2rem; }
.tpl-text strong { font-size: 1.02rem; color: #fff; }
.tpl-text span { font-size: .9rem; line-height: 1.5; color: #b7c3d6; }
.tpl-more { display: flex; justify-content: center; margin-top: 2.75rem; }
.btn-light { color: var(--brand); background: #fff; }
.btn-light:hover { background: #e3eaf5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.catalog { padding-top: 2rem; }
.catalog h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); letter-spacing: -0.03em; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 2rem; font-size: .92rem; color: #c3cfe0; text-decoration: none; }
.back-link:hover { color: #fff; }
.back-link svg { width: 11px; height: 11px; }
.tpl-filters { margin-bottom: .9rem; }
.tpl-count { margin-bottom: 1.75rem; font-size: .88rem; color: #9fb0c8; }
.section-dark .chip { color: #d1d5db; background: transparent; border-color: rgba(255, 255, 255, .2); }
.section-dark .chip:hover { border-color: rgba(255, 255, 255, .55); }
.section-dark .chip[aria-pressed="true"] { color: var(--brand); background: #fff; border-color: #fff; }

/* ---------- 4. soluciones ---------- */
.tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; padding-bottom: .25rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; font-weight: 600; white-space: nowrap; color: var(--ink-2); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; }
.tabs [role="tab"] svg { width: 15px; height: 15px; }
.tabs [role="tab"][aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.panel-intro { max-width: 70ch; margin-bottom: 1.25rem; color: var(--ink-2); }
.panel-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.25rem; font-size: .92rem; color: var(--ink-2); }
.panel-note svg { flex: none; width: 15px; height: 15px; margin-top: .25rem; }
.mini-demo { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.mini-demo h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.mini-demo h3 svg { flex: none; width: 17px; height: 17px; }
.mini-demo > p { font-size: .93rem; color: var(--ink-2); }
.gastro-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .gastro-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .gastro-wide { grid-column: 1 / -1; }
}

/* Mockup de celular para las cartas digitales (solo CSS, sin imágenes). */
.phone-stage { display: flex; justify-content: center; padding: 1.5rem 0 .75rem; background: radial-gradient(closest-side, #f4ede3, rgba(244, 237, 227, 0)); }
.phone { position: relative; flex: none; width: 248px; padding: 10px; background: #16181d; border-radius: 42px; box-shadow: inset 0 0 0 2px #2b2f38, 0 26px 50px rgba(17, 24, 39, .24), 0 6px 14px rgba(17, 24, 39, .12); }
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; z-index: 5; width: 74px; height: 21px; background: #050608; border-radius: 12px; transform: translateX(-50%); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 500px; overflow: hidden; background: #fbf7f1; border-radius: 32px; }
.phone-bar { padding: 50px 16px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-align: center; text-transform: uppercase; color: #7f1d1d; }
.phone .book { width: 204px; max-width: none; aspect-ratio: 2 / 3; margin: auto; }
.phone .book-controls { padding: .5rem 0 1.25rem; }

/* Carta tipo mazo: la carta de arriba se arrastra; las siguientes asoman detrás. */
.deck-view { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.deck-progress { display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; font-size: .66rem; font-weight: 600; color: var(--muted); }
.deck-track { flex: 1; height: 4px; overflow: hidden; background: #eadfce; border-radius: 99px; }
.deck-track i { display: block; width: 0; height: 100%; background: #7f1d1d; border-radius: 99px; transition: width .3s ease; }
.deck { position: relative; flex: 1; margin: 0 14px 14px; border-radius: 18px; }
.deck:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.deck.no-anim .deck-card { transition: none; }
.deck-card { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 10px 24px rgba(17, 24, 39, .14); transition: transform .3s ease, opacity .3s ease; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.deck-card.is-dragging { transition: none; cursor: grabbing; }
.deck-card img { flex: none; width: 100%; height: 112px; object-fit: cover; pointer-events: none; }
.deck-body { display: flex; flex: 1; flex-direction: column; gap: .1rem; padding: .55rem .8rem .75rem; }
.deck-cat { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b45309; }
.deck-body h4 { font-size: .98rem; }
.deck-desc { font-size: .76rem; line-height: 1.4; color: var(--muted); }
.deck-price { margin-top: .1rem; font-size: .95rem; font-weight: 800; }
.deck-stamp { position: absolute; top: 18px; padding: .15rem .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .9); border: 2px solid; border-radius: 6px; opacity: 0; pointer-events: none; }
.deck-yes { left: 12px; color: #15803d; transform: rotate(-12deg); }
.deck-no { right: 12px; color: #b91c1c; transform: rotate(12deg); }
/* Cantidad y botones dentro de cada carta. */
.deck-qty { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; font-size: .72rem; font-weight: 600; color: var(--ink-2); border-top: 1px dashed #e5ddd0; }
.qty { display: flex; align-items: center; gap: .55rem; }
.qty output { min-width: 1.1em; font-size: .95rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink); }
.qty-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; font-size: 1.05rem; font-weight: 700; line-height: 1; color: var(--ink); background: #f4efe7; border: 1px solid #e5ddd0; border-radius: 50%; cursor: pointer; }
.qty-btn:disabled { opacity: .4; cursor: default; }
.deck-choice { display: grid; grid-template-columns: 1fr 1.3fr; gap: .45rem; margin-top: .55rem; }
.deck-choice button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 36px; padding: 0 .4rem; font-size: .76rem; font-weight: 700; border-radius: 10px; cursor: pointer; transition: transform .15s; }
.deck-choice button:active { transform: scale(.96); }
.deck-choice svg { width: 12px; height: 12px; }
.deck-pass { color: #b91c1c; background: #fff; border: 1.5px solid #f1c9c9; }
.deck-want { color: #fff; background: #15803d; border: 0; }
.deck-in { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; font-size: .64rem; font-weight: 700; color: #fff; background: #15803d; border-radius: 99px; }
.deck-in svg { width: 9px; height: 9px; }
.deck-toast { position: absolute; top: 100px; left: 50%; z-index: 20; max-width: 210px; padding: .35rem .75rem; overflow: hidden; font-size: .68rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: #fff; background: #15803d; border-radius: 99px; box-shadow: 0 6px 14px rgba(17, 24, 39, .2); transform: translateX(-50%); pointer-events: none; animation: fade .2s ease; }
.deck-toast svg { width: 9px; height: 9px; margin-right: .3rem; }
.deck-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 16px; }
.deck-back { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .1rem; font-size: .72rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.deck-back svg { width: 8px; height: 10px; }
.deck-back:disabled { color: #c2b9ab; cursor: default; }
.deck-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .5rem .42rem .75rem; font-size: .72rem; font-weight: 700; color: #fff; background: #7f1d1d; border: 0; border-radius: 99px; cursor: pointer; }
.deck-pill svg { width: 11px; height: 11px; }
.deck-pill.is-empty { color: var(--ink-2); background: #efe8dd; }
.deck-pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; font-size: .66rem; color: #7f1d1d; background: #fff; border-radius: 99px; }
/* Comanda digital: solo platos y cantidades. */
.deck-order { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0 14px 16px; overflow-y: auto; outline: none; }
.order-head, .order-done { display: flex; flex-direction: column; align-items: center; padding: 0 4px .7rem; text-align: center; }
.order-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #7f1d1d; }
.order-sub { margin-top: .15rem; font-size: .72rem; line-height: 1.4; color: var(--muted); }
.order-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: .35rem; color: #fff; background: #15803d; border-radius: 50%; }
.order-done-icon svg { width: 16px; height: 16px; }
.comanda { position: relative; flex: none; padding: .8rem .8rem .9rem; font-family: var(--mono); background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 8px 18px rgba(17, 24, 39, .08); }
.comanda::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px) 0 0 / 12px 7px repeat-x; }
.comanda-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.comanda-label { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.comanda-meta { margin-top: .15rem; font-size: .62rem; color: var(--muted); }
.comanda-qr { display: flex; flex: none; flex-direction: column; align-items: center; gap: 1px; padding: 3px 3px 2px; font-family: var(--font); font-size: .5rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid #e5ddd0; border-radius: 6px; cursor: pointer; }
.comanda-qr svg { width: 30px; height: 30px; color: var(--ink); }
.comanda-qr:disabled { cursor: default; }
.comanda-rule { margin: .6rem 0; border-top: 1.5px dashed #d9d2c6; }
.comanda-items { display: grid; gap: .45rem; }
.comanda-items li { display: flex; align-items: center; gap: .55rem; font-family: var(--font); font-size: .8rem; font-weight: 600; }
.comanda-q { flex: none; min-width: 24px; padding: 1px 0; font-family: var(--mono); font-size: .72rem; font-weight: 800; text-align: center; color: #fff; background: #7f1d1d; border-radius: 5px; }
.qr-dialog { width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.qr-dialog::backdrop { background: rgba(5, 12, 26, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.qr-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 0; padding: 1.6rem 1.4rem 1.3rem; text-align: center; }
.qr-close { position: absolute; top: .6rem; right: .6rem; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--ink-2); background: var(--bg-alt); border: 0; border-radius: 50%; cursor: pointer; }
.qr-close svg { width: 14px; height: 14px; }
.qr-eyebrow { padding-inline: 2.2rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7f1d1d; }
.qr-title { font-size: 1.35rem; }
.qr-code { width: min(250px, 66vw); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-text { max-width: 30ch; font-size: .9rem; color: var(--ink-2); }
.qr-items { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .7rem; font-size: .82rem; color: var(--ink-2); }
.qr-items b { color: #7f1d1d; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .3rem; }
button.comanda-q { border: 0; line-height: inherit; cursor: pointer; }
button.comanda-q:hover { background: #991b1b; }
button.comanda-q[aria-expanded="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7f1d1d; }
.comanda-edit { display: flex; flex-wrap: wrap; gap: .3rem; padding-left: 4px; }
.comanda-edit button { padding: .22rem .45rem; font-family: var(--font); font-size: .64rem; font-weight: 700; color: #b91c1c; background: #fff; border: 1px solid #f1c9c9; border-radius: 8px; cursor: pointer; }
.comanda-edit button:hover { background: #fef2f2; }
.comanda-total { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 700; color: var(--ink-2); }
.comanda-stamp { position: absolute; right: 10px; bottom: 32px; padding: 1px 5px; font-family: var(--font); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7f1d1d; background: rgba(255, 255, 255, .85); border: 2px solid #7f1d1d; border-radius: 5px; transform: rotate(-8deg); }
.comanda-stamp.is-ok { color: #15803d; border-color: #15803d; }
.order-main { display: flex; flex: none; align-items: center; justify-content: center; gap: .45rem; height: 42px; margin-top: 1.1rem; font-size: .85rem; font-weight: 800; color: #fff; background: #7f1d1d; border: 0; border-radius: 12px; box-shadow: 0 8px 18px rgba(127, 29, 29, .25); cursor: pointer; }
.order-main svg { width: 12px; height: 14px; }
.order-more { align-self: center; margin-top: .55rem; padding: .25rem .5rem; font-size: .74rem; font-weight: 600; color: #7f1d1d; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }

.book { position: relative; width: 100%; max-width: 280px; aspect-ratio: 3 / 4; margin: .5rem auto 0; perspective: 1400px; touch-action: pan-y; }
.book-page { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #fffdf8; border: 1px solid #ece4d6; border-radius: 3px 10px 10px 3px; box-shadow: inset 8px 0 12px -8px rgba(0, 0, 0, .18), 0 8px 20px rgba(17, 24, 39, .1); transform-origin: left center; transition: transform .7s cubic-bezier(.3, .7, .2, 1); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book-page.is-flipped { transform: rotateY(-180deg); }
/* Carta tipo revista: portada con foto a página completa y páginas con foto, título con serifa y precios con puntos guía. */
.book-cover { justify-content: space-between; color: #fff; background: #2b1d16; border-color: #2b1d16; }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .74) 0%, rgba(20, 12, 8, .08) 44%, rgba(20, 12, 8, .14) 58%, rgba(20, 12, 8, .82) 100%); }
.cover-top, .cover-bottom { position: relative; z-index: 1; padding: 1rem .95rem; }
.cover-kicker { font-size: .54rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.book-brand { margin-top: .35rem; font-family: var(--serif); font-size: 2.05rem; font-weight: 700; line-height: .95; letter-spacing: -.01em; }
.book-sub { font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.book-hint { margin-top: .2rem; font-size: .6rem; letter-spacing: .08em; opacity: .8; }
.mag-photo { flex: none; width: 100%; height: 37%; object-fit: cover; }
.mag-body { display: flex; flex: 1; flex-direction: column; padding: .55rem .7rem .45rem; color: #2b1d16; }
.mag-kicker { font-size: .5rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #b45309; }
.mag-title { margin: .05rem 0 .45rem; font-family: var(--serif); font-size: 1.15rem; font-style: italic; font-weight: 700; line-height: 1.05; color: #7f1d1d; }
.mag-items { display: grid; gap: .42rem; }
.mag-items li { display: grid; grid-template-columns: auto minmax(8px, 1fr) auto; align-items: baseline; column-gap: 3px; }
.mag-name { font-size: .62rem; font-weight: 700; }
.mag-dots { border-bottom: 1px dotted #c9b9a3; transform: translateY(-2px); }
.mag-price { font-size: .62rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #7f1d1d; }
.mag-desc { grid-column: 1 / -1; margin-top: 1px; font-family: var(--serif); font-size: .56rem; font-style: italic; line-height: 1.3; color: #7a6a5c; }
.mag-tag { margin-right: 3px; padding: 0 4px; font-family: var(--font); font-size: .46rem; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #b45309; border-radius: 3px; vertical-align: 1px; }
.mag-folio { margin-top: auto; font-family: var(--serif); font-size: .56rem; font-style: italic; text-align: right; color: #a8977f; }
.book-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: .9rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .45rem .85rem; font-size: .88rem; font-weight: 600; white-space: nowrap; color: var(--ink-2); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.chip.is-active, .chip[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.menu-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(210px, 72%); gap: .75rem; padding-bottom: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dish { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); scroll-snap-align: start; }
.dish-name { font-weight: 700; }
.dish-desc { font-size: .85rem; color: var(--muted); }
.dish-price { margin-top: auto; padding-top: .25rem; font-weight: 600; }
.dish-btn { margin-top: .5rem; padding: .5rem; font-size: .85rem; font-weight: 600; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.dish-btn[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.order-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; font-size: .9rem; background: var(--bg-alt); border-radius: var(--radius-sm); }
.order-summary { display: grid; gap: .6rem; padding: 1rem; font-size: .93rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.order-summary h4 { font-size: 1rem; }
.order-summary ul { display: grid; gap: .3rem; }
.order-summary li, .order-total { display: flex; justify-content: space-between; gap: .75rem; }
.order-total { padding-top: .5rem; font-weight: 700; border-top: 1px solid var(--line); }

.booking { display: grid; gap: 1.5rem; }
.step-label { margin-bottom: .6rem; font-weight: 700; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (min-width: 600px) { .slot-grid { grid-template-columns: repeat(8, 1fr); } }
.slot { padding: .6rem 0; font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.slot:disabled { color: #9ca3af; text-decoration: line-through; background: repeating-linear-gradient(-45deg, #f3f4f6, #f3f4f6 6px, #e5e7eb 6px, #e5e7eb 12px); border-color: var(--line); cursor: not-allowed; }
.slot[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.legend { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .82rem; color: var(--muted); }
.legend-busy { flex: none; width: 18px; height: 12px; background: repeating-linear-gradient(-45deg, #f3f4f6, #f3f4f6 4px, #e5e7eb 4px, #e5e7eb 8px); border: 1px solid var(--line); border-radius: 3px; }
.booking-form { display: grid; gap: .9rem; max-width: 420px; }
.booking-done { display: grid; gap: 1rem; }
.done-title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 700; }
.done-title svg { flex: none; width: 22px; height: 22px; color: var(--ok); }
.done-steps { display: grid; gap: .5rem; color: var(--ink-2); }
.done-steps li { display: flex; gap: .6rem; align-items: flex-start; }
.done-steps svg { flex: none; width: 14px; height: 14px; margin-top: .35rem; color: var(--ok); }
.done-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.cms-grid { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 900px) { .cms-grid { grid-template-columns: 1fr auto 1fr; gap: 1.25rem; } }
.mini-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; font-weight: 700; }
.mini-title svg { flex: none; width: 16px; height: 16px; }
.sheet-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.sheet { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: .45rem .6rem; text-align: left; white-space: nowrap; border: 1px solid #e3e5e8; }
.sheet thead th { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: #f3f4f6; }
.sheet .row-n { width: 2.2rem; text-align: center; color: var(--muted); background: #f3f4f6; }
.sheet tr.is-new td { animation: row-in 1.6s ease; }
@keyframes row-in { from { background: #ceead6; } to { background: transparent; } }
.sheet-edit input { width: 100%; min-width: 64px; padding: .2rem; background: transparent; border: 0; font-variant-numeric: tabular-nums; }
.sheet-edit input:focus { outline: 2px solid #1a73e8; outline-offset: -1px; background: #fff; }
.cms-sync { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.cms-sync svg { width: 22px; height: 22px; transform: rotate(90deg); }
@media (min-width: 900px) { .cms-sync svg { transform: none; } }
.cms-sync.is-syncing svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sync-status { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--ok); }
.sync-status.is-busy { color: var(--muted); }
.products { display: grid; gap: .6rem; }
.product { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; }
.product-name { font-weight: 600; }
.product-price { font-variant-numeric: tabular-nums; }
.product.is-out .product-name, .product.is-out .product-price { color: var(--muted); }
.product.is-flash { animation: flash .9s ease; }
@keyframes flash { from { background: #fff4c2; } to { background: #fff; } }
.badge { padding: .2rem .5rem; font-size: .72rem; font-weight: 700; white-space: nowrap; color: var(--ink-2); background: var(--soft); border-radius: 5px; }
.badge-out { color: #991b1b; background: #fee2e2; }

/* ---------- 5. extensiones ---------- */
.ext-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .ext-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.ext { display: flex; flex-direction: column; gap: 1rem; }
.ext h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.ext h3 svg { flex: none; width: 18px; height: 18px; }
.ext > p { font-size: .93rem; color: var(--ink-2); }
.ext .btn { align-self: flex-start; }
.pass { display: grid; gap: 1rem; padding: 1rem 1.1rem; color: #fff; background: #1f2937; border-radius: 14px; box-shadow: 0 10px 24px rgba(17, 24, 39, .18); }
.pass-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.pass-biz { font-weight: 700; }
.pass-kind { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.pass-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.pass-stamps li { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1.5px dashed rgba(255, 255, 255, .35); border-radius: 50%; }
.pass-stamps li.is-on { color: #1f2937; background: #fff; border: 0; }
.pass-stamps svg { width: 52%; height: 52%; }
.pass-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.pass-label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.pass-value { font-size: 1.1rem; font-weight: 700; }
.pass-qr { width: 52px; height: 52px; padding: 6px; color: #111; background: #fff; border-radius: 6px; }
.scratch { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.scratch-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; background: #fff; }
.scratch:not(.is-ready) .scratch-prize { visibility: hidden; }
.scratch-prize strong { font-size: 1.4rem; }
.scratch-prize span { font-family: var(--mono); font-size: .9rem; color: var(--ink-2); }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: pointer; transition: opacity .5s; }
.scratch canvas.is-done { opacity: 0; pointer-events: none; }

/* ---------- 6. planes ---------- */
.plans { display: grid; gap: 1rem; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; gap: .6rem; }
.plan p { font-size: .93rem; color: var(--ink-2); }
.plan .plan-n { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan h3 { font-size: 1.2rem; }
.plan .plan-tag { font-size: .88rem; font-weight: 600; }
.plan .plan-price { margin-top: auto; padding-top: .5rem; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.plan-iva { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.plans-note { margin: 1rem 0 1.5rem; font-size: .9rem; color: var(--muted); }
.plan.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.included { margin-top: 1.5rem; }
.included h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.included-grid { display: grid; gap: 1.1rem; }
@media (min-width: 768px) { .included-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; } }
.included-grid li { display: flex; gap: .85rem; align-items: flex-start; }
.included-grid strong { display: block; }
.included-grid div > span { font-size: .92rem; color: var(--ink-2); }
.promo { display: grid; gap: 1.5rem; margin-top: 1.5rem; border: 1px dashed var(--line-strong); }
@media (min-width: 768px) { .promo { grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center; padding: 2rem; } }
.promo-main { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.promo-tag { padding: .2rem .55rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand); border-radius: 5px; }
.promo-main h3 { font-size: 1.25rem; }
.promo-main > p:not([class]) { font-size: .95rem; color: var(--ink-2); }
.promo-price { font-size: 1.6rem; font-weight: 800; }
.promo-main .btn { margin-top: .4rem; }
.promo-lists { display: grid; gap: 1.25rem; }
@media (min-width: 480px) { .promo-lists { grid-template-columns: 1fr 1fr; } }
.promo-list-title { margin-bottom: .6rem; font-size: .85rem; font-weight: 700; }

/* ---------- 7 y 8. herramientas y datos ---------- */
.grid-2, .grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.tool, .legal { display: flex; flex-direction: column; gap: .85rem; }
.tool h3, .legal h3 { font-size: 1.1rem; }
.tool p, .legal p { font-size: .95rem; color: var(--ink-2); }
.tool .fine { font-size: .85rem; color: var(--muted); }
.tool .btn { align-self: flex-start; margin-top: auto; }

/* ---------- contacto y pie ---------- */
.contact { display: grid; gap: 1.5rem; padding: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 3rem; } }
.contact h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.contact p:not(.eyebrow) { margin-top: .75rem; color: var(--ink-2); }
.contact-actions { display: grid; gap: .75rem; }
.site-footer { padding-block: 2rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* ---------- panel lateral (planilla) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(560px, 100%); background: #fff; box-shadow: -12px 0 30px rgba(17, 24, 39, .15); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.drawer-kicker { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ok); }
.drawer-head h3 { margin-top: .25rem; font-size: 1.1rem; }
.drawer-body { flex: 1; padding: 1.25rem; overflow: auto; }
.drawer-body iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.drawer-foot { padding: 1rem 1.25rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- visor de fotos en grande ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 4rem 1rem 3rem; background: rgba(10, 10, 12, .94); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { display: grid; justify-items: center; gap: .75rem; margin: 0; }
.lb-figure img { width: auto; height: auto; max-width: min(92vw, 1100px); max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-figure figcaption { font-size: .85rem; font-variant-numeric: tabular-nums; color: #d1d5db; }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 16px; height: 16px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lightbox :focus-visible { outline-color: #fff; }
