/* Bipe — web pública (portada + landings por sector).
   Usa los tokens de tokens.css. Móvil primero: lo de escritorio va en los @media (min-width). */
:root { --text-3: #8b97a5; --ok: #a3e635; --wrap: 1180px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 300; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sec { padding: 64px 0; }
.sec-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.h2 { font-size: clamp(28px, 6.5vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 14px; }
.h2 .ac, .ac { color: var(--accent); }
.lead { font-size: 17px; color: var(--text-2); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.sec-head { margin-bottom: 36px; }

/* Botones (≥44px de alto para el dedo) */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-md); font-weight: 800; font-size: 15px; transition: background .15s, transform .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-d); color: var(--accent-ink); transform: translateY(-1px); }
.btn-outline { color: var(--text); border: 1px solid var(--border-2); }
.btn-outline:hover { color: var(--text); background: var(--surface-2); }
.btn-ghost { color: var(--text-2); font-weight: 600; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(13,17,23,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.nav .brand { color: var(--text); font-size: 19px; min-height: 44px; }
.nav-links { display: none; }
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-act .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.nav-act .btn-ghost { display: none; }
.nav-sect { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; max-width: var(--wrap); margin: 0 auto; }
.nav-sect::-webkit-scrollbar { display: none; }
.nav-sect a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: 13px; font-weight: 700; }
.nav-sect a[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: rgba(163,230,53,.08); }

/* Selector de idioma: <details>, sin JS */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text-2); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: '▾'; font-size: 10px; }
.lang[open] summary { color: var(--text); border-color: var(--border-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 6px; min-width: 170px; box-shadow: 0 12px 32px rgba(0,0,0,.5); z-index: 200; }
.lang-menu a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 14px; }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.lang-menu b { width: 26px; font-size: 12px; color: var(--text-3); }

/* Aviso de idioma (solo páginas en español con navegador en otro idioma) */
.langbar { display: none; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 14px; }
.langbar.show { display: block; }
.langbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.langbar a { font-weight: 800; }
.langbar button { margin-left: auto; min-width: 40px; min-height: 40px; color: var(--text-2); font-size: 20px; }

/* HERO */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-grid > *, .block > * { min-width: 0; }
.nav .btn { white-space: nowrap; }
.hero h1 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; line-height: 1.4; }
.hero .slogan { font-size: clamp(34px, 9vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 18px; }
.hero .sub { font-size: 18px; color: var(--text-2); margin-bottom: 26px; max-width: 620px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--text-2); font-weight: 600; list-style: none; }
.trust li::before { content: '✓ '; color: var(--accent); font-weight: 800; }
.center .cta-row, .center .trust { justify-content: center; }

