/* Cyberal — sitio web v2. Oscuro, vidrio, luz naranja. Tipografía Geist. */

@font-face { font-family: "Geist"; src: url("../fonts/geist/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0b0d;
  --ink: #f4f4f5;
  --ink-2: #c4c6cc;
  --muted: #8f9198;
  --accent: #f26522;
  --accent-2: #ff8a4c;
  --accent-soft: rgba(242, 101, 34, 0.14);
  --ok: #3ddc84;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(22, 23, 28, 0.6);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(44px, 6.4vw, 108px);
  --t-h2: clamp(36px, 4.4vw, 72px);
  --t-h3: clamp(22px, 1.7vw, 28px);
  --t-lead: clamp(17px, 1.3vw, 20px);
  --t-body: 16px;
  --t-small: 14px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 300; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; }
h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #0b0b0d; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #0b0b0d; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--accent-2); font-weight: 500; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.h2 { font-size: var(--t-h2); }
.lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.6; max-width: 48ch; }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.muted { color: var(--muted); }

/* vidrio */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease, box-shadow 300ms ease; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn .arr { transition: transform 240ms var(--ease); }
.btn--p { background: var(--accent); color: #0b0b0d; }
.btn--p::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 700ms var(--ease); }
.btn--g { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn--w { background: var(--ink); color: #0b0b0d; }
@media (hover: hover) and (pointer: fine) {
  .btn--p:hover { box-shadow: 0 10px 40px -8px rgba(242, 101, 34, 0.7); }
  .btn--p:hover::after { transform: translateX(120%); }
  .btn--g:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
  .btn--w:hover { background: #fff; }
  .btn:hover .arr { transform: translateX(4px); }
}

/* ------------------------------------------------------------------ cabecera */
.header { position: fixed; inset: 0 0 auto; z-index: 40; padding-top: env(safe-area-inset-top, 0px); transition: background-color 300ms ease, border-color 300ms ease; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(11, 11, 13, 0.66); border-bottom-color: var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.header__logo img { height: 22px; width: auto; }
.header nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.header nav a { font-size: 15px; color: var(--ink-2); transition: color 180ms ease; }
.header nav a:hover { color: var(--ink); }
.header__cta { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; place-items: center; }
.menu-btn span { width: 18px; height: 1.5px; background: var(--ink); position: relative; display: block; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform 240ms var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mnav { position: fixed; inset: 80px 12px auto; z-index: 39; padding: 10px; display: grid; gap: 2px; border-radius: 18px; background: rgba(18, 19, 24, 0.95); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.mnav[hidden] { display: none; }
.mnav a { padding: 14px; border-radius: 12px; font-size: 18px; }
.mnav a:hover { background: rgba(255, 255, 255, 0.05); }

/* ------------------------------------------------------------------ héroe: logo 3D + red neuronal */
.hero { position: relative; height: 240vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(55% 60% at 70% 48%, rgba(242, 101, 34, 0.13), transparent 62%), radial-gradient(35% 40% at 12% 88%, rgba(255, 255, 255, 0.035), transparent 70%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#net { z-index: 1; }
#gl { z-index: 2; pointer-events: none; }
.hero__fallback { position: absolute; z-index: 2; right: 9%; top: 50%; width: min(36vw, 440px); transform: translateY(-50%); display: none; }
.no-webgl .hero__fallback { display: block; }
.hero__copy { position: absolute; z-index: 6; left: 0; right: 0; top: 50%; transform: translateY(-44%); pointer-events: none; }
.hero__copy .inner { max-width: 660px; pointer-events: auto; }
.hero h1 { font-size: var(--t-hero); }
.hero__sub { margin: 28px 0 38px; font-size: var(--t-lead); color: var(--ink-2); max-width: 44ch; line-height: 1.6; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wm > span { display: inline-block; }
.hero__labels span { position: absolute; z-index: 7; font-size: 15px; opacity: 0; transform: translate(-50%, -50%); white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: rgba(11, 11, 13, 0.6); border: 1px solid rgba(242, 101, 34, 0.38); backdrop-filter: blur(6px); pointer-events: none; }
.hero__labels span:last-child { border-color: rgba(255, 255, 255, 0.3); }
.hero__chapter { position: absolute; z-index: 6; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 16vh; max-width: 420px; opacity: 0; }
.hero__chapter h2 { font-size: clamp(30px, 3.1vw, 50px); line-height: 1.03; margin-bottom: 14px; }
.hero__chapter p { color: var(--ink-2); }
.hero__hint { position: absolute; z-index: 6; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 22px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.hero__hint b { color: var(--ink-2); font-weight: 500; }

/* ------------------------------------------------------------------ cinta de servicios */
.band { position: relative; z-index: 3; border-block: 1px solid var(--line); background: rgba(11, 11, 13, 0.7); overflow: hidden; padding-block: 22px; }
.band__track { display: flex; gap: 48px; width: max-content; animation: band 40s linear infinite; font-size: clamp(26px, 2.8vw, 40px); font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.band__track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32); }
.band__track i { font-style: normal; color: var(--accent); font-size: 0.6em; align-self: center; }
@keyframes band { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ autodiagnóstico */
.diag__board { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.diag__panel { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; min-height: 560px; }
.diag__swap { display: flex; flex-direction: column; gap: 28px; flex: 1; }
.diag__swap.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity 160ms ease, transform 160ms var(--ease); }
.diag__swap.is-entering { animation: qIn 380ms var(--ease) both; }
@keyframes qIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.diag__progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.diag__progress span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: background-color 300ms ease, box-shadow 300ms ease; }
.diag__progress span.done { background: var(--ink); }
.diag__progress span.risk { background: var(--accent); box-shadow: 0 0 12px rgba(242, 101, 34, 0.6); }
.diag__q { font-size: clamp(26px, 2.6vw, 40px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.12; max-width: 22ch; min-height: 3.4em; }
.diag__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.diag__answer { position: relative; min-height: 120px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: clamp(30px, 3vw, 44px); font-weight: 300; text-align: left; padding: 20px 24px; cursor: pointer; overflow: hidden; transition: border-color 200ms ease, background-color 200ms ease, transform 140ms var(--ease); }
.diag__answer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 101, 34, 0.22), transparent 60%); opacity: 0; transition: opacity 240ms ease; }
.diag__answer:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .diag__answer:hover { border-color: rgba(242, 101, 34, 0.6); } .diag__answer:hover::before { opacity: 1; } }
.diag__answer span { position: relative; }
.diag__nav { display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-small); color: var(--muted); }
.diag__nav button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; }
.diag__map { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; overflow: hidden; }
.diag__map svg { width: 100%; height: auto; flex: 1; overflow: visible; }
.diag__mapnote { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.diag__fallback { display: grid; gap: 10px; }
.diag__fallback li { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.js .diag__fallback, .js .diag__fallback-cta { display: none; }
.net-line { stroke: rgba(255, 255, 255, 0.14); stroke-width: 2; transition: stroke 300ms ease; }
.net-line.ok { stroke: rgba(255, 255, 255, 0.55); stroke-dasharray: 4 10; animation: flow 1.2s linear infinite; }
.net-line.risk { stroke: var(--accent); stroke-dasharray: 6 6; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.net-node path { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 3; stroke-linejoin: round; transition: stroke 300ms ease; }
.net-node .halo { fill: rgba(242, 101, 34, 0); transition: fill 300ms ease; }
.net-node text, .net-core text { font: 400 24px var(--font); paint-order: stroke; stroke: #15161b; stroke-width: 8px; stroke-linejoin: round; }
.net-node text { fill: var(--muted); transition: fill 300ms ease; }
.net-node .risk-label { fill: var(--accent-2); font-size: 20px; opacity: 0; transition: opacity 300ms ease; }
.net-node.is-current path { stroke: var(--ink); }
.net-node.is-current text { fill: var(--ink); }
.net-node.is-current .pulse { animation: nodePulse 1.6s var(--ease) infinite; }
.net-node .pulse { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes nodePulse { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.net-node.ok path { stroke: var(--ink); } .net-node.ok text { fill: var(--ink); }
.net-node.risk path { stroke: var(--accent); } .net-node.risk text { fill: var(--ink); } .net-node.risk .risk-label { opacity: 1; }
.net-node.risk .halo { fill: rgba(242, 101, 34, 0.22); }
.net-core path { fill: rgba(242, 101, 34, 0.08); stroke: var(--accent); stroke-width: 3.5; filter: drop-shadow(0 0 10px rgba(242, 101, 34, 0.7)); }
.net-core text { fill: var(--ink); font-weight: 500; }
.report h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; }
.report__date { font-size: var(--t-small); color: var(--muted); }
.report__list { display: grid; gap: 10px; }
.report__list li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.report__list .ic { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; font-size: 14px; }
.report__list strong { font-weight: 600; }
.report__list .what { color: var(--ink-2); font-size: 15px; }
.report__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.report__restart { background: none; border: 0; padding: 0 6px; cursor: pointer; font-size: var(--t-small); color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; }

/* ------------------------------------------------------------------ servicios: tarjetas con foco */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; grid-column: span 2; padding: 28px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; min-height: 330px; transition: border-color 300ms ease; }
.svc:nth-child(1), .svc:nth-child(2) { grid-column: span 3; }
.svc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 101, 34, 0.16), transparent 55%); opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .svc:hover { border-color: rgba(242, 101, 34, 0.35); } .svc:hover::before { opacity: 1; } }
.svc__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(242, 101, 34, 0.22), rgba(242, 101, 34, 0.04)); border: 1px solid rgba(242, 101, 34, 0.3); color: var(--accent-2); }
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: var(--t-h3); margin-top: 8px; }
.svc .pain { color: var(--accent-2); font-size: 15px; }
.svc p { color: var(--ink-2); font-size: 15.5px; }
.svc ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svc li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink-2); }

