/* 16devs.com
   Sistema: CSS nativo, Geist autoalojada, tokens en :root.
   Formas: controles 10px, contenedores 18px, chips pill. Un solo acento (verde). */

@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eceff0;
  --ink: #0e1514;
  --muted: #4a5654;
  --line: #d9dfdd;
  --accent: #0b7a55;
  --accent-ink: #ffffff;
  --accent-soft: #dff1e8;
  --dark: #111918;
  --dark-ink: #edf2f1;
  --dark-muted: #a3b0ad;
  --danger: #b4321f;
  --shadow: 0 1px 0 rgb(14 21 20 / .04), 0 18px 40px -22px rgb(11 60 44 / .28);

  --r-ctl: 10px;
  --r-box: 18px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0f0e;
  --surface: #131918;
  --surface-2: #1a2120;
  --ink: #eef2f1;
  --muted: #a0adaa;
  --line: #25302e;
  --accent: #34d399;
  --accent-ink: #04120c;
  --accent-soft: #10291f;
  --dark: #1a2321;
  --dark-ink: #eef2f1;
  --dark-muted: #a0adaa;
  --danger: #ff8a75;
  --shadow: 0 1px 0 rgb(255 255 255 / .03), 0 18px 40px -22px rgb(0 0 0 / .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-ctl); text-decoration: none; }
.skip:focus { top: 12px; }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.b { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* Tipografía */
.display { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(2.35rem, 5.4vw, 4.1rem); text-wrap: balance; }
.h2 { font-weight: 600; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-wrap: balance; }
.h3 { font-weight: 600; letter-spacing: -.015em; line-height: 1.25; font-size: 1.25rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; max-width: 56ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow { font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sec-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-stuck { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 6px; margin-inline: auto 0; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-ctl); color: var(--muted); font-weight: 500; font-size: .98rem; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links .menu-cta { display: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: transparent; transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.nav .btn { min-height: 44px; padding: 0 18px; }
.menu-btn { display: none; }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead { max-width: 46ch; }
.hero .display { font-size: clamp(2.35rem, 4.7vw, 3.7rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-stage { position: relative; display: grid; gap: 16px; padding-bottom: 8px; }

/* Widgets del hero (componentes reales) */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; box-shadow: var(--shadow); }
.widget + .widget { margin-left: clamp(0px, 4vw, 44px); }
.w-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.w-title { font-weight: 600; font-size: 1rem; }
.w-meta { font: 500 .8125rem var(--mono); color: var(--muted); }
.w-list { display: grid; gap: 4px; }
.appt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; margin-inline: -8px; border-radius: var(--r-ctl); cursor: pointer; transition: background-color .2s; }
.appt:hover { background: var(--surface-2); }
.appt input { position: absolute; opacity: 0; pointer-events: none; }
.appt .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--muted); color: transparent; transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease); }
.appt input:checked + .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.05); }
.appt input:focus-visible + .tick { outline: 2px solid var(--accent); outline-offset: 3px; }
.appt .who { display: grid; line-height: 1.3; }
.appt .who b { font-weight: 600; font-size: .98rem; }
.appt .who span { font-size: .875rem; color: var(--muted); }
.appt input:checked ~ .who b { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.appt time { font: 500 .875rem var(--mono); color: var(--muted); }
.money { font-size: clamp(2.1rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.w-row p { font-size: .94rem; line-height: 1.35; }
.w-row small { display: block; color: var(--muted); font-size: .84rem; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .94rem; }
.demo-note { font-size: .84rem; color: var(--muted); }

/* Integraciones (única marquesina de la página) */
.logos { padding-block: 28px; border-block: 1px solid var(--line); }
.logos-in { display: grid; gap: 20px; }
.logos-title { text-align: center; color: var(--muted); font-size: .96rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; padding-right: 56px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee svg { width: 30px; height: 30px; color: var(--muted); transition: color .2s; }
.marquee li:hover svg { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Ventajas (bento 4 celdas) */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell { border-radius: var(--r-box); padding: clamp(24px, 3vw, 36px); display: grid; align-content: space-between; gap: 40px; min-height: 280px; border: 1px solid var(--line); background: var(--surface); }
.cell h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin-bottom: 12px; text-wrap: balance; }
.cell p { color: var(--muted); max-width: 44ch; }
.cell .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); }
.cell .ico .i { width: 24px; height: 24px; }
.c1 { grid-column: span 7; background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.c1 p { color: var(--accent-ink); }
.c1 .ico { background: color-mix(in srgb, var(--accent-ink) 16%, transparent); color: var(--accent-ink); }
.c2 { grid-column: span 5; }
.c3 { grid-column: span 5; background: var(--dark); border-color: transparent; color: var(--dark-ink); }
.c3 p { color: var(--dark-muted); }
.c3 .ico { background: color-mix(in srgb, var(--dark-ink) 12%, transparent); color: var(--dark-ink); }
.c4 { grid-column: span 7; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.c4 > * { position: relative; }
.cell .price-big { color: var(--ink); max-width: none; }
.price-big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.price-big small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.mini-logos { display: flex; gap: 10px; }
.mini-logos span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); }
.mini-logos svg { width: 22px; height: 22px; }

/* Trabajos (demos) */
.showcase { background: var(--surface); border-block: 1px solid var(--line); }
.showcase-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.tabs { display: grid; gap: 6px; position: sticky; top: 92px; max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tab { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: var(--r-ctl); border: 1px solid transparent; background: transparent; transition: background-color .2s, border-color .2s; }
.tab:hover { background: var(--surface-2); }
.tab .i { width: 22px; height: 22px; color: var(--muted); transition: color .2s; }
.tab b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.tab small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.3; margin-top: 2px; }
.tab[aria-selected="true"] { background: var(--bg); border-color: var(--line); box-shadow: var(--shadow); }
.tab[aria-selected="true"] .i { color: var(--accent); }
.stage { min-width: 0; display: grid; gap: 20px; }
.stage-intro { display: grid; gap: 10px; }
.stage-intro p { color: var(--muted); max-width: 62ch; }
.uses { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: .875rem; font-weight: 500; }
.chip svg { width: 15px; height: 15px; }
.app { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; box-shadow: var(--shadow); }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app-bar b { font-weight: 600; }
.app-bar span { font: 500 .8125rem var(--mono); color: var(--muted); }
.app-body { padding: clamp(16px, 2.4vw, 28px); min-height: 400px; animation: pane .5s var(--ease); }
@keyframes pane { from { opacity: 0; transform: translateY(8px); } }
.app-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface); }

