
/* Maqueta de presentación: panel de propuesta a la izquierda, teléfono con la app simulada a la derecha. */
:root {
  --bg: #e9ecea; --panel: #ffffff; --fg: #17262b; --muted: #5a6a6f; --line: #cfd6d3; --chip: #eef1ef;
  --display: "Barlow Condensed", "Roboto Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif-condensed, system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Tema de la app (lo cambian los selectores) */
  --brand: #141414; --on-brand: #ffffff; --head: #ffffff; --on-head: #141414; --accent: #ed0000; --on-accent: #ffffff; --ready: #1f9d55; --on-ready: #ffffff; --premium: #d99a00; --app-font: "Poppins", system-ui, sans-serif;
  --app-bg: #eceeea; --app-paper: #ffffff; --app-ink: #15262c; --app-muted: #586a70; --app-line: #ccd4d1;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 16px/1.5 var(--body); margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-block: 28px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 36px; align-items: start; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
.brandline { color: var(--muted); font-weight: 600; margin: 0 0 6px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.lead { max-width: 62ch; margin: 10px 0 0; }
.note { font-size: .88rem; color: var(--muted); }
section.block { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-top: 18px; }
section.block h2 { font-size: 1.55rem; margin-bottom: 4px; }
.phase { display: grid; gap: 8px; margin-top: 12px; }
.phase h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.phase h3 small { font: 600 .8rem var(--body); color: var(--muted); }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.mod { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mod b { display: block; }
.mod span { font-size: .9rem; color: var(--muted); }
.mod.star { border: 2px solid var(--fg); }
.tagline { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--chip); margin-left: 4px; vertical-align: 2px; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.themes button { font: 600 .95rem var(--body); border: 1.5px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 10px; padding: 8px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.themes button[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.sw { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-top: 8px; }
.controls label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.controls input[type=color] { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 3px; }
.controls input[type=file] { font: inherit; font-size: .85rem; max-width: 100%; color: var(--fg); }
ul.tips { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
:focus-visible { outline: 3px solid #e2711d; outline-offset: 2px; }

/* ---------- Teléfono ---------- */
.stage { position: sticky; top: max(16px, env(safe-area-inset-top, 0px)); display: grid; gap: 10px; justify-items: center; }
.viewas { display: flex; gap: 0; border: 1.5px solid var(--fg); border-radius: 99px; overflow: hidden; }
.viewas button { font: 600 .92rem var(--body); border: 0; background: transparent; color: var(--fg); padding: 8px 16px; cursor: pointer; min-height: 40px; }
.viewas button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.phone { width: 390px; max-width: 100%; height: 780px; border-radius: 44px; background: #0d1416; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: var(--app-bg); color: var(--app-ink); display: flex; flex-direction: column; position: relative; font-family: var(--app-font); }
.status { height: 34px; flex: none; background: var(--brand); color: var(--on-brand); font: 600 .78rem var(--body); display: flex; justify-content: space-between; align-items: center; padding: 0 26px; }
.apphead { background: var(--head); color: var(--on-head); padding: 6px 18px 14px; flex: none; border-bottom: 3px solid var(--accent); }
.apphead .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; }
.apphead button.back { background: none; border: 0; color: inherit; font: 600 .95rem var(--body); padding: 6px 0; cursor: pointer; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo img { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 1.2rem var(--display); flex: none; }
.logo .name { font: 700 1.15rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.apphead h2 { font: 700 2rem/1.05 var(--display); margin-top: 10px; color: var(--on-head); }
.bell { position: relative; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; }
.bell .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 .7rem/18px var(--body); text-align: center; }
.body { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.flash { background: var(--app-ink); color: #fff; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: .92rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--app-paper); border: 1px solid var(--app-line); border-radius: 14px; padding: 14px; text-align: left; cursor: pointer; color: var(--app-ink); font: inherit; display: grid; gap: 2px; min-height: 92px; align-content: end; }
.tile b { font: 700 1.25rem/1.1 var(--display); }
.tile span { font-size: .82rem; color: var(--app-muted); }
.tile.hero { grid-column: 1 / -1; background: var(--accent); color: var(--on-accent); border: 0; min-height: 120px; }
.tile.hero span { color: var(--on-accent); opacity: .85; }
.tile.hero b { font-size: 1.7rem; }
.tile .open { color: #1d7a45; font-weight: 700; }
.card { background: var(--app-paper); border: 1px solid var(--app-line); border-radius: 12px; padding: 12px 14px; }
.card h3 { font: 700 1.2rem var(--display); margin-bottom: 4px; }
.small { font-size: .85rem; color: var(--app-muted); }
.btn { font: 700 .95rem var(--body); border-radius: 10px; min-height: 44px; padding: 8px 14px; cursor: pointer; border: 1.5px solid var(--app-ink); background: var(--app-paper); color: var(--app-ink); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: grid; grid-template-columns: auto 1fr; background: var(--app-paper); border: 1px solid var(--app-line); border-radius: 6px 12px 12px 6px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--app-ink); padding: 0; width: 100%; }
.tag .num { background: var(--brand); color: var(--on-brand); font: 700 1.15rem var(--display); padding: 0 10px 0 24px; display: flex; align-items: center; position: relative; }
.tag .num::before { content: ""; position: absolute; left: 8px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--app-bg); }
.tag.premium .num { background: var(--premium); color: #141414; }
.tag .main { padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.tag .main b { font-size: 1rem; }
.chip { display: inline-block; font: 700 .72rem var(--body); padding: 2px 8px; border-radius: 99px; background: #e3e8e6; color: var(--app-ink); margin-right: 4px; }
.chip.ready { background: var(--ready); color: var(--on-ready); }
.chip.work { background: var(--app-ink); color: #fff; }
.chip.prem { background: var(--premium); color: #141414; }
.track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 10px 0 0; }
.track li { position: relative; text-align: center; font-size: .66rem; color: var(--app-muted); padding-top: 18px; }
.track li::after { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--app-paper); border: 2px solid var(--app-line); }
.track li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--app-line); }
.track li:first-child::before { display: none; }
.track li.done::after, .track li.now::after { background: var(--brand); border-color: var(--brand); }
.track li.done::before, .track li.now::before { background: var(--brand); }
.track li.now { color: var(--app-ink); font-weight: 700; }
.track li.now::after { box-shadow: 0 0 0 3px var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { font: 600 .92rem var(--body); border: 1.5px solid var(--app-line); background: var(--app-paper); color: var(--app-ink); border-radius: 10px; padding: 10px; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .h { text-align: center; font-size: .7rem; font-weight: 700; color: var(--app-muted); }
.cal button { border: 1.5px solid var(--app-ink); background: var(--app-paper); color: var(--app-ink); border-radius: 8px; min-height: 48px; padding: 2px; display: grid; align-content: center; cursor: pointer; font: inherit; }
.cal button b { font: 700 1.05rem/1.1 var(--display); }
.cal button small { font-size: .6rem; }
.cal button:disabled { border-style: dashed; border-color: var(--app-line); color: var(--app-muted); cursor: default; background: transparent; }
.cal button.prem { border-color: var(--premium); color: var(--premium); }
.cal button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .92rem; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.premiumbox { border: 1.5px solid var(--premium); border-radius: 12px; padding: 10px 12px; background: color-mix(in srgb, var(--premium) 8%, var(--app-paper)); }
dl.money { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 6px 0; }
dl.money dt { color: var(--app-muted); }
dl.money dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
dl.money .t { font-weight: 700; color: var(--app-ink); font-size: 1.05rem; }
.timeline { list-style: none; padding: 0 0 0 14px; margin: 6px 0 0; border-left: 2px solid var(--app-line); display: grid; gap: 10px; }
.timeline li { position: relative; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline .t { color: var(--app-muted); font-size: .75rem; }
.callout { background: var(--ready); color: var(--on-ready); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.group h3 { font: 700 1.05rem var(--display); margin: 2px 0 6px; display: flex; gap: 6px; align-items: center; }
.count { font: 700 .72rem var(--body); background: #e3e8e6; border-radius: 99px; padding: 1px 7px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.hours .today { font-weight: 700; }
/* Portada: menú principal con botones de fibra de carbono */
.status.light { background: #ffffff; color: #141414; }
.menu { flex: 1; overflow-y: auto; background: #ffffff; display: flex; flex-direction: column; align-items: center; padding: 26px 22px 18px; gap: 18px; }
.menu-logo { width: 210px; max-width: 80%; height: auto; margin-top: 8px; }
.menu-sub { margin: -6px 0 6px; font-size: .82rem; color: #5a5a5a; letter-spacing: .02em; text-align: center; }
.menu-btns { display: grid; gap: 14px; width: 100%; }
.carbon { position: relative; overflow: hidden; width: 100%; min-height: 66px; border: 0; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px;
  color: var(--accent); font: 700 clamp(1.15rem, 5.4vw, 1.4rem)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.6);
  background-color: #1b1b1b;
  background-image:
    linear-gradient(27deg, #151515 5px, transparent 5px), linear-gradient(207deg, #151515 5px, transparent 5px),
    linear-gradient(27deg, #222 5px, transparent 5px), linear-gradient(207deg, #222 5px, transparent 5px),
    linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
    linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
  background-size: 20px 20px; background-position: 0 5px, 10px 0, 0 10px, 10px 5px, 0 0, 0 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12); }
.carbon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 45%, rgba(0,0,0,0) 46%, rgba(0,0,0,.18) 100%); pointer-events: none; }
.carbon svg { flex: none; position: relative; }
.carbon span { position: relative; }
.carbon:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.carbon:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.convoy { margin-top: auto; display: flex; align-items: center; gap: 6px; text-decoration: none; color: #0b2545; font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .85; padding: 8px; }
.convoy:hover { opacity: 1; }
.form-field { display: grid; gap: 4px; font-weight: 600; font-size: .88rem; }
.form-field input { font: inherit; font-weight: 400; padding: 10px; border: 1.5px solid var(--app-line); border-radius: 8px; background: #fff; color: var(--app-ink); }
.post { display: grid; gap: 4px; }
.post .cat { font: 700 .7rem var(--body); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.social { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--app-ink); }
.social b { display: block; }
.foot { text-align: center; font-size: .7rem; color: var(--app-muted); padding: 4px 0 8px; }
.demo-badge { font: 700 .72rem var(--body); color: var(--muted); }

@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { position: static; order: -1; }
  .phone { height: 720px; }
}
@media (max-width: 430px) { .phone { padding: 6px; border-radius: 30px; height: 680px; } .screen { border-radius: 24px; } }
@media (prefers-reduced-motion: no-preference) { .body > * { animation: in .18s ease-out; } @keyframes in { from { transform: translateY(4px); } } }

/* ---------- App instalable: pantalla completa ---------- */
html, body { height: 100%; }
body { background: #e9ecea; color: #15262c; }
:root, :root[data-theme="dark"] { color-scheme: light; }
#screen { min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto; border-radius: 0; box-shadow: 0 0 40px rgba(0,0,0,.08); }
.screen { height: auto; }
.apphead { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); position: sticky; top: 0; z-index: 5; }
.body { overflow: visible; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
.menu { min-height: 100vh; min-height: 100dvh; padding-top: calc(env(safe-area-inset-top, 0px) + 34px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
.menu-logo { width: 240px; height: auto; }
.convoy img { display: block; width: 62px; height: auto; }
.install-link { background: none; border: 0; color: #5a5a5a; font: 600 .88rem var(--app-font); text-decoration: underline; cursor: pointer; padding: 8px; }
.mode { background: none; border: 1.5px solid currentColor; color: inherit; border-radius: 99px; font: 600 .78rem var(--app-font); padding: 6px 10px; cursor: pointer; }
.mode-link { background: none; border: 1.5px dashed var(--app-line); color: var(--app-muted); border-radius: 12px; font: 600 .85rem var(--app-font); padding: 12px; cursor: pointer; }
.pending-body { min-height: 60vh; display: grid; place-items: center; }
.pending { display: grid; justify-items: center; gap: 10px; color: var(--app-muted); text-align: center; }
.pending p { font: 700 1.5rem var(--display); color: var(--app-ink); margin: 0; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; z-index: 20; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; color: #15262c; border-radius: 16px; padding: 20px; max-width: 360px; display: grid; gap: 12px; font-family: var(--app-font); }
.modal-box h2 { font: 700 1.5rem var(--display); margin: 0; }