/* ------------------------------------------------------------------ monitoreo: panel en vivo */
.mon { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mon__bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(55% 60% at 70% 50%, #000, transparent); mask-image: radial-gradient(55% 60% at 70% 50%, #000, transparent); opacity: 0.55; pointer-events: none; }
.mon__copy h2 .o { color: var(--accent); }
.mon__list { display: grid; gap: 14px; margin: 32px 0 36px; }
.mon__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.mon__list li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ff8a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.scene { position: relative; perspective: 1400px; height: 560px; }
.dash { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(9deg); transition: transform 600ms var(--ease); }
.panel { position: absolute; border-radius: 18px; background: rgba(20, 21, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.09); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.p-main { left: 0; top: 40px; width: 80%; padding: 22px; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.live { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 12px 14px; }
.kpi small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.kpi b { font-weight: 400; font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chart { height: 140px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; position: relative; overflow: hidden; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .stroke { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.devs { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; }
.dev { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.dev .st { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.dev .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dev.bad .st i { background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.p-cam { right: 0; top: 0; width: 44%; height: 210px; padding: 10px; transform: translateZ(90px); }
.cam { position: relative; height: 100%; border-radius: 12px; overflow: hidden; background: #111; }
.cam img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) brightness(0.8); }
.cam .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 4px); }
.cam .sweep { position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(transparent, rgba(242, 101, 34, 0.16), transparent); animation: sweep 3.4s linear infinite; }
@keyframes sweep { from { top: -40%; } to { top: 100%; } }
.cam .rec { position: absolute; top: 10px; left: 12px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cam .rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(2) infinite; }
.cam .ts { position: absolute; bottom: 10px; right: 12px; font-size: 12px; color: #ddd; font-variant-numeric: tabular-nums; }
.p-toast { right: 4%; bottom: 30px; width: 54%; padding: 14px 16px; transform: translateZ(150px) translateY(30px); opacity: 0; display: flex; gap: 12px; align-items: flex-start; transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.p-toast.show { opacity: 1; transform: translateZ(150px); }
.p-toast .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; transition: background 400ms, color 400ms; }
.p-toast.ok .ic { background: rgba(61, 220, 132, 0.15); color: var(--ok); }
.p-toast b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.p-toast span { font-size: 13px; color: var(--muted); }
.illus { position: absolute; bottom: -28px; left: 0; font-size: 12px; color: #6f727a; }

/* ------------------------------------------------------------------ cómo trabajamos: línea de tiempo */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 56px; }
.steps__rail { position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 16px rgba(242, 101, 34, 0.7); }
.step { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.step__dot { position: absolute; top: -47px; left: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(255, 255, 255, 0.25); transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease; }
.step.is-on .step__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(242, 101, 34, 0.18), 0 0 20px rgba(242, 101, 34, 0.8); }
.step__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .deliver { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.step .deliver b { color: var(--accent-2); font-weight: 500; }

/* ------------------------------------------------------------------ llamado: borde de luz giratorio */
.offer { position: relative; border-radius: 28px; padding: 1px; overflow: hidden; isolation: isolate; }
.offer::before { content: ""; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 70%, var(--accent) 80%, #ffd2b8 85%, var(--accent) 90%, transparent 100%); animation: spin 6s linear infinite; }
.offer::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 27px; background: radial-gradient(80% 120% at 0% 0%, rgba(242, 101, 34, 0.16), transparent 50%), #111216; }
@keyframes spin { to { transform: rotate(360deg); } }
.offer__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: clamp(32px, 5vw, 72px); align-items: center; }
.offer h2 { font-size: clamp(36px, 4vw, 64px); }
.offer p { color: var(--ink-2); margin: 20px 0 32px; max-width: 46ch; font-size: var(--t-lead); }
.offer__incl { display: grid; gap: 12px; }
.offer__incl li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 16px; }
.offer__incl svg { flex: none; width: 22px; height: 22px; color: var(--accent-2); }

/* ------------------------------------------------------------------ equipo */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member { padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.member__av { width: 84px; height: 76px; }
.member__av svg { width: 100%; height: 100%; overflow: visible; }
.member__av path { fill: rgba(242, 101, 34, 0.06); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(242, 101, 34, 0.5)); }
.member__av text { fill: var(--ink); font: 500 17px var(--font); }
.member h3 { font-size: 22px; }
.member .role { color: var(--accent-2); font-size: 14px; margin-top: 4px; }
.member p { color: var(--ink-2); font-size: 15.5px; }
.member .edge { margin-top: auto; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ preguntas */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head p { margin-top: 20px; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); transition: border-color 300ms ease, background-color 300ms ease; }
.qa.is-open { border-color: rgba(242, 101, 34, 0.35); background: rgba(242, 101, 34, 0.05); }
.qa h3 { margin: 0; }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; background: none; border: 0; cursor: pointer; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.qa .pm { position: relative; flex: none; width: 14px; height: 14px; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--ease); }
.qa .pm::after { transform: rotate(90deg); }
.qa.is-open .pm::after { transform: rotate(0); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease); }
.qa.is-open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 24px 22px; color: var(--ink-2); max-width: 62ch; }

/* ------------------------------------------------------------------ contacto */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__ways { display: grid; gap: 12px; margin-top: 36px; }
.way { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); transition: border-color 240ms ease, transform 240ms var(--ease); }
.way:hover { border-color: rgba(242, 101, 34, 0.4); transform: translateY(-2px); }
.way__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.way__ic svg { width: 22px; height: 22px; }
.way small { display: block; color: var(--muted); font-size: 13px; }
.way b { font-weight: 500; font-size: 18px; }
.form { padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; height: 60px; padding: 26px 16px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--ink); font-size: 16px; outline: none; appearance: none; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.field textarea { height: 120px; resize: vertical; padding-top: 30px; }
.field select { cursor: pointer; }
.field select option { background: #15161b; }
.field label { position: absolute; left: 17px; top: 19px; font-size: 16px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform 200ms var(--ease), color 200ms ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(242, 101, 34, 0.7); background: rgba(242, 101, 34, 0.04); box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field--select label { transform: translateY(-11px) scale(0.78); color: var(--ink-2); }
.field--select::after { content: ""; position: absolute; right: 18px; top: 26px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { text-decoration: underline; text-underline-offset: 0.2em; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 15px; min-height: 24px; }
.form__status.ok { color: var(--ok); } .form__status.err { color: #ff8f8f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ pie */
.footer { position: relative; padding-block: clamp(72px, 9vw, 120px) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__glow { position: absolute; left: 50%; bottom: -40%; width: 80%; height: 80%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(242, 101, 34, 0.14), transparent); pointer-events: none; }
.footer__mark { width: 100%; height: auto; opacity: 0.95; position: relative; }
.footer__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.footer__col { grid-column: span 2; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer__col h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 4px; line-height: 1.4; }
.footer__col a { color: var(--ink-2); transition: color 180ms ease; }
.footer__col a:hover { color: var(--ink); }
.footer__contact { grid-column: 9 / span 4; display: grid; gap: 8px; align-content: start; font-size: 16px; }
.footer__slogan { color: var(--accent-2); font-size: 15px; margin-bottom: 6px; }
.footer__last { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__last a { text-decoration: underline; text-underline-offset: 0.2em; }

/* WhatsApp flotante */
.wa { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; background: rgba(20, 21, 26, 0.88); border: 1px solid var(--line-2); backdrop-filter: blur(12px); font-weight: 600; font-size: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); transform: translateY(160%); transition: transform 420ms var(--ease), border-color 200ms ease; }
.wa.is-shown { transform: none; }
.wa:hover { border-color: rgba(242, 101, 34, 0.6); }
.wa svg { width: 20px; height: 20px; color: var(--ok); }

/* ------------------------------------------------------------------ entradas */
.js [data-rv] { opacity: 0; transform: translateY(28px); }
.js [data-rv].is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-rv] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ tableta */
@media (max-width: 1080px) {
  .header nav { display: none; }
  .menu-btn { display: grid; }
  .header__cta { display: none; }
  .head { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .svc:nth-child(1), .svc:nth-child(2) { grid-column: span 1; }
  .svc:nth-child(5) { grid-column: 1 / -1; }
  .mon { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
  .steps__rail, .step__dot { display: none; }
  .offer__in { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .contact { grid-template-columns: 1fr; }
  .footer__col { grid-column: span 4; }
  .footer__contact { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ teléfono */
@media (max-width: 720px) {
  .hero { height: 200vh; }
  .hero__copy { top: auto; bottom: 8vh; transform: none; }
  .hero__sub { margin: 18px 0 26px; }
  .hero__hint { display: none; }
  .hero__chapter { left: var(--gutter); right: var(--gutter); bottom: 9vh; }
  .hero__fallback { right: 50%; top: 28%; transform: translate(50%, -50%); width: 64vw; }
  .diag__board { grid-template-columns: 1fr; }
  .diag__map { order: -1; }
  .diag__map svg { max-height: 300px; }
  .diag__panel { min-height: 0; }
  .diag__answer { min-height: 92px; }
  .services { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(5) { grid-column: auto; min-height: 0; }
  .scene { height: 600px; margin-top: 10px; perspective: none; }
  .dash { transform: none !important; }
  .p-main { width: 100%; top: 150px; }
  .p-cam { width: 62%; top: 0; height: 170px; transform: none; }
  .p-toast { width: 92%; right: 4%; bottom: 0; transform: translateY(20px); }
  .p-toast.show { transform: none; }
  .illus { bottom: -30px; }
  .steps { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__col { grid-column: span 6; }
  .wa { padding: 14px; }
  .wa__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