/* Marco de captura / maqueta */
.frame { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 80px -30px rgba(163,230,53,.25); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4554; }
.frame-bar i:nth-child(1) { background: #ef4444; } .frame-bar i:nth-child(2) { background: #fbbf24; } .frame-bar i:nth-child(3) { background: #22c55e; }
.frame-bar span { margin-left: 8px; font: 500 11px 'JetBrains Mono', monospace; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; aspect-ratio: 2158 / 1120; object-fit: cover; object-position: top left; }
.cap { font-size: 13px; color: var(--text-3); margin-top: 10px; text-align: center; }

/* Tarjetas de sector (portada) */
.sectors { display: grid; gap: 16px; }
.sector { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; color: var(--text); transition: border-color .2s, transform .2s; overflow: hidden; }
.sector:hover { border-color: var(--accent); color: var(--text); transform: translateY(-3px); }
.sector-ico { font-size: 38px; line-height: 1; margin-bottom: 14px; }
.sector h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.sector p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.sector ul { list-style: none; margin-bottom: 20px; display: grid; gap: 6px; }
.sector li { font-size: 14px; color: var(--text-2); }
.sector li::before { content: '✓ '; color: var(--accent); font-weight: 800; }
.sector .from { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; }
.sector .from b { font: 800 22px 'JetBrains Mono', monospace; color: var(--text); }
.sector .from small { color: var(--text-3); font-size: 13px; }
.sector .go { color: var(--accent); font-weight: 800; font-size: 15px; white-space: nowrap; }

/* Bloques de ventajas alternos */
.blocks { display: grid; gap: 56px; }
.block { display: grid; gap: 24px; align-items: center; }
.block h3 { font-size: clamp(24px, 5.5vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 12px; }
.block p { color: var(--text-2); font-size: 16px; margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; color: var(--text); font-size: 15px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-ink); background: var(--accent); width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 900; display: grid; place-items: center; margin-top: 2px; }

/* Rejilla de ventajas pequeñas */
.feats { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.sec-alt .feat { background: var(--surface-2); }
.feat-ico { width: 44px; height: 44px; border-radius: 10px; background: rgba(163,230,53,.12); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.feat h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feat p { font-size: 15px; color: var(--text-2); }

/* Precios */
.prices { display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; }
.price { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; }
.price.feat-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -16px rgba(163,230,53,.25); }
.price-tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.price-name { font-size: 13px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.price-for { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
.price-amt { font: 800 52px/1 'JetBrains Mono', monospace; letter-spacing: -.03em; }
.price-amt sup { font-size: 20px; vertical-align: top; margin-left: 2px; }
.price-per { font-size: 14px; color: var(--text-3); margin: 6px 0 20px; }
.price ul { list-style: none; border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 24px; flex: 1; display: grid; gap: 8px; align-content: start; }
.price li { font-size: 15px; color: var(--text-2); padding-left: 24px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.price li.off { color: var(--text-3); }
.price li.off::before { content: '—'; color: var(--text-3); }
.price-note { text-align: center; color: var(--text-3); font-size: 14px; max-width: 640px; margin: 28px auto 0; }

/* Tabla resumen de precios (portada) */
.ptable-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.ptable { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.ptable th, .ptable td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.ptable thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.ptable tbody th { font-weight: 800; }
.ptable tbody th span { display: block; font-size: 13px; font-weight: 500; color: var(--text-3); }
.ptable td b { font: 800 18px 'JetBrains Mono', monospace; color: var(--text); white-space: nowrap; }
.ptable td small { display: block; color: var(--text-3); font-size: 13px; }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable .na { color: var(--text-3); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.sec-alt .faq details { background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; min-height: 44px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--accent); font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; }

/* Artículos del blog */
.arts { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
.arts a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text); font-weight: 600; font-size: 15px; }
.arts a::after { content: '→'; color: var(--accent); font-weight: 800; }
.arts a:hover { border-color: var(--accent); color: var(--text); }
.arts-more { text-align: center; margin-top: 18px; }
/* Enlaces dentro de un texto: subrayados (no solo por color; accesibilidad, link-in-text-block) */
main p:not(.arts-more) a:not([class]), .faq .a a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* CTA final */
.cta-final { padding: 64px 0; text-align: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-top: 1px solid var(--border); }
.cta-final .h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-final p { color: var(--text-2); font-size: 17px; margin: 0 auto 26px; max-width: 560px; }

/* Pie */
.footer { padding: 48px 0 110px; border-top: 1px solid var(--border); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { color: var(--text-3); font-size: 14px; margin-top: 10px; max-width: 320px; }
.foot-redes { display: flex; gap: 10px; margin-top: 16px; }
.foot-redes a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-2); transition: color .15s, border-color .15s; }
.foot-redes a:hover, .foot-redes a:focus-visible { color: var(--accent); border-color: var(--accent); }
.footer .foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); font-size: 14px; }
.footer li a:hover { color: var(--accent); }
.foot-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Botón fijo en móvil */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(13,17,23,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .25s; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* ============ MAQUETAS (inspiradas en el TPV real) ============ */
.mk { background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.35; }
.mk-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mk-top .brand-icon { width: 22px; height: 22px; }
.mk-top b { font-weight: 800; }
.mk-top .mk-tabs { display: flex; gap: 6px; margin-left: 8px; overflow: hidden; }
.mk-tab { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.mk-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mk-top .mk-r { margin-left: auto; font: 500 11px 'JetBrains Mono', monospace; color: var(--text-3); white-space: nowrap; }
.mk-body { padding: 14px; }
.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* Plano de mesas */
.mk-floor { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mesa { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.mesa.round { border-radius: 50%; }
.mesa .n { font-weight: 800; font-size: 15px; }
.mesa .s { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.mesa.oc { border-color: var(--accent); background: rgba(163,230,53,.1); }
.mesa.oc .s { color: var(--accent); }
.mesa.pc { border-color: var(--warm); background: rgba(251,146,60,.12); }
.mesa.pc .s { color: var(--warm); }
.mesa.wide { grid-column: span 2; aspect-ratio: auto; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 11px; color: var(--text-2); }
.mk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--border-2); }
.mk-legend .l-oc { border-color: var(--accent); background: rgba(163,230,53,.2); }
.mk-legend .l-pc { border-color: var(--warm); background: rgba(251,146,60,.2); }

/* Mesa con comanda */
.mk-order { display: grid; gap: 12px; }
.mk-list { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.mk-list-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 800; }
.mk-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.mk-line:last-child { border-bottom: 0; }
.mk-line small { display: block; color: var(--text-3); font-size: 11px; margin-top: 2px; }
.mk-line .p { color: var(--accent); font-weight: 700; white-space: nowrap; }
.mk-line.sent { opacity: .7; }
/* Accesibilidad: con la opacidad de .sent, el gris de --text-3 bajaba de 4,5:1; este queda en 4,7:1 */
.mk-line.sent small { color: #a9b4bf; }
.badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); vertical-align: 1px; margin-left: 4px; }
.badge.k { background: rgba(251,146,60,.18); color: var(--warm); }
.badge.b { background: rgba(56,189,248,.18); color: var(--info); }
.mk-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px; }
.mk-total b { font: 800 26px 'JetBrains Mono', monospace; color: var(--accent); }
.mk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: 12px; text-align: center; }
.mk-btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 800; }
.mk-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: 12px; font-weight: 600; }
.mk-chip.on { border-color: var(--accent); color: var(--accent); background: rgba(163,230,53,.1); }

