
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/archivo-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/archivo-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/archivo-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/archivo-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plexmono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plexmono-500.woff2') format('woff2'); }

/* Layout: ritmo de señalización vial — secciones separadas por líneas de carril discontinuas; la pluma amarilla es el único gesto audaz, en la portada. */
:root {
  --navy: #13294B;
  --yellow: #F7B500;
  --ground: #F4F4F0;
  --surface: #FFFFFF;
  --ink: #13294B;
  --ink-2: #3A4657;
  --line: #D6D8D2;
  --band: #13294B;
  --band-ink: #FFFFFF;
  --band-ink-2: #C9D1DC;
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B1628; --surface: #112038; --ink: #EEF0EC; --ink-2: #B3BCC8;
    --line: #253852; --band: #0F2140; --band-ink: #FFFFFF; --band-ink-2: #C9D1DC; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0B1628; --surface: #112038; --ink: #EEF0EC; --ink-2: #B3BCC8;
  --line: #253852; --band: #0F2140; --band-ink: #FFFFFF; --band-ink-2: #C9D1DC; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
p { margin: 0; }
.lane { height: 0; border: 0; border-top: 3px dashed var(--line); margin: 0; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand svg { height: 34px; width: auto; display: block; }
.brand .rule { width: 2px; height: 26px; background: var(--yellow); }
.brand .tag { font-family: var(--font-display); font-weight: 600; font-size: 11px; line-height: 1.25; letter-spacing: 0.14em; }
nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 4px; transition: transform .15s ease, background-color .15s ease; }
.btn-primary { background: var(--yellow); color: #13294B; }
.btn-primary:hover { background: #FFC524; }
.btn-ghost { color: var(--band-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #FFFFFF; }
nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; color: #13294B; }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 10vw, 128px) clamp(72px, 10vw, 136px); display: grid; gap: 28px; }
.hero .mono { color: var(--yellow); }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; font-weight: 700; letter-spacing: -0.035em; max-width: 12ch; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--band-ink-2); max-width: 56ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.arm { position: absolute; z-index: 0; right: -14%; bottom: 13%; width: 62%; max-width: 900px; aspect-ratio: 900 / 150; transform-origin: 8.333% 50%; transform: rotate(-30deg); animation: lift 1.6s cubic-bezier(.2,.75,.2,1) .3s both; pointer-events: none; }
.arm .bar { position: absolute; inset: 0; background: var(--yellow); border-radius: 999px 0 0 999px; }
.arm .pivot { position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 10px rgba(19,41,75,0.18); }
@keyframes lift { from { transform: rotate(0deg); } to { transform: rotate(-30deg); } }
.clock { margin-top: 40px; display: grid; gap: 10px; max-width: 560px; }
.clock .scale { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.clock .scale span { height: 10px; background: rgba(255,255,255,0.22); }
.clock .scale span:nth-child(6n+1) { height: 16px; background: rgba(255,255,255,0.5); }
.clock .labels { display: flex; justify-content: space-between; color: var(--band-ink-2); }
.clock .note { color: var(--band-ink); font-size: 15px; }

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.sec-head .mono { color: var(--ink-2); grid-column: 1 / -1; }
.sec-head p { color: var(--ink-2); font-size: 18px; max-width: 52ch; }

.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.site { background: var(--surface); padding: 30px 28px 32px; display: grid; gap: 14px; align-content: start; border-top: 6px solid var(--navy); }
:root[data-theme="dark"] .site { border-top-color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site { border-top-color: var(--yellow); } }
.site .where { color: var(--ink-2); }
.site p { color: var(--ink-2); font-size: 16px; }
.site .sign { width: 46px; height: 46px; border-radius: 6px; background: var(--navy); color: #FFFFFF; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 26px; }

.offload { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.offload .intro { display: grid; gap: 20px; position: sticky; top: 110px; }
.offload .intro p { color: var(--ink-2); font-size: 18px; }
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.task { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.task:nth-child(odd) { padding-right: 32px; }
.task:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.task p { color: var(--ink-2); font-size: 15.5px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--surface); padding: 32px 30px; display: grid; gap: 12px; align-content: start; }
.service p { color: var(--ink-2); font-size: 15.5px; }
.service svg { width: 34px; height: 34px; color: var(--ink); }
.service svg .acc { stroke: var(--yellow); }

.team { background: var(--band); color: var(--band-ink); }
.team .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.team h2 { color: var(--band-ink); }
.team .mono { color: var(--yellow); }
.team p { color: var(--band-ink-2); font-size: 18px; }
.disciplines { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.discipline { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.discipline strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--band-ink); }
.discipline span { color: var(--band-ink-2); font-size: 16px; }
.directors { margin-top: 28px; display: grid; gap: 6px; }
.directors .mono { color: var(--band-ink-2); }
.directors div { color: var(--band-ink); font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; counter-reset: s; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 3px solid var(--ink); }
.step .n { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
.step p { color: var(--ink-2); font-size: 15.5px; }

.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact p.lead { color: var(--ink-2); font-size: 18px; max-width: 46ch; margin-top: 20px; }
.card { background: var(--surface); padding: 32px; display: grid; gap: 22px; }
.row { display: grid; gap: 4px; }
.row .mono { color: var(--ink-2); }
.row .v { font-size: 17px; overflow-wrap: anywhere; }
.row a.v { text-decoration: none; }
.row a.v:hover { text-decoration: underline; }
.btn-wa { background: var(--navy); color: #FFFFFF; justify-self: start; margin-top: 10px; }
.btn-wa:hover { background: #0A1830; }
.copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 1px solid var(--line); color: var(--ink); min-height: 36px; padding: 0 12px; border-radius: 4px; cursor: pointer; justify-self: start; }
.copy:hover { border-color: var(--ink); }

footer { background: #0A1730; color: #DDE3EA; }
footer .wrap { padding-block: 48px 40px; display: grid; gap: 28px; }
footer .f-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; }
footer .lock { display: flex; align-items: center; gap: 18px; color: #FFFFFF; }
footer .lock svg { height: 40px; width: auto; }
footer .lock .rule { width: 2px; height: 34px; background: var(--yellow); }
footer .lock .legal { display: grid; gap: 2px; }
footer .lock .legal b { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
footer .lock .legal span { font-family: var(--font-mono); font-size: 14px; color: #FFFFFF; }
footer .addr { font-size: 14px; line-height: 1.6; color: #C2CAD4; max-width: 70ch; }
footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9FAAB8; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }

@media (max-width: 900px) {
  nav ul li:not(:last-child) { display: none; }
  .sec-head, .offload, .team .grid, .contact .grid { grid-template-columns: minmax(0, 1fr); }
  .offload .intro { position: static; }
  .arm { width: 110%; right: -62%; bottom: -1%; }
  .hero .wrap { padding-bottom: 230px; }
}
@media (max-width: 620px) {
  .brand .rule, .brand .tag { display: none; }
  .tasks { grid-template-columns: minmax(0, 1fr); }
  .task:nth-child(n) { padding: 22px 0; border-left: 0; }
  .discipline { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arm { animation: none; }
}

/* Navegación y páginas internas */
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--band-ink-2); }
.crumbs a { color: var(--band-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--band-ink); }
.hero.sub .wrap { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); }
.hero.sub .arm { width: 50%; right: -22%; bottom: 2%; }
.hero.sub h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 18ch; }
.prose { display: grid; gap: 18px; max-width: 70ch; }
.prose p { color: var(--ink-2); font-size: 18px; }
.prose h2 { margin-top: 18px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: 16.5px; }
.checks li strong { color: var(--ink); display: block; font-size: 18px; margin-bottom: 2px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 6px; background: var(--yellow); border-radius: 3px 0 0 3px; transform: rotate(-30deg); transform-origin: 3px 3px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; max-width: 70ch; }
.cta-band { background: var(--surface); border-top: 6px solid var(--yellow); }
.cta-band .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); max-width: 24ch; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: #0A1830; }
.btn-wa { background: var(--navy); color: #FFFFFF; justify-self: start; margin-top: 10px; }
.btn-wa:hover { background: #0A1830; }
.row a.v { text-decoration: none; }
.row a.v:hover { text-decoration: underline; }

/* Tablero financiero (ilustración) */
.dash-wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.dash-wrap .intro { display: grid; gap: 20px; }
.dash-wrap .intro p { color: var(--ink-2); font-size: 18px; }
.dash { background: #0E1C33; color: #E8ECF1; border-radius: 10px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(10, 23, 48, 0.55); font-variant-numeric: tabular-nums; min-width: 0; }
.dash .bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash .site-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #FFFFFF; }
.dash .live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: #C9D1DC; }
.dash .live i { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 214, 140, 0.05); } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: #15274A; border-radius: 6px; padding: 12px 12px 14px; display: grid; gap: 4px; min-width: 0; }
.kpi .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: #AEB8C6; text-transform: uppercase; }
.kpi .v { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #FFFFFF; }
.kpi .d { font-size: 12px; color: #3DD68C; }
.dash .panels { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.panel { background: #15274A; border-radius: 6px; padding: 14px; display: grid; gap: 10px; min-width: 0; }
.panel .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: #AEB8C6; text-transform: uppercase; }
.hours { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); align-items: end; gap: 3px; height: 92px; border-bottom: 1px solid #2B3F63; }
.hours span { background: #F7B500; border-radius: 2px 2px 0 0; display: block; }
.hours span.now { background: #FFFFFF; }
.hours-x { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: #8E9AAD; }
.mix { display: grid; gap: 8px; }
.mix .r { display: grid; grid-template-columns: 82px minmax(0, 1fr) 38px; gap: 8px; align-items: center; font-size: 12px; color: #C9D1DC; }
.mix .t { height: 8px; background: #22365A; border-radius: 4px; overflow: hidden; }
.mix .t b { display: block; height: 100%; background: #F7B500; border-radius: 4px; }
.mix .p { text-align: right; font-family: var(--font-mono); font-size: 11px; }
.dash .foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; color: #8E9AAD; letter-spacing: 0.04em; }
.sample-note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-2); margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--surface); padding: 28px 26px; display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.feature .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; }

@media (max-width: 900px) {
  .dash-wrap, .two { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dash .panels { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .dash .live i { animation: none; } }

/* v2 */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; font-size: 15px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu .panel-m { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: grid; box-shadow: 0 20px 40px -20px rgba(10,23,48,.4); z-index: 20; }
.menu .panel-m a { padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 4px; }
.menu .panel-m a:hover { background: var(--ground); }
.lang { font-family: var(--font-mono); font-size: 12.5px !important; letter-spacing: .08em; border: 1px solid var(--line); padding: 6px 9px; border-radius: 4px; }
.thesis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 28px; }
.thesis .t { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 3px solid var(--yellow); }
.thesis .t p { color: var(--ink-2); font-size: 16px; }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.model { background: var(--surface); padding: 30px 28px; display: grid; gap: 12px; align-content: start; border-top: 6px solid var(--navy); }
.model p { color: var(--ink-2); font-size: 16px; }
.note { font-size: 14px; color: var(--ink-2); max-width: 80ch; margin-top: 24px; }
.toc { display: grid; gap: 8px; padding: 22px 24px; background: var(--surface); border-left: 0; }
.toc a { color: var(--ink); }
.article { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 56px; align-items: start; }
.article .toc { position: sticky; top: 100px; }
.article .prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 28px; scroll-margin-top: 100px; }
.article .prose h3 { margin-top: 8px; }
.article .prose ul { margin: 0; padding-left: 22px; color: var(--ink-2); font-size: 17.5px; display: grid; gap: 8px; }
.f-links a { color: #DDE3EA; text-decoration: none; }
.f-links a:hover { color: #FFFFFF; text-decoration: underline; }
@media (max-width: 1080px) { nav ul li.hide-md { display: none; } }
@media (max-width: 900px) {
  nav ul li:not(:last-child) { display: none; }
  .menu { display: block; }
  .top .wrap { gap: 12px; }
  nav ul { gap: 10px; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .article .toc { position: static; }
}
