/* Inter alojada en la propia web (más rápida y sin enviar datos a Google) */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/inter-latin.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/montserrat-500.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/montserrat-700.woff2) format("woff2")}

:root{
  /* Minimalista: blanco, negro y grises */
  --night:#111111;     /* hero, bandas oscuras */
  --navy:#111111;      /* títulos */
  --text:#3F3F46;      /* texto normal */
  --muted:#6B6B73;     /* texto secundario */
  --accent:#111111;    /* botones y enlaces */
  --accent-dark:#333333;
  --accent-soft:#F2F2F2;
  --warm:#A1A1AA;      /* detalles sobre fondo oscuro */
  --bg:#FFFFFF;
  --soft:#F7F7F7;      /* secciones alternas */
  --border:#E7E7E7;
  --err:#B42318;
  --radius:12px;
  --shadow:0 1px 2px rgba(0,0,0,.04),0 4px 14px rgba(0,0,0,.04);
  --wa-bg:#EFEAE2;
  --wa-out:#D9FDD3;
  --wa-head:#1C1C1E;
}
*{box-sizing:border-box}
[hidden]{display:none!important}  /* que ningún display anule el atributo hidden */
img,svg{max-width:100%}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:5rem}
body{margin:0;font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:1.0625rem;line-height:1.65;color:var(--text);background:var(--bg)}
a{color:var(--accent);font-weight:600;text-underline-offset:3px;text-decoration-color:#BDBDBD}
a:hover{color:#555;text-decoration-color:currentColor}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;z-index:50;background:var(--navy);color:#fff;padding:.5rem 1rem;border-radius:8px}
.skip:focus{left:8px}
.wrap{max-width:72rem;margin:0 auto;padding:0 1.25rem}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Marcador de datos que faltan */

/* Tipografía */
h1,h2,h3{font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--navy);line-height:1.2;margin:0 0 .75rem;letter-spacing:-.02em}
/* Títulos grandes en serif: aire editorial y elegante */
h1,h2{font-weight:700;letter-spacing:-.03em;line-height:1.12}
h1{font-size:clamp(1.95rem,4.2vw,2.85rem)}
h2{font-size:clamp(1.6rem,3.3vw,2.3rem)}
h1 em,h2 em{font-style:normal;color:#80838C}  /* gris del "Be" del logo */
.kicker{display:block;font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.76rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--muted);line-height:1.4;margin-bottom:1.4rem}
h3{font-size:1.15rem;font-weight:700;letter-spacing:-.01em}
p{margin:0 0 1rem}
.lead{font-size:1.15rem;max-width:40rem}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.eyebrow{display:block;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:.6rem}

/* Cabecera */
.bar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);border-bottom:1px solid var(--border)}
.bar>.wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4rem}
.brand{display:flex;flex:none;align-items:center;gap:.6rem;color:var(--navy);text-decoration:none;font-weight:800;font-size:1.05rem}
.brand:hover{color:var(--navy)}
.brand img{display:block;height:2.4rem;width:auto;max-width:none;transition:opacity .2s}
.brand:hover img{opacity:.75}
@media (max-width:560px){.brand img{height:2.1rem}}
.burger{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;border:1px solid var(--border);border-radius:10px;background:#fff;cursor:pointer;padding:0}
.burger span{display:block;width:20px;height:2px;background:var(--navy);border-radius:2px;transition:transform .2s,opacity .2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.bar nav{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--border);padding:.5rem 1.25rem 1.25rem;box-shadow:0 12px 24px rgba(0,0,0,.08)}
.js .bar nav{display:none}
.js .bar nav.open{display:flex}
.bar nav a{color:var(--navy);text-decoration:none;font-weight:600;padding:.75rem 0;border-bottom:1px solid var(--border)}
.bar nav a:hover,.bar nav a[aria-current="page"]{color:var(--accent)}
.bar nav a.btn{color:#fff;border:0;margin-top:1rem}

/* Botones */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.75rem 1.4rem;border-radius:10px;border:2px solid var(--accent);background:var(--accent);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.btn svg{width:1.25em;height:1.25em;fill:currentColor;flex:none}
.btn.ghost{background:transparent;color:var(--navy);border-color:var(--border)}
.btn.ghost:hover{border-color:var(--navy);color:var(--navy);background:#fff}
.btn[disabled]{opacity:.6;cursor:wait}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.more{display:inline-flex;align-items:center;gap:.35rem;text-decoration:none}
.more::after{content:"→";transition:transform .15s}
.more:hover::after{transform:translateX(3px)}

/* Secciones */
.section{padding:3.5rem 0}
.section.alt{background:var(--soft);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-head{max-width:42rem;margin-bottom:2rem}
.section-head p{color:var(--muted);margin:0}
.section-foot{margin:2rem 0 0}

/* Cabecera de página interior */
.page-head{background:var(--soft);border-bottom:1px solid var(--border);padding:2.5rem 0 2.75rem}
.page-head .lead{margin-bottom:0}

/* Hero */
.hero{padding:3rem 0 3.5rem;background:linear-gradient(180deg,var(--soft),#fff)}
.split{display:grid;gap:2.5rem;align-items:center}
.checks,.tick{list-style:none;padding:0;display:grid;gap:.55rem}
.checks{margin:1.5rem 0 0}
.checks li,.tick li{display:flex;gap:.6rem;align-items:flex-start}
.checks li::before,.tick li::before{content:"";flex:none;width:1.2rem;height:1.2rem;margin-top:.22rem;border-radius:50%;background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat}

/* Conversación de WhatsApp */
.chat{width:100%;max-width:23rem;margin:0 auto;border-radius:20px;overflow:hidden;background:var(--wa-bg);border:1px solid var(--border);box-shadow:0 20px 40px rgba(0,0,0,.14);font-size:.92rem;line-height:1.45}
.chat-head{display:flex;align-items:center;gap:.7rem;background:var(--wa-head);color:#fff;padding:.8rem 1rem}
.chat-head b{display:block;font-weight:700}
.chat-head small{display:block;font-size:.78rem;opacity:.9}
.avatar{width:36px;height:36px;border-radius:50%;background:#fff;color:var(--wa-head);display:grid;place-items:center;font-weight:800;flex:none}
.chat-body{display:flex;flex-direction:column;gap:.45rem;padding:1rem .8rem 1.1rem}
.msg{max-width:85%;margin:0;padding:.5rem .7rem;border-radius:10px;background:#fff;color:#111b21;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.msg.out{align-self:flex-end;background:var(--wa-out);border-top-right-radius:3px}
.msg.in{align-self:flex-start;border-top-left-radius:3px}
.msg time{display:block;text-align:right;font-size:.7rem;color:#54656f;margin-top:.1rem}
.chat-note{text-align:center;font-size:.8rem;color:var(--muted);margin:.75rem 0 0}
figure{margin:0}

/* Rejillas y tarjetas */
.grid{display:grid;gap:1.25rem}
.card{position:relative;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow)}
.card>:last-child{margin-bottom:0}
.ico{width:2.75rem;height:2.75rem;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin-bottom:1rem}
.ico svg{width:1.4rem;height:1.4rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.card-link{display:flex;flex-direction:column}
.card-link .more{margin-top:auto;padding-top:.75rem}
.from{font-weight:700;color:var(--navy);margin-bottom:.75rem}
.from span{font-weight:500;color:var(--muted)}

/* Pasos */
.steps{list-style:none;counter-reset:s;padding:0;margin:0;display:grid;gap:1.5rem}
.steps>li{counter-increment:s;position:relative;padding-left:3.5rem}
.steps>li::before{content:counter(s);position:absolute;left:0;top:0;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:700}
.steps h3{margin:.35rem 0 .3rem}
.steps p{margin:0}

/* Precios */
.plan{display:flex;flex-direction:column;position:relative}
.featured{border:2px solid var(--accent);box-shadow:0 12px 32px rgba(0,0,0,.10)}
.badge{position:absolute;top:-.8rem;left:1.5rem;background:var(--accent);color:#fff;font-size:.78rem;font-weight:700;padding:.2rem .7rem;border-radius:999px}
.price{margin:.25rem 0 1.25rem;color:var(--muted);font-size:.95rem}
.price strong{display:block;font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:2.2rem;font-weight:700;color:var(--navy);letter-spacing:-.03em;line-height:1.05}
.price strong span{font-family:"Inter",system-ui,sans-serif;font-size:1rem;font-weight:500;color:var(--muted);letter-spacing:0}
.tick{margin:0 0 1.5rem;flex:1;align-content:start}
.plan .btn{width:100%}
.plan .more{align-self:center;margin-top:1rem}
.note{margin:1.75rem 0 0;padding:1rem 1.25rem;background:var(--accent-soft);border-radius:10px;color:var(--navy);font-weight:600}

/* Tabla comparativa */
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:#fff}
table{width:100%;border-collapse:collapse;min-width:36rem;font-size:.95rem}
th,td{padding:.85rem 1rem;text-align:center;border-bottom:1px solid var(--border)}
th:first-child,td:first-child{text-align:left}
thead th{background:var(--soft);color:var(--navy);font-weight:700}
tbody th{font-weight:500;color:var(--text)}
tbody tr:last-child>*{border-bottom:0}
.yes{color:var(--accent);font-weight:800}
.no{color:#8A99A8}

/* Sectores */
.sector{display:grid;gap:1.5rem;align-items:start}
.example{background:var(--soft);border-left:3px solid var(--accent);padding:1rem 1.25rem;border-radius:0 10px 10px 0;margin:1rem 0}
.example p{margin:0}
.tags{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;padding:0;list-style:none}
.tags li{background:var(--accent-soft);color:var(--accent-dark);font-size:.85rem;font-weight:600;padding:.2rem .7rem;border-radius:999px}

/* Banda de llamada a la acción */
.band{background:var(--night);color:#D4D4D8;padding:3rem 0}
.band h2{color:#fff}
.band p{max-width:40rem;margin:0}
.band .inner{display:grid;gap:1.5rem;align-items:center}
.band .actions{margin-top:0}
.band .btn.ghost{color:#fff;border-color:rgba(255,255,255,.35)}
.band .btn.ghost:hover{background:rgba(255,255,255,.08);border-color:#fff}
.band .pend{display:inline-block;margin-top:.75rem}

/* Preguntas frecuentes */
.faq{display:grid;gap:.75rem;max-width:48rem}
.faq details{background:#fff;border:1px solid var(--border);border-radius:10px;padding:0 1.25rem}
.faq details[open]{box-shadow:var(--shadow)}
.faq summary{cursor:pointer;list-style:none;font-weight:700;color:var(--navy);padding:1rem 2rem 1rem 0;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:.25rem;top:1.3rem;width:.55rem;height:.55rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(-135deg);top:1.55rem}
.faq details>div{padding-bottom:1.1rem}
.faq details p:last-child{margin-bottom:0}
.faq-group+.faq-group{margin-top:2.5rem}
.faq-group h2{font-size:1.55rem;margin-bottom:1rem}

/* Contacto */
.contact{display:grid;gap:2rem;align-items:start}
.direct{list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:1rem}
.direct li{display:flex;gap:.9rem;align-items:center}
.direct .ico{margin:0;flex:none}
.direct div>span{display:block;font-size:.85rem;color:var(--muted)}
form{display:grid;gap:1rem}
label{display:block;font-weight:600;color:var(--navy);margin-bottom:.35rem;font-size:.95rem}
.opt{font-weight:400;color:var(--muted)}
input,textarea,select{width:100%;font:inherit;font-size:1rem;color:var(--text);background:#fff;border:1px solid #CBD5E1;border-radius:10px;padding:.7rem .9rem;min-height:48px}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(17,17,17,.15)}
input[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--err)}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.field-err{color:var(--err);font-size:.875rem;font-weight:600;margin:.3rem 0 0}
.field-err:empty{display:none}
.legal-ok{font-size:.85rem;color:var(--muted);margin:0}
#status{margin:0;padding:.8rem 1rem;border-radius:10px;display:none;font-weight:600}
#status.ok{display:block;background:var(--accent-soft);color:var(--accent-dark)}
#status.bad{display:block;background:#FEE4E2;color:#7A271A}

/* Textos largos (legales, sobre mí) */
.prose{max-width:44rem}
.prose h2{font-size:1.45rem;margin-top:2.25rem}
.prose h2:first-child{margin-top:0}
.prose ul{padding-left:1.2rem}
.prose li{margin-bottom:.4rem}

/* Pie */
footer{background:#0A0A0A;color:#B8C6D4;padding:3rem 0 5.5rem;font-size:.95rem}
footer a{color:#E2E8F0;font-weight:500;text-decoration:none}
footer a:hover{color:#fff;text-decoration:underline}
.foot{display:grid;gap:2rem}
.foot h2{font-family:"Inter",system-ui,sans-serif;font-weight:700;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#fff;margin:0 0 .9rem}
.foot ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.foot p{margin:0 0 .5rem}
.foot .brand{color:#fff;margin-bottom:1rem;display:inline-flex}
.foot .brand img{height:2.75rem}
.copy{border-top:1px solid rgba(255,255,255,.1);margin-top:2rem;padding-top:1.5rem;font-size:.85rem}

/* Hero de Inicio: centrado, tipografía grande y escena con la conversación */
.hero-main{padding:4.5rem 0 0;text-align:center;background:#fff}
.hero-main h1{font-size:clamp(2.2rem,6vw,4.1rem);max-width:19ch;margin:0 auto 1.4rem;line-height:1.08}
.hero-main .lead{margin:0 auto;max-width:36rem;color:var(--muted)}
.hero-main .actions{justify-content:center;margin-top:2rem}
.trust{list-style:none;padding:0;margin:2rem 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.75rem;font-size:.92rem;color:var(--text)}
.trust li{display:flex;align-items:center;gap:.5rem}
.trust li::before{content:"";width:6px;height:6px;border-radius:50%;background:#111}
.stage{position:relative;margin:3.5rem auto 0;max-width:62rem;height:23rem;overflow:hidden;background:var(--soft);border:1px solid var(--border);border-bottom:0;border-radius:28px 28px 0 0;padding:2.5rem 1rem 0;text-align:left}
.stage .chat{box-shadow:0 30px 60px rgba(0,0,0,.12)}
.stage .chat:hover{transform:none}
.stage-note{position:absolute;left:1.5rem;top:1.1rem;margin:0;font-size:.78rem;color:var(--muted)}
.float{display:none;position:absolute;z-index:2;align-items:center;gap:.75rem;background:#fff;border:1px solid var(--border);border-radius:14px;padding:.8rem 1rem;box-shadow:0 18px 40px rgba(0,0,0,.10);font-size:.88rem;line-height:1.35;color:var(--text);transition:transform .25s ease}
.float:hover{transform:translateY(-4px)}
.float b{display:block;color:#111;font-weight:600}
.float i{width:2.1rem;height:2.1rem;flex:none;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;font-style:normal;font-size:.95rem}
.float.f1{left:2rem;top:20.5rem}
.float.f2{right:2rem;top:13rem}

/* Botones claros sobre fondo oscuro */
.band .btn:not(.ghost){background:#fff;border-color:#fff;color:#111}
.band .btn:not(.ghost):hover{background:#E4E4E7;border-color:#E4E4E7;color:#111}

/* Respuesta al pasar el ratón */
.btn{transition:background .15s,border-color .15s,color .15s,transform .15s,box-shadow .15s}
.btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.12)}
.btn:active{transform:translateY(0);box-shadow:none}
.card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.08);border-color:#CFCFCF}
.card-link{cursor:pointer}
.card-link .more::before{content:"";position:absolute;inset:0;border-radius:inherit}  /* toda la tarjeta es pulsable */
.card-link:hover .more{text-decoration:underline}
.card-link:hover .more::after{transform:translateX(4px)}
.card-link:hover .ico,.card:hover .ico{background:#111;color:#fff}
.ico{transition:background .2s,color .2s}
.faq details{transition:border-color .15s,box-shadow .15s}
.faq details:hover{border-color:#BDBDBD}
.faq summary:hover{color:#555}
tbody tr{transition:background .15s}
tbody tr:hover{background:var(--soft)}
.chat{transition:transform .25s ease}
.chat:hover{transform:translateY(-4px)}
.bar nav a:not(.btn):hover{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}

/* Demo interactiva */
.demo-app{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem;align-items:start}
.demo-app>*{min-width:0}
.seg{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.75rem}
.seg button{font:inherit;font-weight:600;font-size:.95rem;padding:.6rem 1.1rem;min-height:44px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.seg button:hover{border-color:#111}
.seg button[aria-pressed="true"]{background:#111;border-color:#111;color:#fff}
.tries{list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:.5rem}
.tries button{width:100%;text-align:left;font:inherit;font-size:.95rem;padding:.7rem 1rem;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;transition:border-color .15s,transform .15s}
.tries button::after{content:"→";color:var(--muted)}
.tries button:hover{border-color:#111;transform:translateX(3px)}
.demo-label{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 .75rem}
.demo-chat{max-width:26rem;width:100%;margin:0 auto;display:flex;flex-direction:column}
.demo-chat .chat-head{justify-content:flex-start}
.demo-chat .chat-head div{flex:1}
.reset{background:none;border:1px solid rgba(255,255,255,.35);color:#fff;font:inherit;font-size:.8rem;font-weight:600;border-radius:999px;padding:.3rem .75rem;cursor:pointer}
.reset:hover{background:rgba(255,255,255,.12)}
.chat-log{height:26rem;overflow-y:auto;display:flex;flex-direction:column;gap:.45rem;padding:1rem .8rem;margin:0;scroll-behavior:smooth}
.msg-text{white-space:pre-line}
.sys{align-self:center;margin:.25rem 0;padding:.25rem .7rem;border-radius:8px;background:rgba(255,255,255,.75);color:#54656f;font-size:.75rem;text-align:center}
.typing{display:flex;gap:4px;align-items:center;padding:.7rem .8rem}
.typing i{width:6px;height:6px;border-radius:50%;background:#8696a0;animation:dot 1s infinite ease-in-out}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.quick{display:flex;flex-wrap:wrap;gap:.4rem;padding:.6rem .8rem;min-height:3.2rem;background:var(--wa-bg);border-top:1px solid rgba(0,0,0,.06)}
.quick:empty{padding:0;min-height:0;border:0}
.quick button{font:inherit;font-size:.85rem;font-weight:600;padding:.45rem .8rem;border-radius:999px;border:1px solid #111;background:#fff;color:#111;cursor:pointer;transition:background .15s,color .15s}
.quick button:hover{background:#111;color:#fff}
.chat-input{display:flex;gap:.5rem;padding:.6rem;background:#F0F0F0}
.chat-input input{flex:1;min-height:44px;border-radius:999px;border:1px solid #DADADA;padding:.5rem 1rem;font-size:.95rem}
.chat-input button{width:44px;height:44px;flex:none;border-radius:50%;border:0;background:#111;color:#fff;cursor:pointer;display:grid;place-items:center}
.chat-input button:hover{background:#333}
.chat-input svg{width:20px;height:20px;fill:currentColor}
.demo-chat .chat{max-width:none;border-radius:20px}
.demo-chat .chat:hover{transform:none}
@media (prefers-reduced-motion:reduce){.typing i{animation:none}.chat-log{scroll-behavior:auto}}
@media (min-width:960px){.demo-app{grid-template-columns:1fr 26rem;gap:4rem}}

/* Ventana de navegador de ejemplo (web ilustrativa) */
.browser{width:100%;max-width:44rem;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 30px 60px rgba(0,0,0,.12);overflow:hidden;text-align:left}
.browser-bar{display:flex;align-items:center;gap:6px;padding:.65rem .9rem;background:#F3F3F3;border-bottom:1px solid var(--border)}
.browser-bar i{width:10px;height:10px;border-radius:50%;background:#D4D4D8}
.browser-bar span{margin-left:.6rem;flex:1;max-width:15rem;background:#fff;border:1px solid var(--border);border-radius:6px;font-size:.72rem;color:var(--muted);padding:.1rem .6rem}
.site{padding:1.1rem 1.3rem 1.5rem}
.site-nav{display:flex;align-items:center;gap:.8rem;margin-bottom:1.5rem}
.site-nav b{font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.95rem;font-weight:700;letter-spacing:-.02em;margin-right:auto;color:#111;white-space:nowrap}
@media (max-width:520px){.site-nav span{display:none}.site{padding:.9rem 1rem 1.2rem}}
.site-nav span{width:2.4rem;height:.38rem;border-radius:4px;background:#E4E4E7}
.site-nav em,.site-hero em{font-style:normal;background:#111;color:#fff;border-radius:6px;padding:.3rem .7rem;font-size:.7rem;font-weight:600;display:inline-block}
.site-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:1.1rem;align-items:center;margin-bottom:1.3rem}
.site-hero .t{display:block;font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:700;letter-spacing:-.03em;font-size:clamp(1rem,2.3vw,1.5rem);line-height:1.12;margin:0 0 .7rem;color:#111}
.site-hero p{height:.38rem;border-radius:4px;background:#E4E4E7;margin:0 0 .45rem}
.site-hero p.s{width:65%;margin-bottom:.9rem}
.site-img{aspect-ratio:4/3;border-radius:10px;background:linear-gradient(135deg,#ECEAE8,#D9D6D3)}
.site-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
.site-cards div{height:3.6rem;border-radius:8px;border:1px solid var(--border);background:var(--soft)}
.stage .browser{transition:transform .3s ease}
.float i svg{width:1rem;height:1rem;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.extras{margin-top:3rem;padding-top:2.5rem;border-top:1px solid var(--border)}
.extras h3{font-size:1.25rem;margin-bottom:.25rem}
.extras>p{margin-bottom:1.25rem}

/* Selector de idioma */
.bar nav a.lang{font-size:.85rem;font-weight:700;letter-spacing:.06em;border:1px solid var(--border);border-radius:8px;padding:.3rem .6rem;text-align:center}
.bar nav a.lang:hover{border-color:#111;text-decoration:none}

/* Botón con aspecto de enlace (pie) */
.link-btn{background:none;border:0;padding:0;font:inherit;color:#E2E8F0;font-weight:500;cursor:pointer;text-align:left}
.link-btn:hover{color:#fff;text-decoration:underline}

/* Pestañas entre demos */
.demo-switch{display:inline-flex;gap:.25rem;padding:.25rem;margin-bottom:2rem;background:var(--soft);border:1px solid var(--border);border-radius:999px;flex-wrap:wrap}
.demo-switch a{text-decoration:none;color:var(--text);font-weight:600;font-size:.92rem;padding:.5rem 1rem;border-radius:999px}
.demo-switch a:hover{color:#111;background:#fff}
.demo-switch a[aria-current="page"]{background:#111;color:#fff}

/* Banner de cookies */
.cookie-box{position:fixed;left:1rem;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:60;max-width:30rem;background:#fff;border:1px solid var(--border);border-radius:16px;padding:1.25rem 1.25rem 1rem;box-shadow:0 20px 50px rgba(0,0,0,.18);font-size:.92rem}
.cookie-box h2{font-family:"Inter",system-ui,sans-serif;font-size:1rem;font-weight:700;letter-spacing:0;margin:0 0 .4rem}
.cookie-box p{margin:0 0 .9rem;color:var(--text)}
.cookie-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.cookie-actions .btn{min-height:42px;padding:.5rem 1rem;font-size:.9rem;flex:1 1 auto}
.cookie-actions .btn:hover{transform:none;box-shadow:none}
.cookie-prefs{border-top:1px solid var(--border);margin:0 0 .9rem;padding-top:.75rem;display:grid;gap:.75rem}
.cookie-row{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.cookie-row b{display:block;color:#111}
.cookie-row p{margin:0;font-size:.85rem;color:var(--muted)}
.cookie-always{font-size:.78rem;font-weight:600;color:var(--muted);white-space:nowrap}
.switch{position:relative;display:inline-block;width:46px;height:26px;flex:none;margin:0}
.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;min-height:0}
.switch span{position:absolute;inset:0;border-radius:999px;background:#D4D4D8;transition:background .2s;pointer-events:none}
.switch span::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch input:checked+span{background:#111}
.switch input:checked+span::after{transform:translateX(20px)}
.switch input:focus-visible+span{outline:3px solid #111;outline-offset:2px}
/* En ordenador el banner es una barra horizontal: texto a la izquierda, botones a la derecha */
@media (min-width:900px){
  .cookie-box{left:1.5rem;right:1.5rem;margin:0 auto;max-width:72rem;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t a" "x a" "p p";column-gap:2.5rem;align-items:center;padding:1.1rem 1.5rem}
  .cookie-box h2{grid-area:t;margin-bottom:.2rem}
  .cookie-box #cookie-text{grid-area:x;margin:0;max-width:52rem}
  .cookie-prefs{grid-area:p;margin:1rem 0 0;padding-top:1rem;grid-template-columns:1fr 1fr;gap:2rem}
  .cookie-actions{grid-area:a;flex-wrap:nowrap}
  .cookie-actions .btn{flex:0 0 auto;min-width:7.5rem}
}

/* Demo de carta QR */
.qr-box{display:flex;gap:1.25rem;align-items:center;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}
.qr-box p{margin:0;font-size:.92rem}
.qr{width:120px;height:120px;flex:none}
.qr svg{width:100%;height:100%;display:block}
.phone{position:relative;max-width:24rem;width:100%;margin:0 auto;height:44rem;border:10px solid #111;border-radius:38px;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 60px rgba(0,0,0,.15)}
.menu-top{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:1rem 1rem .6rem}
.menu-top b{font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:700;letter-spacing:-.02em;font-size:1.25rem;color:#111;display:block;line-height:1.1}
.menu-top small{font-size:.72rem;color:var(--muted)}
.menu-top select{width:auto;min-height:38px;padding:.3rem .6rem;font-size:.85rem;border-radius:8px}
.cats{display:flex;gap:.4rem;overflow-x:auto;padding:.6rem 1rem;border-bottom:1px solid var(--border);scrollbar-width:none}
.cats::-webkit-scrollbar{display:none}
.cats button{flex:none;font:inherit;font-size:.82rem;font-weight:600;padding:.35rem .8rem;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer}
.cats button:hover{border-color:#111;color:#111}
.menu-list{flex:1;overflow-y:auto;padding:.25rem 1rem 5rem;scroll-behavior:smooth}
.cat-title{font-family:"Inter",system-ui,sans-serif;font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:1.1rem 0 .4rem}
.dish{position:relative;display:flex;gap:.7rem;padding:.8rem 0;border-bottom:1px solid var(--border)}
.dish h4{margin:0 0 .15rem;font-size:.95rem;font-weight:600;color:#111}
.dish p{margin:0 0 .35rem;font-size:.8rem;color:var(--muted);line-height:1.4}
.alg{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem}
.alg li{font-size:.68rem;font-weight:600;padding:.05rem .45rem;border-radius:999px;background:#FEF3C7;color:#78350F}
.alg li.ok{background:var(--soft);color:var(--muted)}
.dish-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:.5rem;flex:none}
.phone .price{font-weight:700;color:#111;font-size:.92rem}
.add{font:inherit;font-size:.8rem;font-weight:600;padding:.35rem .7rem;border-radius:8px;border:1px solid #111;background:#fff;color:#111;cursor:pointer;white-space:nowrap}
.add:hover{background:#111;color:#fff}
.stepper{display:inline-flex;align-items:center;gap:.5rem;border:1px solid #111;border-radius:8px;padding:.1rem}
.stepper button{width:28px;height:28px;border:0;border-radius:6px;background:#111;color:#fff;font-size:1rem;line-height:1;cursor:pointer}
.stepper span{min-width:1.2rem;text-align:center;font-weight:700;font-size:.9rem}
.cart-bar{position:absolute;left:.75rem;right:.75rem;bottom:.75rem}
.cart-bar button{width:100%;min-height:48px;border:0;border-radius:12px;background:#111;color:#fff;font:inherit;font-weight:700;font-size:.92rem;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.25)}
.cart-bar button:hover{background:#333}
.sheet{position:absolute;inset:0;background:#fff;padding:1.25rem 1rem;overflow-y:auto;display:flex;flex-direction:column;gap:.75rem}
.sheet h3{margin:0;font-size:1.2rem}
.order-list{list-style:none;margin:0;padding:0}
.order-list li{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem 0;border-bottom:1px solid var(--border)}
.order-list b{display:block;font-size:.9rem;font-weight:600;color:#111}
.order-list span{font-size:.82rem;color:var(--muted)}
.order-total{display:flex;justify-content:space-between;font-size:1.05rem;margin:.25rem 0}
.order-total b{color:#111}
.sheet-actions{display:grid;gap:.5rem;margin-top:auto}
.sheet .btn{width:100%}
.sent-ok{width:3rem;height:3rem;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;font-size:1.4rem;margin:1rem 0 0}
.wa-preview{background:var(--wa-bg);border-radius:12px;padding:.75rem}
.wa-from{margin:0 0 .4rem;font-size:.72rem;font-weight:700;color:#54656f}
.wa-msg{margin:0;background:var(--wa-out);border-radius:10px;padding:.6rem .75rem;white-space:pre-line;font-size:.85rem;color:#111b21}
@media (max-width:420px){.phone{height:40rem;border-width:8px}.qr-box{flex-direction:column;text-align:center}}

/* Botón flotante de WhatsApp */
.wa-float{border:2px solid #fff;position:fixed;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:15;width:56px;height:56px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.wa-float svg{width:28px;height:28px;fill:currentColor}
.wa-float:hover{background:var(--accent-dark);color:#fff}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}.card:hover,.btn:hover,.chat:hover{transform:none}}

/* Tablet */
@media (min-width:700px){
  .g2{grid-template-columns:repeat(2,1fr)}
  .g3{grid-template-columns:repeat(3,1fr)}
  .contact{grid-template-columns:1.3fr 1fr}
  .foot{grid-template-columns:1.5fr 1fr 1fr 1fr}
  .band .inner{grid-template-columns:1fr auto}
  .row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
}
/* Escritorio */
@media (min-width:960px){
  .section{padding:4.5rem 0}
  .hero{padding:4.5rem 0 5rem}
  .hero-main{padding:6rem 0 0}
  .stage{height:26rem;padding-top:3rem}
  .float{display:flex}
  .page-head{padding:3.5rem 0}
  .split{grid-template-columns:1.15fr .85fr;gap:4rem}
  .sector{grid-template-columns:1.1fr .9fr;gap:3rem}
  .band{padding:3.5rem 0}
  footer{padding-bottom:3rem}
}
@media (min-width:1080px){
  .burger{display:none}
  .bar nav,.js .bar nav{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem 1.25rem;min-width:0;position:static;padding:.5rem 0;background:none;border:0;box-shadow:none}  /* si un traductor alarga los textos, pasa a dos líneas en vez de desbordarse */
  .bar nav a{padding:0;border:0;font-size:.95rem}
  .bar nav a.btn{margin:0 0 0 .25rem;min-height:40px;padding:.5rem 1rem}
}

/* Demo de carta QR: ficha de plato, pedido, entrega, pago y seguimiento */
.menu-brand{min-width:0}
.menu-top small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-tools{display:flex;align-items:center;gap:.4rem;flex:none}
.info-btn{width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:#fff;color:#111;font:700 .95rem/1 Georgia,serif;font-style:italic;cursor:pointer}
.info-btn:hover{border-color:#111}
.modes{display:flex;gap:.25rem;margin:0 1rem .5rem;padding:.2rem;background:var(--soft);border:1px solid var(--border);border-radius:999px}
.modes button{flex:1;min-width:0;font:inherit;font-size:.78rem;font-weight:600;padding:.4rem .3rem;border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modes button:hover{color:#111}
.modes button[aria-pressed="true"]{background:#111;color:#fff}
.modes.in-sheet{margin:0 0 .75rem}
.cats{border-top:1px solid var(--border)}
.dish-ico{flex:none;width:3rem;height:3rem;border-radius:12px;background:var(--soft);display:grid;place-items:center;font-size:1.5rem}
.dish-info{flex:1;min-width:0}
.dish-open{all:unset;cursor:pointer}
.dish-open::after{content:"";position:absolute;inset:0}
.dish-open:focus-visible{outline:none}
.dish:has(.dish-open:focus-visible){outline:3px solid #111;outline-offset:2px;border-radius:8px}
.dish:hover h4{text-decoration:underline;text-underline-offset:3px}
.dish-side{position:relative;z-index:1}
.phone .sheet{z-index:5}
.phone .cart-bar{z-index:3}
.add.has{background:#111;color:#fff}
.menu-foot{font-size:.72rem;color:var(--muted);text-align:center;margin:1rem 0 0}
.sheet{gap:.6rem;padding:1rem 1rem 1.25rem}
.sheet h3{font-size:1.15rem;outline:none}
.sheet h4{margin:0 0 .5rem;font-size:.85rem;font-weight:700;color:#111}
.small-p{margin:0;font-size:.82rem;line-height:1.45}
.sheet-close{position:absolute;top:.6rem;right:.6rem;z-index:2;width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:#fff;font-size:1.3rem;line-height:1;cursor:pointer}
.sheet-close:hover,.sheet-back:hover{border-color:#111}
.sheet-head{display:flex;align-items:center;gap:.6rem}
.sheet-back{width:36px;height:36px;flex:none;border-radius:50%;border:1px solid var(--border);background:#fff;font-size:1rem;cursor:pointer}
.dish-hero{height:7.5rem;flex:none;border-radius:14px;background:var(--soft);display:grid;place-items:center;font-size:3.6rem;margin-top:.25rem}
.opt-group{border:1px solid var(--border);border-radius:12px;padding:.5rem .8rem .3rem;margin:0}
.opt-group legend{display:flex;align-items:center;gap:.5rem;padding:0 .3rem;font-size:.85rem;font-weight:700;color:#111}
.opt-group legend em{font-style:normal;font-size:.68rem;font-weight:600;color:var(--muted);background:var(--soft);border-radius:999px;padding:.05rem .45rem}
.opt-group legend em.req{background:#111;color:#fff}
.phone .opt{display:flex;align-items:center;gap:.6rem;padding:.45rem 0;font-size:.88rem;cursor:pointer;border-bottom:1px solid var(--border)}
.phone .opt:last-of-type{border-bottom:0}
.phone .opt input{width:1.15rem;height:1.15rem;min-height:0;margin:0;padding:0;flex:none;accent-color:#111}
.phone .opt span{flex:1}
.phone .opt small{color:var(--muted);font-weight:600}
.f{display:grid;gap:.25rem}
.f label{font-size:.8rem;font-weight:600;color:#111}
.phone .f input,.phone .f textarea,.phone .f select{min-height:44px;padding:.5rem .75rem}
.phone .f textarea{min-height:64px;resize:vertical}
.f-err{margin:0;font-size:.78rem;font-weight:600;color:var(--err)}
.dish-foot{position:sticky;bottom:-1.25rem;margin:auto -1rem -1.25rem;padding:.75rem 1rem;background:#fff;border-top:1px solid var(--border);display:flex;gap:.6rem;align-items:center}
.dish-foot .btn{flex:1;min-height:44px;padding:.5rem .8rem;font-size:.9rem}
.order-list li>div{min-width:0}
.line-edit{all:unset;display:block;cursor:pointer;font-size:.9rem;font-weight:600;color:#111;text-decoration:underline;text-decoration-color:#CFCFCF;text-underline-offset:3px}
.line-edit:hover{text-decoration-color:#111}
.line-edit:focus-visible{outline:3px solid #111;outline-offset:2px;border-radius:4px}
.order-list small{display:block;font-size:.75rem;color:var(--muted);line-height:1.35}
.order-list .line-note{font-style:italic}
.link-more{align-self:flex-start;font:inherit;font-size:.85rem;font-weight:600;color:#111;background:none;border:0;padding:.25rem 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.o-sec{display:grid;gap:.6rem;padding-top:.75rem;border-top:1px solid var(--border)}
.o-sec>h4{margin:0}
.o-sec.opt-group{border-radius:12px;padding-top:.5rem;border-top:1px solid var(--border)}
.mode-info{margin:0;padding:.6rem .8rem;border-radius:10px;background:var(--soft);font-weight:600;font-size:.9rem}
.loc{display:grid;gap:.35rem}
.loc-btn{font:inherit;font-size:.85rem;font-weight:600;min-height:42px;border-radius:10px;border:1px dashed #111;background:#fff;color:#111;cursor:pointer}
.loc-btn:hover:not(:disabled){background:var(--soft)}
.loc-btn:disabled{opacity:.6;cursor:progress}
.loc-ok{margin:0;font-size:.8rem;font-weight:600}
.pay-note{margin:.25rem 0 .4rem;font-size:.75rem;color:var(--muted)}
.o-sum{border-top:1px solid var(--border);padding-top:.6rem}
.o-sum p{display:flex;justify-content:space-between;margin:.15rem 0;font-size:.88rem}
.o-sum .o-total{font-size:1.05rem;margin-top:.3rem}
.o-sum .o-total b{color:#111}
.btn:disabled{opacity:.45;cursor:not-allowed}
.sent-no{margin:0;font-weight:600;font-size:.9rem}
.track{list-style:none;margin:.25rem 0;padding:0;display:grid;gap:0}
.track li{position:relative;padding:.35rem 0 .35rem 1.9rem;font-size:.88rem;color:var(--muted)}
.track li::before{content:"";position:absolute;left:.2rem;top:.55rem;width:.9rem;height:.9rem;border-radius:50%;border:2px solid #D4D4D8;background:#fff;box-sizing:border-box}
.track li:not(:last-child)::after{content:"";position:absolute;left:.6rem;top:1.5rem;bottom:-.4rem;width:2px;background:#E4E4E7}
.track li.done{color:#111}
.track li.done::before{background:#111;border-color:#111}
.track li.now{color:#111;font-weight:700}
.track li.now::before{border-color:#111;box-shadow:0 0 0 4px rgba(17,17,17,.12)}
.info-list{margin:0;display:grid;gap:.15rem}
.info-list dt{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:.6rem}
.info-list dd{margin:0;font-size:.9rem;color:#111}
.hours{min-width:0;width:100%;font-size:.82rem}
.hours th,.hours td{padding:.2rem 0;text-align:left;border-bottom:1px solid var(--border);font-weight:400}
.hours td{text-align:right}
.hours tr.today{font-weight:700}
.hours tr.today th{font-weight:700}

.form-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.price strong.quote{font-size:1.5rem;margin-bottom:.2rem}
.form-fallback{border-top:1px solid var(--border);padding-top:1rem}
.form-fallback p{margin:0 0 .6rem;font-weight:600;color:#111}