/* Piezas comunes de las demos */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-ctl); background: var(--surface-2); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 7px; font-weight: 500; font-size: .94rem; color: var(--muted); min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .94rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .tr { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .2s; }
.switch .tr::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .3s var(--ease); }
.switch input:checked + .tr { background: var(--accent); }
.switch input:checked + .tr::after { transform: translateX(18px); }
.switch input:focus-visible + .tr { outline: 2px solid var(--accent); outline-offset: 3px; }
.slots { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.slot:hover { border-color: var(--ink); transform: translateX(2px); }
.slot time { font: 500 .94rem var(--mono); color: var(--muted); }
.slot .what { font-weight: 500; }
.slot .what small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }
.slot.is-busy { background: var(--accent-soft); border-color: transparent; }
.slot .tag { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.slot.is-busy .tag { color: var(--accent); }
.tbl { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tbl th { text-align: left; font-weight: 500; font-size: .84rem; color: var(--muted); padding: 0 12px 10px; }
.tbl td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num { text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.qty button:hover { border-color: var(--ink); }
.qty output { min-width: 30px; text-align: center; font: 600 .96rem var(--mono); }
.totals { display: grid; gap: 6px; justify-items: end; margin-top: 18px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; gap: 28px; justify-content: space-between; min-width: 260px; color: var(--muted); }
.totals .grand { color: var(--ink); font-weight: 600; font-size: 1.35rem; padding-top: 8px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 600; }
.status[data-s="sent"] { border-color: var(--ink); }
.status[data-s="paid"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.low { color: var(--danger); font-weight: 600; font-size: .86rem; }
.ok { color: var(--muted); font-size: .86rem; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.col { background: var(--surface-2); border-radius: 14px; padding: 12px; display: grid; gap: 10px; align-content: start; }
.col-h { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px; font-weight: 600; font-size: .94rem; }
.col-h span { font: 500 .8125rem var(--mono); color: var(--muted); }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; animation: pane .4s var(--ease); }
.deal b { font-weight: 600; line-height: 1.25; }
.deal small { color: var(--muted); }
.deal .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-btn { border: 0; background: none; padding: 6px 2px; color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.jobs { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.job b { font-weight: 600; display: block; line-height: 1.3; }
.job small { color: var(--muted); display: block; }
.job[data-s="doing"] { border-color: var(--accent); }
.job[data-s="done"] { background: var(--accent-soft); border-color: transparent; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.kpi small { color: var(--muted); font-size: .84rem; }
.kpi b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.bars { display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 14px); height: 190px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; display: flex; align-items: flex-end; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--accent); transform-origin: bottom; animation: grow .7s var(--ease) backwards; }
.bar:nth-child(odd) i { opacity: .72; }
@keyframes grow { from { transform: scaleY(0); } }
.bar-labels { display: flex; gap: clamp(6px, 1.4vw, 14px); margin-top: 8px; font: 500 .78rem var(--mono); color: var(--muted); }
.bar-labels span { flex: 1; text-align: center; min-width: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-ctl); font-weight: 500; font-size: .96rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); max-width: min(92vw, 460px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Eirene: demo y marca "Powered by" */
.tab-logo { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.app-name { display: inline-flex; align-items: center; gap: 10px; }
.app-logo { width: 22px; height: 22px; }
.reqs { display: grid; gap: 12px; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 16px; display: grid; gap: 10px; animation: pane .4s var(--ease); }
.req.is-closed { opacity: .65; }
.req-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.req-head b { font: 600 .94rem var(--mono); }
.req-head .chip { padding: 3px 10px; font-size: .8125rem; }
.req-title { font-weight: 500; line-height: 1.35; }
.req-steps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.req-steps b { font-size: .9rem; font-weight: 600; }
.bar6 { display: inline-flex; gap: 4px; }
.bar6 i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); transition: background-color .3s; }
.bar6 i.on { background: var(--accent); }
.req-note { font-size: .88rem; color: var(--muted); padding: 10px 12px; border-radius: 8px; background: var(--surface-2); line-height: 1.4; }
.req-note b { color: var(--ink); font-weight: 600; }
.req-act { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.req-new { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-bottom: 14px; }
.req-new input, .req-new select { min-height: 42px; padding: 8px 12px; border-radius: var(--r-ctl); border: 1px solid var(--muted); background: var(--surface); }
.req-new input:focus, .req-new select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.powered { display: inline-flex; align-items: center; gap: 8px; }
.powered img { width: 20px; height: 20px; }
.powered b { color: var(--ink); font-weight: 600; }
.nav-powered { margin-left: -6px; padding-left: 14px; border-left: 1px solid var(--line); font-size: .84rem; line-height: 1; color: var(--muted); white-space: nowrap; }
.nav-powered img { width: 18px; height: 18px; }
@media (max-width: 430px) { .nav-in { gap: 12px; } .nav-powered { padding-left: 10px; gap: 6px; font-size: .78rem; } }
@media (max-width: 370px) { .nav-powered .pw-label { display: none; } }
.powered-note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--muted); font-size: .96rem; line-height: 1.45; max-width: 440px; }
.powered-note img { width: 40px; height: 40px; }
.powered-note b { color: var(--ink); font-weight: 600; }
.powered-note a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 520px) { .req-new { grid-template-columns: 1fr; } .bar6 i { width: 22px; } }

/* Reservas y entradas */
.scroll-x { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
.roomgrid { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 6px; font-size: .9rem; }
.roomgrid th { font-weight: 500; color: var(--muted); text-align: center; }
.roomgrid th[scope="row"] { text-align: left; color: var(--ink); font-weight: 600; white-space: nowrap; }
.roomgrid th small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.cellbtn { width: 100%; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 500; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.cellbtn:hover:not(:disabled) { border-color: var(--ink); }
.cellbtn:active:not(:disabled) { transform: scale(.97); }
.cellbtn.is-busy { background: var(--surface-2); color: var(--muted); }
.cellbtn.is-mine { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cellbtn:disabled { cursor: not-allowed; }
.tslots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cellbtn.big { min-height: 64px; display: grid; align-content: center; gap: 2px; font-size: 1.05rem; font-weight: 600; }
.cellbtn.big small { font-size: .78rem; font-weight: 500; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.sector { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.sector .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); }
.sector .ico .i { width: 26px; height: 26px; }
.sector h3 { margin-bottom: 6px; }
.sector p { color: var(--muted); }
.sector-aside { display: grid; gap: 14px; align-content: start; }

/* Cómo trabajamos */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-intro { position: sticky; top: 110px; display: grid; gap: 20px; justify-items: start; }
.steps { display: grid; gap: 0; counter-reset: s; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 44px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 4px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); position: relative; z-index: 1; }
.step .ico .i { width: 26px; height: 26px; }
.step h3 { margin: 6px 0 6px; font-size: 1.5rem; letter-spacing: -.025em; }
.step p { color: var(--muted); max-width: 48ch; }

/* Precios */
.plans { display: grid; grid-template-columns: 1fr 1.14fr 1fr; gap: 16px; align-items: stretch; }
.plan { display: grid; align-content: start; gap: 22px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-box); border: 1px solid var(--line); background: var(--surface); }
.plan.is-feat { background: var(--dark); color: var(--dark-ink); border-color: var(--accent); padding-block: clamp(30px, 4vw, 46px); box-shadow: var(--shadow); }
.plan.is-feat .muted, .plan.is-feat li { color: var(--dark-muted); }
.plan.is-feat .btn-primary { background: var(--accent); color: var(--accent-ink); }
.plan-top { display: grid; gap: 6px; }
.plan-name { font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-badge { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.plan-price { font-size: clamp(2.5rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: .98rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan.is-feat .plan-price small { color: var(--dark-muted); }
.plan ul { display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--muted); line-height: 1.45; }
.plan li .i { color: var(--accent); width: 20px; height: 20px; margin-top: 1px; }
.plan .btn { width: 100%; margin-top: 4px; }
.fine { margin-top: 22px; color: var(--muted); font-size: .94rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { transition: transform .35s var(--ease); color: var(--muted); }
.faq-list details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.faq-list details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 62ch; }

/* Contacto */
.contact { background: var(--dark); color: var(--dark-ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .lead { color: var(--dark-muted); }
.contact-copy { display: grid; gap: 20px; }
.contact .points { display: grid; gap: 14px; margin-top: 8px; }
.contact .points li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--dark-muted); }
.contact .contact-direct { margin-top: 4px; }
.contact .contact-direct a { color: var(--dark-ink); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 6px; }
.contact .contact-direct a:hover { color: var(--accent); }
.contact .points .i { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.form { display: grid; gap: 18px; background: var(--surface); color: var(--ink); border-radius: var(--r-box); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .96rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-ctl); border: 1px solid var(--muted); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field .help { font-size: .86rem; color: var(--muted); }
.field .err { font-size: .88rem; color: var(--danger); font-weight: 500; min-height: 0; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--danger); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-ok { display: none; text-align: center; gap: 14px; justify-items: center; padding: 28px 8px; }
.form.is-sent > :not(.form-ok) { display: none; }
.form.is-sent .form-ok { display: grid; }
.form-ok .ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.form-ok .ico .i { width: 28px; height: 28px; }

/* Footer */
.footer { padding-block: 44px; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .94rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Páginas legales / 404 */
.doc { max-width: 760px; padding-block: 64px 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.doc h2 { font-size: 1.35rem; font-weight: 600; margin: 36px 0 10px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--muted); margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc .draft { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); }

/* Revelado al hacer scroll (jerarquía: guía la lectura en orden) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .hero h1.rv { animation-name: rise-t; }
.js .hero .rv { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms + 60ms); opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
/* El titular (elemento LCP) solo se desplaza: con opacidad 0 inicial el navegador no lo cuenta como pintado */
@keyframes rise-t { from { transform: translateY(14px); } }

/* Responsive */
@media (max-width: 1020px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .tabs { position: static; max-height: none; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; gap: 8px; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { grid-template-columns: auto; justify-items: start; gap: 8px; min-width: 188px; scroll-snap-align: start; border-color: var(--line); background: var(--bg); }
  .tab small { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan.is-feat { order: -1; }
}
@media (max-width: 980px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: grid; }
  .nav-tools { margin-left: auto; }
  .nav.is-open .nav-links { display: grid; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 2px; margin: 0; }
  .nav.is-open .nav-links a { padding: 14px 8px; font-size: 1.1rem; }
  .nav.is-open .nav-links .menu-cta { display: inline-flex; justify-content: center; margin-top: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
  .nav.is-open .nav-links .menu-cta:hover { background: var(--accent); color: var(--accent-ink); }
}
@media (max-width: 860px) {
  .hero-grid, .process, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .bento > .cell { grid-column: 1 / -1; min-height: 0; }
  .sectors { grid-template-columns: 1fr; }
  .widget + .widget { margin-inline: 0; }
  .field-2 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .cta-row .btn { width: 100%; }
  .kpis { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 52px 1fr auto; padding-inline: 12px; }
  .totals div { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}