/* Pantalla de cocina */
.mk-kds { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.kds { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.kds-h { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--surface-2); font-weight: 800; font-size: 12px; }
.kds-h.new { background: var(--accent); color: var(--accent-ink); }
.kds-h.late { background: rgba(251,146,60,.25); color: var(--warm); }
.kds ul { list-style: none; padding: 8px 10px; display: grid; gap: 6px; flex: 1; }
.kds li { font-size: 12px; }
.kds li b { font-family: 'JetBrains Mono', monospace; margin-right: 4px; }
.kds li small { display: block; color: var(--warm); font-size: 11px; padding-left: 18px; }
.kds .mk-btn { margin: 0 10px 10px; min-height: 32px; }

/* Agenda del salón */
.mk-agenda { display: grid; grid-template-columns: 38px repeat(3, minmax(0,1fr)); gap: 0 6px; position: relative; }
.ag-h { font-weight: 800; font-size: 12px; padding: 6px 4px 8px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.ag-h i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ag-hours { display: grid; grid-template-rows: repeat(10, 40px); font: 500 10px 'JetBrains Mono', monospace; color: var(--text-3); }
.ag-col { position: relative; display: grid; grid-template-rows: repeat(10, 40px); background: repeating-linear-gradient(to bottom, var(--surface) 0 39px, var(--border) 39px 40px); border-radius: 8px; overflow: hidden; }
.cita { position: relative; margin: 2px 3px; border-radius: 7px; padding: 4px 7px; font-size: 11px; line-height: 1.2; overflow: hidden; border-left: 3px solid; }
.cita b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cita span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cita span { color: var(--text-2); }
.cita.c1 { background: rgba(163,230,53,.14); border-color: var(--accent); }
.cita.c2 { background: rgba(56,189,248,.14); border-color: var(--info); }
.cita.c3 { background: rgba(192,132,252,.16); border-color: #c084fc; }
.cita.pausa { background: repeating-linear-gradient(135deg, rgba(251,146,60,.1) 0 6px, transparent 6px 12px); border-color: var(--warm); border-left-style: dashed; color: var(--warm); }
.cita.pend { background: rgba(251,146,60,.14); border-color: var(--warm); }
.ag-now { position: absolute; left: 38px; right: 0; height: 2px; background: #ef4444; }

/* Móvil (reserva pública / WhatsApp) */
.phone { width: 270px; max-width: 100%; margin: 0 auto; background: #05070a; border: 8px solid #222a35; border-radius: 34px; padding: 10px 0 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); overflow: hidden; }
.phone-notch { width: 80px; height: 18px; background: #222a35; border-radius: 0 0 12px 12px; margin: -10px auto 8px; }
.phone-scr { background: var(--bg); min-height: 470px; padding: 14px; font-size: 13px; }
.ph-title { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.ph-sub { color: var(--text-3); font-size: 12px; margin-bottom: 14px; }
.ph-step { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 6px; }
.ph-opt { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; background: var(--surface); }
.ph-opt.on { border-color: var(--accent); background: rgba(163,230,53,.08); }
.ph-opt small { color: var(--text-3); }
.ph-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-hours span { text-align: center; padding: 8px 0; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font: 600 12px 'JetBrains Mono', monospace; }
.ph-hours span.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ph-hours span.off { opacity: .55; text-decoration: line-through; } /* .55: contraste 4,5:1 */
.ph-cta { margin-top: 14px; text-align: center; padding: 12px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.wa { background: #0b141a; min-height: 470px; padding: 0 0 14px; font-size: 13px; }
.wa-top { display: flex; align-items: center; gap: 10px; background: #1f2c34; padding: 10px 12px; color: #e9edef; }
.wa-av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.wa-top small { display: block; color: #8696a0; font-size: 11px; }
.wa-day { text-align: center; margin: 14px 0 8px; }
.wa-day span { background: #182229; color: #8696a0; font-size: 11px; padding: 4px 10px; border-radius: 6px; }
.wa-msg { margin: 6px 12px 6px 40px; background: #005c4b; color: #e9edef; padding: 8px 10px 18px; border-radius: 10px 0 10px 10px; position: relative; white-space: pre-line; }
.wa-msg time { position: absolute; right: 8px; bottom: 4px; font-size: 10px; color: #a8c7be; }

@media (max-width: 639px) {
  .mk-floor { gap: 6px; }
  .mesa .n { font-size: 13px; }
  .mesa .s { font-size: 9px; }
  /* Tabla de precios → una tarjeta por negocio */
  .ptable-wrap { overflow: visible; border: 0; background: none; }
  .ptable { min-width: 0; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; }
  .ptable tr { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 12px; padding: 6px 0; }
  .ptable th, .ptable td { border: 0; padding: 8px 16px; }
  .ptable tbody th { font-size: 18px; }
  .ptable td[data-plan] { display: grid; grid-template-columns: 84px 1fr; column-gap: 10px; }
  .ptable td[data-plan]::before { content: attr(data-plan); grid-row: span 2; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding-top: 4px; }
  .ptable td.na { display: none; }
  .ptable caption { display: block; }
}

/* ============ ESCRITORIO ============ */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .nav-act .btn-ghost { display: inline-flex; }
}
@media (min-width: 900px) {
  .sec { padding: 96px 0; }
  .hero { padding: 72px 0 40px; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; }
  .hero-grid.solo { grid-template-columns: 1fr; text-align: center; max-width: 900px; margin: 0 auto; }
  .hero-grid.solo .sub { margin-left: auto; margin-right: auto; }
  .hero-grid.solo .cta-row, .hero-grid.solo .trust { justify-content: center; }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .block { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .block.rev > :first-child { order: 2; }
  .feats { grid-template-columns: repeat(3, 1fr); }
  /* Cuatro pasos en una sola fila (sin que el cuarto se quede solo debajo). */
  .feats.feats-4 { grid-template-columns: repeat(4, 1fr); }
  /* Rejilla de 6 columnas (cada tarjeta ocupa 2: mismo ancho que con 3) para centrar la
     última fila cuando queda incompleta (p. ej. sin la tarjeta de Verifactu fuera de España). */
  .feats.feats-centro { grid-template-columns: repeat(6, 1fr); }
  .feats-centro > .feat { grid-column: span 2; }
  .feats-centro > .feat:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
  .feats-centro > .feat:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
  .prices { grid-template-columns: repeat(3, 1fr); }
  .prices.two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
  .price.feat-on { transform: scale(1.03); }
  .nav-in { padding: 10px 24px; gap: 20px; }
  .nav-links { display: flex; gap: 22px; align-items: center; margin-left: 12px; }
  .nav-links a { color: var(--text-2); font-size: 14px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
  .nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .nav-sect { display: none; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 32px; }
  .arts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .mk-kds { grid-template-columns: 1fr 1fr; }
  .mk-kds .kds:nth-child(3) { display: none; }
}
@media (max-width: 380px) {
  .nav-in { padding: 8px 10px; gap: 6px; }
  .nav-act .btn { padding: 8px 10px; font-size: 13px; }
  .mk-kds { grid-template-columns: 1fr 1fr; }
  .mk-kds .kds:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.ptable tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-brand .brand { min-height: 44px; }

/* Descargas (app de Windows), discreto encima del pie */
.foot-dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 0 0 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.foot-dl-t { font-weight: 700; font-size: 14.5px; color: var(--text); }
.foot-dl-s { font-size: 12.5px; color: var(--text-3); margin-top: 2px; max-width: 520px; }
.foot-dl-a { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-dl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; font-size: 13.5px; }
.foot-dl-btn:hover { border-color: var(--accent); color: var(--accent); }
.foot-dl-mas { font-size: 13px; color: var(--text-3); }
.foot-dl-mas:hover { color: var(--accent); }

/* Migas de pan (páginas de sector) */
.miga { padding-top: 14px; font-size: 13px; color: var(--text-2); }
.miga ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.miga li + li::before { content: '›'; margin-right: 6px; color: var(--text-3); }
.miga a { color: var(--text-2); }
.miga a:hover { color: var(--accent); }

/* Problema → solución */
.ps-q { color: var(--text-2); font-size: 14px; font-style: italic; margin-bottom: 8px; }

/* Enlaces entre sectores */
.verts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vert { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; }
.vert:hover { border-color: var(--accent); color: var(--text); }
.vert[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.sec-alt .vert { background: var(--surface-2); }

/* ============ VÍDEOS (Shorts de YouTube, carga al pulsar) ============
   Miniatura con enlace al Short; web.js lo cambia por un botón que carga el reproductor.
   Formato vertical 9:16. Móvil: 1 columna (2 desde 520 px); escritorio: 3. */
.vids { display: grid; gap: 18px; grid-template-columns: minmax(0, 280px); justify-content: center; }
.vid { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vid-play, .vid-frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--border); }
.vid-play { padding: 0; cursor: pointer; color: inherit; font: inherit; }
.vid-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-btn { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--accent); color: #0d1117; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .15s; }
.vid-btn svg { margin-left: 3px; }
.vid-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.vid-dur::before { content: attr(data-dur); }
.vid-play:hover .vid-btn, .vid-play:focus-visible .vid-btn { transform: scale(1.08); }
.vid-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vid-frame { border: 0; }
.vid h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.vid p { font-size: 14px; color: var(--text-2); }
@media (min-width: 520px) {
  .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin: 0 auto; }
  .vids > .vid:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
}
@media (min-width: 900px) {
  .vids { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; gap: 24px; }
  .vids > .vid:last-child:nth-child(odd) { grid-column: auto; width: auto; }
}
