:root {
  color-scheme: dark;
  --ink: #0e0f10;
  --panel: #161718;
  --paper: #f0f3ef;
  --muted: #a1a4a4;
  --line: rgba(224, 242, 232, .13);
  --acid: #FFD60A;
  --hl: #FFD60A;
  --acid-fill: #FFD60A;
  --acid-line: rgba(255,214,10,.55);
  --on-acid: #0e0f10;
  --cyan: #2E7DFF;
  --t1: #d6dcda;
  --t2: #bcc5c2;
  --t3: #68716e;
  --card: #0e1314;
  --tab: #131516;
  --grid: rgba(224,236,230,.045);
  --grid-card: rgba(230,255,245,.035);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}
/* light browser setting: same hues, light-grey surfaces, deeper shades for contrast */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --hl: #1D5FD1;
    --ink: #e6e9e8;
    --panel: #eef0ef;
    --paper: #14191a;
    --muted: #5d6865;
    --line: rgba(20, 32, 30, .17);
    --acid: #8A6500;
    --acid-line: rgba(138,101,0,.6);
    --cyan: #1D5FD1;
    --t1: #1f2926;
    --t2: #34403c;
    --t3: #78837f;
    --card: #f3f5f4;
    --tab: #dbdfde;
    --grid: rgba(20,36,32,.06);
    --grid-card: rgba(20,36,32,.05);
  }
}
:root[data-theme="light"] {
    color-scheme: light;
    --hl: #1D5FD1;
    --ink: #e6e9e8;
    --panel: #eef0ef;
    --paper: #14191a;
    --muted: #5d6865;
    --line: rgba(20, 32, 30, .17);
    --acid: #8A6500;
    --acid-line: rgba(138,101,0,.6);
    --cyan: #1D5FD1;
    --t1: #1f2926;
    --t2: #34403c;
    --t3: #78837f;
    --card: #f3f5f4;
    --tab: #dbdfde;
    --grid: rgba(20,36,32,.06);
    --grid-card: rgba(20,36,32,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ink);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 38px 38px;
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1480px, calc(100% - 96px)); margin-inline: auto; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 800; letter-spacing: -.06em; font-size: 20px; }
.brand-mark { width: 10px; height: 10px; background: var(--acid-fill); border-radius: 50%; box-shadow: 0 0 18px rgba(255,214,10,.65); }
.nav { display: flex; align-items: center; gap: 38px; color: var(--t1); font-size: 12px; }
.nav a:not(.nav-cta):hover, .nav a[aria-current="page"] { color: var(--acid); }
.nav-cta { padding: 11px 16px; border: 1px solid var(--acid-line); color: var(--acid); transition: background .2s, color .2s; }
.nav-cta:hover { background: var(--acid-fill); color: var(--on-acid); }

.theme-toggle { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 14px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--t1); cursor: pointer; transition: color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--acid); border-color: var(--acid-line); }
.theme-toggle:focus-visible { outline: 1px solid var(--acid); outline-offset: 2px; }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
.theme-toggle[data-mode="light"] .i-moon { display: block; }
.theme-toggle[data-mode="light"] .i-sun { display: none; }
.lang { display: inline-flex; gap: 6px; align-items: center; color: var(--t3); }
.lang button { font: inherit; letter-spacing: inherit; background: none; border: 0; color: var(--t1); cursor: pointer; padding: 4px 2px; }
.lang button[aria-pressed="true"] { color: var(--acid); }

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.4fr);
  align-items: center;
  gap: 54px;
  padding-block: 24px 36px;
  position: relative;
}
.hero-copy { position: relative; z-index: 1; }
/* only the company line and the tagline sit lower; the headline stays put */
@media (min-width: 851px) { .hero-copy .powered, .hero-copy .hero-note { position: relative; top: 45px; } .hero { padding-bottom: 84px; } }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--cyan); font-size: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--cyan); }
.intro-lockup { height: 118px; margin: 14px 0 0; position: relative; }
.exploding-mark { position: absolute; top: -6px; right: 24%; display: flex; align-items: center; height: 190px; font-size: clamp(120px, 15vw, 190px); line-height: 1; font-weight: 800; letter-spacing: -.095em; color: var(--acid); opacity: 0; }
html.intro-js .exploding-mark { opacity: 1; }
.exploding-mark [data-letter="s"] { color: var(--cyan); }
.exploding-mark span { display: inline-block; transform-origin: top left; will-change: transform, opacity; }
.exploding-mark span:last-child { font-size: .72em; }
.expansion { display: grid; gap: 5px; margin: 0; color: var(--paper); font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.065em; font-weight: 600; }
.expansion-row { min-height: 48px; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: baseline; }
.word-initial { position: relative; justify-self: start; color: var(--acid); font-weight: 800; opacity: 1; }
.word-text { display: inline-block; white-space: nowrap; }
.word-text em { color: var(--cyan); font-style: normal; }
.plural-note { position: absolute; top: -.1em; left: 100%; margin-left: 1px; color: var(--cyan); font-family: var(--mono); font-size: 12px; vertical-align: top; letter-spacing: 0; }
html.intro-js .word-initial, html.intro-js .plural-note { opacity: 0; }
html.intro-js .word-text { clip-path: inset(-.3em 100% -.3em 0); }
.expansion-tail .word-text { color: var(--cyan); }
.hero-description { max-width: 435px; margin: 25px 0 30px; color: var(--t2); font-size: 14px; line-height: 1.85; opacity: 0; animation: fade-up .65s ease-out 2.8s forwards; }
.powered { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.powered { align-items: center; }
.powered-icon { width: 24px; height: 24px; color: var(--acid); filter: drop-shadow(0 0 7px rgba(255,214,10,.7)); flex: none; }
.powered-label { color: #FF3B52; font-size: 17px; font-weight: 800; letter-spacing: .04em; text-shadow: 0 0 14px rgba(255,59,82,.55); }
.powered a { transition: color .2s; }
.powered a:hover { color: var(--acid); }
.powered-amp { color: var(--muted); font-weight: 300; }
html.intro-js .powered { opacity: 0; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
html.intro-js .hero-actions { opacity: 0; }
.button-primary { display: inline-flex; align-items: center; gap: 24px; padding: 15px 18px; color: var(--on-acid); background: var(--acid-fill); font-size: 12px; font-weight: 800; transition: background .2s, transform .2s; }
.button-primary:hover { background: #FFE766; transform: translateY(-2px); }
.button-primary svg { width: 15px; height: 15px; }
.text-link { font-size: 11px; color: var(--t1); border-bottom: 1px solid var(--t3); padding-bottom: 4px; }

.visual { min-height: clamp(400px, calc(100svh - 230px), 560px); position: relative; overflow: hidden; display: grid; border: 1px solid var(--line); background-color: var(--card); background-image: linear-gradient(var(--grid-card) 1px, transparent 1px), linear-gradient(90deg, var(--grid-card) 1px, transparent 1px); background-size: 38px 38px; }
.visual::before { content: ""; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(46,125,255,.17); border-radius: 50%; top: 54px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 0 44px rgba(46,125,255,.025), 0 0 0 88px rgba(46,125,255,.02); }
.visual::after { content: ""; position: absolute; width: 190px; height: 190px; top: 119px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,214,10,.19), rgba(46,125,255,.08) 40%, transparent 72%); filter: blur(2px); }
#globe { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; }
.visual::before, .visual::after { display: none; }
.visual-label { position: absolute; top: 19px; left: 20px; z-index: 2; font-size: 9px; color: var(--t2); }
.visual-index { position: absolute; right: 20px; top: 19px; z-index: 2; color: var(--acid); font-size: 9px; }
.orbit { position: absolute; z-index: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 19px var(--acid); top: 88px; left: calc(50% + 118px); animation: pulse 2.8s ease-in-out infinite; }
.orbit-two { width: 7px; height: 7px; top: 300px; left: calc(50% - 152px); background: var(--cyan); box-shadow: 0 0 17px var(--cyan); animation-delay: .8s; }
.visual-core { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; padding-top: 12px; }
.visual-core strong { font-size: 52px; line-height: 1; letter-spacing: -.09em; }
.visual-core small { margin-top: 11px; font-size: 9px; color: var(--t2); }
.signal { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 23px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.signal-label { color: var(--t2); font-size: 9px; }
.signal-value { display: block; color: var(--cyan); font-family: var(--mono); font-size: 11px; margin-top: 6px; }
.bars { height: 30px; display: flex; align-items: end; gap: 4px; }
.bars i { width: 4px; height: var(--h); background: var(--cyan); opacity: .8; animation: equalize 1.5s ease-in-out infinite alternate; animation-delay: var(--d); }

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--t2); font-size: 9px; }
.ticker-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ticker-item b { font-family: var(--mono); color: var(--acid); font-weight: 400; }

.section { padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-kicker { color: var(--cyan); font-size: 9px; margin-bottom: 17px; }
.section h2, .section h1 { margin: 0; max-width: 550px; font-size: clamp(34px, 4vw, 51px); line-height: 1.05; letter-spacing: -.07em; font-weight: 600; }
.section-heading p { max-width: 410px; margin: 0 0 3px; color: var(--t2); font-size: 13px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { min-height: 206px; padding: 25px 22px 25px 0; }
.service + .service { border-left: 1px solid var(--line); padding-left: 22px; }
.service-number { color: var(--acid); font-size: 9px; }
.service h3 { margin: 34px 0 10px; font-size: 16px; letter-spacing: -.03em; }
.service p { max-width: 270px; margin: 0; color: var(--t2); font-size: 11px; line-height: 1.8; }

.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.doc h2, .doc h1 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.05em; font-weight: 600; max-width: none; }
.doc h3 { margin: 24px 0 8px; font-size: 16px; letter-spacing: -.02em; color: var(--paper); }
.doc p { margin: 0 0 14px; color: var(--t2); font-size: 14px; line-height: 1.85; max-width: 560px; }
.doc ul { margin: 0 0 16px; padding-left: 18px; color: var(--t2); font-size: 14px; line-height: 1.85; max-width: 560px; }
.doc li::marker { color: var(--acid); }
.doc strong { color: var(--paper); font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-family: var(--mono); color: var(--acid); font-size: 11px; padding-top: 4px; }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; max-width: 640px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: -.02em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acid); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--t2); font-size: 14px; line-height: 1.8; max-width: 720px; }
@media (max-width: 850px) { .doc-grid { grid-template-columns: 1fr; gap: 0; } }

.closing { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-block: 34px; border-top: 1px solid var(--line); }
.closing p { margin: 0; font-size: 19px; letter-spacing: -.04em; }
footer { border-top: 1px solid var(--line); color: var(--t3); font-size: 9px; }
.footer-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { color: var(--paper); font-size: 13px; font-weight: 800; letter-spacing: -.05em; }

@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { transform: scale(.65); opacity: .55; } }
@keyframes equalize { to { height: 6px; opacity: .35; } }

@media (max-width: 850px) {
  .shell { width: min(100% - 48px, 680px); }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 40px 72px; }
  .visual { min-height: 390px; }
  .section { padding-block: 78px; }
  .ticker-inner { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .ticker-item { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 36px); }
  .topbar { height: 68px; }
  .nav { gap: 12px; font-size: 10px; }
  .nav-cta { padding: 10px 12px; font-size: 10px; }
  .hero { min-height: 0; padding-block: 34px 56px; gap: 38px; }
  .intro-lockup { height: 84px; margin-top: 18px; }
  .exploding-mark { top: -4px; height: 130px; font-size: 104px; }
  .expansion { font-size: clamp(30px, 8.5vw, 39px); }
  .expansion-row { min-height: 41px; grid-template-columns: 45px minmax(0, 1fr); }
  .hero-actions { gap: 17px; margin-top: 34px; }
  .button-primary { gap: 14px; }
  .visual { min-height: 340px; }
  .visual::before { width: 250px; height: 250px; top: 48px; }
  .visual::after { top: 80px; }
  .orbit { top: 72px; left: calc(50% + 91px); }
  .orbit-two { top: 254px; left: calc(50% - 120px); }
  .section { padding-block: 68px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 31px; }
  .section h2, .section h1 { font-size: 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 22px 0; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .service h3 { margin: 18px 0 8px; }
  .closing { align-items: flex-start; flex-direction: column; }
  .footer-inner { gap: 14px; flex-wrap: wrap; padding-block: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .exploding-mark { display: none; }
  .word-initial, .plural-note { opacity: 1 !important; }
  .word-text { clip-path: none !important; }
  .hero-description, .hero-actions { opacity: 1; transform: none; }
}

.hero-note { margin: 22px 0 0; color: var(--paper); font-size: 19px; letter-spacing: -.04em; max-width: 440px; line-height: 1.35; }
html.intro-js .hero-note { opacity: 0; }

/* hero panel: bookmark tabs sit on the left edge of the card, outside it, so the card keeps its size */
.visual-wrap { position: relative; }
.visual-tabs { position: absolute; z-index: 3; top: 26px; right: 100%; margin-right: -1px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.visual-tab { font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; min-width: 150px; white-space: nowrap; text-align: left; padding: 15px 18px 15px 16px; font-size: 12px; font-weight: 500; color: var(--t1); background: var(--tab); border: 1px solid var(--line); border-right: 0; border-left: 2px solid transparent; border-radius: 6px 0 0 6px; transition: color .2s, background .2s; }
.visual-tab:hover { color: var(--paper); }
.visual-tab[aria-selected="true"] { color: var(--acid); font-weight: 700; background: var(--card); border-left-color: var(--acid); }
.visual-tab:focus-visible { outline: 1px solid var(--acid); outline-offset: 2px; }
.pane { position: relative; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.pane.is-active { opacity: 1; visibility: visible; }
.pane-about { z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 34px 38px; }
.who { max-width: 760px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.who-text { max-width: 470px; }
.who-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 220px; height: 120px; padding: 16px 20px; border-radius: 10px; transition: transform .2s; }
.who-logo .logo-on-light { display: none; }
:root[data-theme="light"] .who-logo .logo-on-dark { display: none; }
:root[data-theme="light"] .who-logo .logo-on-light { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .who-logo .logo-on-dark { display: none; } :root:not([data-theme="dark"]) .who-logo .logo-on-light { display: block; } }
.who-logo:hover { transform: translateY(-2px); }
.who-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.who + .who { padding-top: 30px; border-top: 1px solid var(--line); }
.who-tag { color: var(--cyan); font-size: 11px; font-weight: 500; }
.who h3 { margin: 10px 0 10px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.06em; font-weight: 700; line-height: 1; }
.who h3 a { transition: color .2s; }
.who h3 a:hover { color: var(--acid); }
.who p { margin: 0; color: var(--t1); font-size: 15px; line-height: 1.75; }
.who p strong, .pane-services .tech-list p strong { color: var(--hl); font-weight: 700; font-size: 17px; }
:root[data-theme="light"] .who p strong { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .who p strong { color: #000; } }
:root[data-theme="light"] .pane-services .tech-list p strong, :root[data-theme="light"] .pane-services .tech-list-compact h3 strong { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-services .tech-list p strong, :root:not([data-theme="dark"]) .pane-services .tech-list-compact h3 strong { color: #000; } }
/* single-column layout: no room at the left edge, so the tabs go back above the card */
@media (max-width: 850px) {
  .visual-tabs { position: static; flex-direction: row; margin: 0 0 -1px; }
  .visual-tab { min-width: 0; padding: 11px 16px 10px; border: 1px solid var(--line); border-bottom: 0; border-top: 2px solid transparent; border-radius: 6px 6px 0 0; }
  .visual-tab[aria-selected="true"] { border-top-color: var(--acid); border-left-color: var(--line); }
}
@media (max-width: 700px) { .pane-about { padding: 24px 22px; gap: 20px; } .who + .who { padding-top: 20px; } .who p { font-size: 13px; } .who { flex-direction: column; align-items: flex-start; gap: 14px; } .who-logo { width: 150px; height: 80px; padding: 10px 14px; } }

/* "Proceso" pane: client-side workflow */
.pane-process { z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px 30px; }
.flow-title { margin: 0; color: var(--cyan); font-size: 11px; font-weight: 500; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); column-gap: 30px; row-gap: 10px; }
.flow-step { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.flow-step:not(:nth-child(3)):not(:nth-child(6)):not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: -8px; width: 1px; background: var(--line); }
.flow-n { flex: none; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); font-size: 11px; font-weight: 500; letter-spacing: 0; background: var(--card); }
.flow-step h3 { margin: 1px 0 3px; font-size: 15px; letter-spacing: -.02em; font-weight: 700; }
.flow-step p { margin: 0; color: var(--t1); font-size: 12px; line-height: 1.45; }
.pane-tech .tech-list p strong { color: var(--hl); font-weight: 700; font-size: 15px; }
.pane-results .tech-list h3 { font-weight: 400; }
.pane-results .tech-list h3 strong { color: var(--hl); font-weight: 700; font-size: 18px; }
.pane-services .tech-list-compact h3:only-child { font-weight: 400; }
.pane-services .tech-list-compact h3 strong { color: var(--hl); font-weight: 700; font-size: 18px; }
:root[data-theme="light"] .pane-services .tech-list h3.h3-lg { color: #000; font-size: 22px; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-services .tech-list h3.h3-lg { color: #000; font-size: 22px; } }
.pane-services .tech-list h3.h3-lg { font-size: 22px; }
.pane-process .flow-step p strong { color: var(--hl); font-weight: 700; font-size: 14px; }
:root[data-theme="light"] .pane-process .flow-step h3 { color: var(--cyan); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-process .flow-step h3 { color: var(--cyan); } }
:root[data-theme="light"] .pane-process .flow-step p strong { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-process .flow-step p strong { color: #000; } }
.flow-step p a { color: var(--acid); text-decoration: underline; text-underline-offset: 2px; }
.flow-step p a:hover { color: var(--paper); }
@media (max-width: 700px) {
  .flow { grid-auto-flow: row; grid-template-rows: none; }
    .flow-step:nth-child(3)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: -8px; width: 1px; background: var(--line); }
  .pane-process { padding: 22px 20px; justify-content: flex-start; }
}

/* "Tecnología" pane */
.pane-tech { z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; align-items: start; gap: 34px; padding: 30px 36px; }
.tech-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.tech-list li { border-left: 1px solid var(--line); padding-left: 14px; }
.tech-list h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.02em; font-weight: 700; }
.tech-list p { margin: 0; color: var(--t1); font-size: 13px; line-height: 1.55; }
@media (max-width: 700px) { .pane-tech { grid-template-columns: none; padding: 22px 20px; align-content: start; gap: 26px; } }

/* "Servicios" and "Resultados" panes (same two-column layout as "Tecnología") */
.pane-services, .pane-results, .pane-contact { z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; align-items: start; gap: 34px; padding: 30px 36px; }
.pane-col { display: grid; gap: 20px; align-content: start; align-self: start; }
.tech-list-compact { gap: 10px; }
.tech-list-compact h3 { margin: 0; }
.res-stat { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.res-n { font-size: clamp(54px, 7vw, 84px); line-height: .9; letter-spacing: -.06em; font-weight: 700; color: var(--acid); }
.res-unit { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.res-note { margin: 10px 0 0; color: var(--t1); font-size: 13px; line-height: 1.55; }
.pane-contact .tech-list p { font-size: 14px; }
.pane-contact .tech-list p a { color: var(--acid); overflow-wrap: anywhere; }
.pane-contact .wa-link { display: inline-flex; align-items: center; gap: 6px; color: #25d366; }
.pane-contact .wa-link svg { width: 18px; height: 18px; }
.pane-contact .tech-list p a:hover { color: var(--paper); }
@media (max-width: 700px) { .pane-services, .pane-results, .pane-contact { grid-template-columns: none; padding: 22px 20px; align-content: start; gap: 26px; } }

/* Quote request form */
.quote-fixed { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.quote-fixed span { color: var(--cyan); font-size: 10px; }
.quote-fixed strong { color: var(--acid); font-size: 16px; letter-spacing: -.03em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field > label { color: var(--t1); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.quote input, .quote select, .quote textarea { width: 100%; min-width: 0; font: inherit; font-size: 14px; color: var(--paper); background: var(--ink); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; outline: none; transition: border-color .2s; }
.quote input::placeholder, .quote textarea::placeholder { color: var(--t3); }
.quote input:focus, .quote select:focus, .quote textarea:focus { border-color: var(--acid); }
.quote textarea { min-height: 110px; resize: vertical; display: block; }
.suggest-wrap { position: relative; }
.suggestion { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; padding: 10px 14px; background: var(--panel); border: 1px solid var(--acid-line); border-top: 0; color: var(--t3); font-size: 13px; line-height: 1.5; cursor: pointer; }
.suggestion[hidden] { display: none; }
.suggestion b { color: var(--acid); font-weight: 500; }
.suggestion small { float: right; margin-left: 12px; color: var(--t3); font-family: var(--mono); font-size: 10px; }
.quote-extra { margin: 8px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.quote-intro { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid var(--cyan); color: var(--paper); font-size: 14px; font-weight: 600; line-height: 1.5; }
.quote-note { color: var(--t3); font-size: 12px; line-height: 1.5; margin-top: -2px; }
.sede-row { display: grid; grid-template-columns: 1.2fr 1.6fr .8fr 36px; gap: 8px; margin-bottom: 10px; align-items: center; }
.sede-row input, .sede-row select { font-size: 13px; padding: 10px 10px; }
.sede-remove { height: 38px; width: 36px; padding: 0; font: inherit; font-size: 18px; line-height: 1; color: #ff6b6b; background: transparent; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.sede-remove:hover { border-color: #ff6b6b; }
.quote-add { align-self: flex-start; padding: 10px 16px; font-size: 10px; color: var(--cyan); background: none; border: 1px dashed var(--cyan); cursor: pointer; transition: background .2s; }
.quote-add:hover { background: rgba(46,125,255,.1); }
.quote-total { padding: 12px 14px; font-size: 14px; letter-spacing: 0; color: var(--acid); background: var(--ink); border: 1px solid var(--line); }
.quote .button-primary { border: 0; font-family: inherit; cursor: pointer; }
.quote .button-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.field-consent { margin-bottom: 14px; }
.field-consent label { display: flex; align-items: flex-start; gap: 10px; color: var(--t2, var(--t3)); font-size: 12px; line-height: 1.5; cursor: pointer; }
.field-consent input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; margin: 2px 0 0; padding: 0; accent-color: var(--acid); }
.field-consent a { color: var(--cyan); text-decoration: underline; }
footer a { color: inherit; text-decoration: underline; }
.quote-msg { display: none; margin-top: 16px; padding: 12px 16px; font-size: 13px; line-height: 1.5; border: 1px solid var(--line); }
.quote-msg.is-info, .quote-msg.is-ok, .quote-msg.is-err { display: block; }
.quote-msg.is-ok { color: #3ddc97; border-color: rgba(61,220,151,.4); }
.quote-msg.is-err { color: #ff6b6b; border-color: rgba(255,107,107,.45); }
:root[data-theme="light"] .quote-msg.is-ok { color: #0b7a4b; }
:root[data-theme="light"] .quote-msg.is-err { color: #b3261e; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .quote-msg.is-ok { color: #0b7a4b; } :root:not([data-theme="dark"]) .quote-msg.is-err { color: #b3261e; } }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; gap: 0; } .sede-row { grid-template-columns: 1fr; } .sede-remove { width: 100%; } }

/* the quote form lives in its own tab of the hero panel and scrolls inside it */
.pane-quote { position: absolute; inset: 0; z-index: 2; overflow-y: auto; padding: 26px 36px 30px; scrollbar-width: thin; }
.quote-lead { margin: 0 0 18px; color: var(--t1); font-size: 13px; line-height: 1.55; }
.pane-quote .quote-fixed { margin-bottom: 20px; padding-bottom: 16px; }
.pane-quote .field { margin-bottom: 16px; }
.pane-quote .quote-extra { margin-top: 4px; padding-top: 20px; }
@media (max-width: 700px) { .pane-quote { padding: 22px 20px; } }

/* quote tab, compact: labels sit beside their inputs so one location fits without scrolling */
.pane-quote { padding: 18px 30px 18px; }
.pane-quote .field { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 9px; }
.pane-quote .field-top { align-items: start; }
.pane-quote .field-top > label { padding-top: 11px; }
.pane-quote .field-row { gap: 0 22px; }
.pane-quote .field > label { font-size: 9px; line-height: 1.3; }
.pane-quote input, .pane-quote select, .pane-quote textarea { padding: 8px 11px; font-size: 13px; }
.pane-quote textarea { min-height: 54px; height: 54px; }
.pane-quote .quote-extra { margin: 4px 0 12px; padding-top: 12px; }
.pane-quote .quote-intro { margin: 0 0 10px; padding: 7px 12px; font-size: 12px; }
.pane-quote .quote-note { display: block; margin: 0 0 6px; font-size: 10.5px; line-height: 1.35; }
.pane-quote .sede-row { grid-template-columns: 1.2fr 1.6fr .8fr 34px; margin-bottom: 0; }
.pane-quote .sede-row input, .pane-quote .sede-row select { padding: 8px 9px; }
.pane-quote .sede-row + .sede-row { margin-top: 6px; }
.pane-quote .sede-remove { height: 34px; width: 34px; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.quote-add { padding: 8px 14px; }
.quote-total-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quote-total-label { color: var(--t1); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; line-height: 1.3; text-align: right; max-width: 200px; }
.pane-quote .quote-total { min-width: 64px; padding: 8px 12px; text-align: center; }
.pane-quote .button-primary { padding: 12px 18px; }
.pane-quote .quote-msg { margin-top: 10px; padding: 9px 14px; }
@media (max-width: 700px) {
  .pane-quote .field { grid-template-columns: 1fr; gap: 6px; }
  .pane-quote .field-top > label { padding-top: 0; }
  .quote-foot { flex-direction: column; align-items: stretch; }
  .quote-total-wrap { justify-content: space-between; }
  .quote-total-label { text-align: left; max-width: none; }
}

/* quote tab: two blocks side by side (A: contact left, B: company right) */
.pane-quote .quote-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 34px; align-content: center; min-height: 100%; }
.pane-quote .field-row { display: block; }
.pane-quote .quote-extra { margin: 0; padding: 0 0 0 34px; border-top: 0; border-left: 1px solid var(--line); }
.pane-quote .quote-extra .field-top { grid-template-columns: 1fr; gap: 6px; }
.pane-quote .quote-extra .field-top > label { padding-top: 0; }
.pane-quote .quote-foot { flex-wrap: wrap; }
.pane-quote .quote-total-label { max-width: 150px; }
.quote-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.quote-actions .quote-msg { flex: 1; margin: 0; }
@media (max-width: 900px) {
  .pane-quote .quote-form { grid-template-columns: 1fr; }
  .pane-quote .quote-extra { padding: 14px 0 0; margin-top: 6px; border-left: 0; border-top: 1px solid var(--line); }
  .quote-actions { flex-wrap: wrap; }
}

.visual-wrap { scroll-margin-top: 98px; }

/* quote tab: A narrow / B wide; A keeps the send button pinned bottom-right, only B scrolls */
.pane-quote { overflow: hidden; }
.pane-quote .quote-form { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); height: 100%; min-height: 0; align-content: stretch; }
.pane-quote .quote-col { display: flex; flex-direction: column; min-height: 0; }
.pane-quote .field-msg { flex: 1 1 auto; min-height: 90px; align-items: stretch; margin-bottom: 0; }
.pane-quote .field-msg > label { align-self: start; padding-top: 11px; }
.pane-quote .field-msg .suggest-wrap { height: 100%; }
.pane-quote .field-msg textarea { height: 100%; min-height: 0; resize: none; }
.pane-quote .quote-actions { grid-column: auto; flex-direction: row-reverse; justify-content: flex-start; margin-top: 12px; }
.pane-quote .quote-extra { min-height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
@media (max-width: 900px) {
  .pane-quote { overflow-y: auto; }
  .pane-quote .quote-form { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .pane-quote .quote-extra { overflow: visible; padding-right: 0; }
  .pane-quote .field-msg { min-height: 0; }
  .pane-quote .field-msg textarea { height: 90px; }
}

/* sede row: name takes the freed space, workers count sits at the right edge, remove button only takes room when shown */
.pane-quote .sede-row { display: flex; gap: 8px; align-items: center; }
.pane-quote .sede-row .sede-nombre { flex: 1.5 1 0; }
.pane-quote .sede-row .sede-ciudad { flex: 1.3 1 0; }
.pane-quote .sede-row .sede-trabajadores { flex: 0 0 108px; width: 108px; }
.pane-quote .sede-row .sede-remove { flex: 0 0 34px; }
@media (max-width: 560px) { .pane-quote .sede-row { display: grid; grid-template-columns: 1fr; } .pane-quote .sede-row .sede-trabajadores { width: 100%; } }

/* tabs appear one after another, starting a moment after the BRPs letters begin to move (they start at INTRO_DELAY = 900ms in index.html) */
@keyframes tab-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes tab-in-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.intro-js .visual-tab { opacity: 0; animation: tab-in .55s cubic-bezier(.16,.76,.26,1) both; animation-delay: calc(1.7s + var(--i, 0) * .17s); }
html.intro-js .visual-tab:nth-child(2) { --i: 1; }
html.intro-js .visual-tab:nth-child(3) { --i: 2; }
html.intro-js .visual-tab:nth-child(4) { --i: 3; }
html.intro-js .visual-tab:nth-child(5) { --i: 4; }
html.intro-js .visual-tab:nth-child(6) { --i: 5; }
html.intro-js .visual-tab:nth-child(7) { --i: 6; }
html.intro-js .visual-tab:nth-child(8) { --i: 7; }
@media (max-width: 850px) { html.intro-js .visual-tab { animation-name: tab-in-up; } }

/* tab hover: the text slides right, the label turns yellow and a yellow edge lights up */
@media (min-width: 851px) and (hover: hover) {
  .visual-tab { transition: color .2s, background .2s, padding .25s ease, border-color .2s; }
  .visual-tab:not([aria-selected="true"]):hover, .visual-tab:not([aria-selected="true"]):focus-visible { padding-left: 26px; padding-right: 8px; color: var(--acid); border-left-color: var(--acid); background: var(--card); }
}

/* quote tab: taller message, send button flush left */
.pane-quote .field-msg { min-height: 150px; }
.pane-quote .quote-col .field { margin-bottom: 7px; }
.pane-quote .quote-col .field-msg { margin-bottom: 0; }
.pane-quote .quote-actions { flex-direction: row; justify-content: flex-start; margin-top: 10px; }

/* quote tab: every single-line control (inputs, selects, total box) has exactly the same height; only the message textarea differs */
.pane-quote input, .pane-quote select, .pane-quote .quote-total { box-sizing: border-box; height: 36px; line-height: 1.4; }
.pane-quote .quote-total { display: flex; align-items: center; justify-content: center; padding-block: 0; }
.pane-quote .sede-remove { height: 36px; width: 36px; }
.pane-quote .sede-row { grid-template-columns: 1.2fr 1.6fr .8fr 36px; }

/* first location row sits on the same line as the phone input on the left */
.pane-quote #q-sedes-label { margin-top: 7px; }

/* ===== phone layout (desktop above is untouched) ===== */
/* tabs: one swipeable row instead of overflowing the screen */
@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .visual-wrap, .visual { min-width: 0; }
  .visual-tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 3px; }
  .visual-tabs::-webkit-scrollbar { display: none; }
  .visual-tab { flex: 0 0 auto; }
}
@media (max-width: 700px) {
  /* only the open pane takes space, so the card is as tall as its content (no big empty areas) */
  .visual { min-height: 0; }
  .visual .pane:not(.is-active) { display: none; }
  .pane-map { height: min(100vw - 36px, 420px); min-height: 300px; }
  .visual-tab { padding: 13px 14px 12px; font-size: 11px; }

  /* quote tab: normal flowing form, the page scrolls (no scroll box inside the card) */
  .pane-quote { position: relative; inset: auto; overflow: visible; padding: 20px 18px 22px; }
  .pane-quote .quote-form { display: flex; flex-direction: column; height: auto; }
  .pane-quote .quote-col { display: contents; }
  .pane-quote .field-row { order: 1; }
  .pane-quote .field-msg { order: 2; }
  .pane-quote .quote-extra { order: 3; }
  .pane-quote .quote-actions { order: 4; }
  .pane-quote .field { margin-bottom: 14px; gap: 6px; }
  .pane-quote .field > label { font-size: 10px; }
  .pane-quote input, .pane-quote select, .pane-quote textarea { font-size: 16px; }
  .pane-quote input, .pane-quote select, .pane-quote .quote-total { height: 46px; }
  .pane-quote textarea { height: 110px; min-height: 110px; }
  .pane-quote .field-msg { min-height: 0; display: flex; margin-bottom: 14px; }
  .pane-quote .field-msg > label { padding-top: 0; }
  .pane-quote .field-msg .suggest-wrap { height: auto; }
  .pane-quote .field-msg textarea { height: 110px; }
  .pane-quote #q-sedes-label { margin-top: 0; }
  .pane-quote .quote-extra { margin: 6px 0 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .pane-quote .quote-intro { font-size: 13px; padding: 9px 12px; margin-bottom: 14px; }

  /* each location is a small card: name on top, city + workers below, remove at the bottom */
  .pane-quote .sede-row { display: grid; grid-template-columns: minmax(0, 1fr) 144px; gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--line); }
  .pane-quote .sede-row + .sede-row { margin-top: 10px; }
  .pane-quote .sede-row .sede-nombre { grid-column: 1 / -1; width: 100%; }
  .pane-quote .sede-row .sede-ciudad, .pane-quote .sede-row .sede-trabajadores { width: 100%; }
  .pane-quote .sede-row .sede-remove { grid-column: 1 / -1; width: 100%; height: 38px; font-size: 20px; }

  /* add button full width, total beneath it, send button full width and last */
  .pane-quote .quote-foot { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 12px; }
  .pane-quote .quote-add { width: 100%; padding: 13px 14px; font-size: 11px; text-align: center; }
  .pane-quote .quote-total-wrap { justify-content: space-between; gap: 14px; }
  .pane-quote .quote-total-label { text-align: left; max-width: none; font-size: 10px; }
  .pane-quote .quote-total { min-width: 84px; }
  .pane-quote .quote-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 18px; }
  .pane-quote .quote-actions .button-primary { width: 100%; justify-content: center; padding: 16px 18px; font-size: 13px; }
  .pane-quote .quote-actions .quote-msg { flex: none; }

  /* the other panes: slightly roomier text, less cramped */
  .pane-about, .pane-process, .pane-tech, .pane-services, .pane-results, .pane-contact { padding: 22px 18px; }
  .who p, .tech-list p, .flow-step p, .res-note { font-size: 14px; line-height: 1.6; }
  .flow-step h3, .tech-list h3 { font-size: 16px; }
  .res-n { font-size: 64px; }
  .pane-col { gap: 24px; }
}
@media (max-width: 560px) {
  /* top bar: all links fit on one line (brand link already goes home) */
  .nav { gap: 9px; letter-spacing: .02em; }
  .theme-toggle { margin-right: 2px; width: 28px; height: 28px; }
  .brand { font-size: 18px; gap: 9px; }
  /* hero: tighter intro so the tabs come into view sooner */
  .hero { padding-block: 26px 40px; gap: 30px; }
  .hero-note { font-size: 17px; margin-top: 16px; }
  .powered { margin-top: 20px; }
  .ticker-item { font-size: 9px; }
  .pane-quote .sede-row { display: grid; }
}

/* ===== phone menu: hamburger opens the links (+ theme and language) under the bar ===== */
.menu-toggle { display: none; }
@media (max-width: 700px) {
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; }
  .brand, .menu-toggle { height: 68px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: var(--t1); cursor: pointer; }
  .menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-toggle .i-close { display: none; }
  .topbar.is-open .menu-toggle .i-bars { display: none; }
  .topbar.is-open .menu-toggle .i-close { display: block; }
  .menu-toggle:focus-visible { outline: 1px solid var(--acid); outline-offset: -4px; }
  .topbar .nav { display: none; order: 3; flex: 0 0 100%; flex-wrap: wrap; align-items: center; gap: 0; padding: 0 0 16px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; }
  .topbar.is-open .nav { display: flex; }
  .topbar .nav > a { flex: 0 0 100%; padding: 15px 2px; border-bottom: 1px solid var(--line); }
  .topbar .nav > a[aria-current="page"] { color: var(--acid); }
  .topbar .nav .theme-toggle { margin: 16px 16px 0 2px; width: 34px; height: 34px; }
  .topbar .nav .lang { margin-top: 16px; font-size: 12px; }
}

/* process tab on phones: one single column of steps */
@media (max-width: 700px) {
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .flow-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: -16px; width: 1px; background: var(--line); }
}

/* =====================================================================
   START PAGE "stage": the map is the full-bleed opening image; the other
   tabs open as a glass card over it. Desktop: one fixed screen (no page
   scroll), every block lives in its own grid cell so nothing can overlap.
   Phones / short screens: normal flowing page.
   ===================================================================== */
.stage { position: relative; display: block; }
.stage > .hero { position: relative; z-index: 2; }

/* map: stacked layout = a block above the text */
.map-bg { position: relative; height: min(84vw, 400px); overflow: hidden; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cyan) 5%, transparent); }
.map-bg #globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage.has-pane .map-bg { display: none; }

/* hero grid: copy / tabs / card */
.stage > .hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "dock" "card"; gap: 22px; padding-block: 26px 40px; align-items: start; }
.hero-copy { grid-area: copy; }
.visual-tabs { grid-area: dock; }
.visual-wrap { grid-area: card; min-width: 0; scroll-margin-top: 80px; }
.stage:not(.has-pane) .visual-wrap { display: none; }

/* the dock: one horizontal row of tabs */
.visual-tabs { position: static; right: auto; margin: 0; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 72px; }
.visual-tabs::-webkit-scrollbar { display: none; }
.visual-tab { flex: 0 0 auto; min-width: 0; padding: 13px 16px 12px; border: 1px solid var(--line); border-bottom: 0; border-top: 2px solid transparent; border-left-width: 1px; border-radius: 6px 6px 0 0; }
.visual-tab[aria-selected="true"] { border-top-color: var(--acid); border-left-color: var(--line); }
.visual-tab, html.intro-js .visual-tab { animation-name: tab-in-up; }

@media (min-width: 851px) {
  .stage > .hero { gap: 0 48px; }
}

/* ---- locked one-screen layout (desktop, tall enough) ---- */
@media (min-width: 851px) and (min-height: 600px) {
  html:has(body.page-home), body.page-home { height: 100%; overflow: hidden; }
  body.page-home { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
  body.page-home .stage { min-height: 0; overflow: hidden; display: grid; }
  body.page-home .map-bg { position: absolute; inset: 0; height: auto; border: 0; background: color-mix(in srgb, var(--cyan) 4%, transparent); }
  /* soft veil on the left so the headline stays readable over the map */
  body.page-home .stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 88%, transparent) 26%, transparent 52%); }
  body.page-home .stage > .hero { min-height: 0; height: 100%; width: min(1480px, calc(100% - 96px)); padding-block: 0; grid-template-columns: minmax(340px, 4.3fr) minmax(0, 7.7fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "copy card" "dock dock"; align-items: center; gap: 0 48px; }
  body.page-home .hero-copy { align-self: center; min-height: 0; }
  body.page-home .hero-copy .powered, body.page-home .hero-copy .hero-note { top: 0; }
  body.page-home .stage .visual-wrap { display: flex; align-self: center; height: 100%; min-height: 0; padding-block: 22px 16px; transition: opacity .35s ease, transform .35s ease, visibility .35s; }
  body.page-home .stage:not(.has-pane) .visual-wrap { display: flex; opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; }
  body.page-home .stage.has-pane .map-bg { display: block; }
  body.page-home .visual { width: 100%; height: 100%; min-height: 0; align-self: stretch; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); background-color: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 60px rgba(0,0,0,.28); }
  body.page-home .pane { overflow-y: auto; scrollbar-width: thin; min-height: 0; }
  body.page-home .pane-quote { overflow: hidden; }
  body.page-home .visual-tabs { align-self: end; padding-bottom: 0; overflow: visible; border-bottom: 1px solid var(--line); margin-bottom: 0; }
  body.page-home .visual-tabs .visual-tab { margin-bottom: -1px; }
  body.page-home .visual-tab:not([aria-selected="true"]):hover { padding-left: 16px; padding-right: 16px; }

  /* headline scales with the screen height, so copy + dock + footer always fit */
  body.page-home .eyebrow { font-size: 10px; }
  body.page-home .intro-lockup { height: clamp(46px, 9vh, 100px); margin-top: clamp(6px, 1.6vh, 14px); }
  body.page-home .exploding-mark { height: clamp(90px, 22vh, 190px); font-size: clamp(90px, min(15vw, 22vh), 190px); }
  body.page-home .expansion { font-size: clamp(26px, min(4vw, 6.4vh), 48px); gap: 0; }
  body.page-home .expansion-row { min-height: 0; grid-template-columns: 1.2em minmax(0, 1fr); line-height: 1.14; }
  body.page-home .powered { margin-top: clamp(12px, 3vh, 30px); font-size: clamp(15px, 2.2vh, 18px); }
  body.page-home .hero-note { margin-top: clamp(8px, 2vh, 22px); font-size: clamp(15px, 2.4vh, 19px); }
}

/* tabs must stand out from the map: solid surface, clear outline, selected tab filled yellow */
.visual-tab { background: var(--card); color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); box-shadow: 0 -4px 14px rgba(0,0,0,.10); }
.visual-tab:hover, .visual-tab:focus-visible { color: var(--acid); border-top-color: var(--acid); }
.visual-tab[aria-selected="true"] { background: var(--acid-fill); color: var(--on-acid); border-color: var(--acid-fill); font-weight: 800; }
:root[data-theme="light"] .visual-tab[aria-selected="true"] { color: #fff; background: var(--acid); border-color: var(--acid); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .visual-tab[aria-selected="true"] { color: #fff; background: var(--acid); border-color: var(--acid); } }

/* selected tab: blue fill (the site's blue) instead of yellow */
.visual-tab[aria-selected="true"],
:root[data-theme="light"] .visual-tab[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .visual-tab[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: #fff; } }

/* "Proceso" uses the same text sizes as "Tecnología" */
.flow-step h3 { font-size: 16px; }
.flow-step p { font-size: 13px; line-height: 1.55; }
.pane-process .flow-step p strong { font-size: 15px; }
@media (max-width: 700px) { .flow-step h3 { font-size: 16px; } .flow-step p { font-size: 14px; line-height: 1.6; } .pane-process .flow-step p strong { font-size: 15px; } }

/* quote tab on the one-screen layout: the send button must always be reachable.
   The left column scrolls on its own if the screen is low, the button row stays pinned at its bottom. */
@media (min-width: 901px) {
  .pane-quote { container-type: inline-size; }
  .pane-quote .quote-col { overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
  .pane-quote .quote-actions { position: sticky; bottom: 0; z-index: 3; margin-top: auto; padding: 10px 0 2px; background: color-mix(in srgb, var(--card) 96%, transparent); }
  .pane-quote .field-consent { flex: none; }
}
/* narrow card: labels sit above their inputs and the location rows use two lines, so inputs are never squeezed */
@container (max-width: 780px) {
  .pane-quote .quote-col .field { grid-template-columns: 1fr; gap: 4px; margin-bottom: 8px; align-items: stretch; }
  .pane-quote .quote-col .field-msg > label { padding-top: 0; }
  .pane-quote .quote-col .field-msg { display: flex; flex-direction: column; flex: 1 1 84px; min-height: 84px; }
  .pane-quote .quote-col .field-msg .suggest-wrap { flex: 1 1 auto; height: auto; min-height: 0; }
  .pane-quote .quote-col .field-msg textarea { height: 100%; min-height: 60px; }
  .pane-quote .quote-col .field-row .field { margin-bottom: 8px; }
  .pane-quote .quote-extra .field { grid-template-columns: 1fr; gap: 4px; }
  .pane-quote .sede-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 36px; gap: 6px; }
  .pane-quote .sede-row .sede-nombre { grid-column: 1 / -1; width: 100%; flex: none; }
  .pane-quote .sede-row .sede-ciudad { grid-column: 1; width: 100%; }
  .pane-quote .sede-row .sede-trabajadores { grid-column: 2; width: 100%; }
  .pane-quote .sede-row .sede-remove { grid-column: 3; }
  .pane-quote .sede-row + .sede-row { margin-top: 10px; }
}

/* always-visible ways to ask: "Solicitar cotización" + WhatsApp in the top bar (every page); round WhatsApp button on phones */
.nav-wa { display: inline-grid; place-items: center; width: 42.5px; height: 42.5px; margin-left: -14px; color: #25d366; border-radius: 50%; transition: transform .2s; }
.nav-wa svg { width: 30px; height: 30px; }
.nav-wa:hover { transform: scale(1.12); }
.nav-cta { white-space: nowrap; }
.wa-fab { display: none; }
@media (max-width: 1180px) { .nav { gap: 22px; } }
@media (max-width: 1000px) and (min-width: 701px) { .nav { gap: 14px; font-size: 11px; } .nav-cta { padding: 9px 11px; } }
@media (max-width: 700px) {
  .topbar .nav > a.nav-cta { flex: 0 0 100%; color: var(--acid); }
  .topbar .nav > a.nav-wa { flex: 0 0 auto; width: auto; height: auto; margin: 0; padding: 15px 2px; border-radius: 0; }
  .wa-fab { display: grid; place-items: center; position: fixed; z-index: 60; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
  .wa-fab svg { width: 30px; height: 30px; }
  body:has(#tab-quote[aria-selected="true"]) .wa-fab { display: none; }
}
@media (max-width: 700px) {
  .topbar .nav > a.nav-cta { padding: 15px 14px; font-size: 13px; letter-spacing: .06em; margin-top: 14px; }
  .topbar .nav > a.nav-wa { padding: 0; margin: 16px 14px 0 2px; width: 34px; height: 34px; display: inline-grid; place-items: center; border-bottom: 0; }
}

/* message box: small rich-text editor (bold / italic / lists) that can be expanded */
.rt { display: flex; flex-direction: column; height: 100%; min-height: 0; border: 1px solid var(--line); background: var(--ink); transition: border-color .2s; }
.rt:focus-within { border-color: var(--acid); }
.rt-bar { display: flex; align-items: center; gap: 2px; padding: 3px 4px; border-bottom: 1px solid var(--line); flex: none; }
.rt-btn { font: inherit; font-size: 13px; line-height: 1; min-width: 30px; height: 26px; padding: 0 7px; color: var(--t1); background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.rt-btn:hover { color: var(--paper); border-color: var(--line); background: var(--panel); }
.rt-btn:focus-visible { outline: 1px solid var(--acid); }
.rt-expand { margin-left: auto; display: inline-grid; place-items: center; }
.rt-expand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rt-expand .i-in, .rt.is-expanded .rt-expand .i-out { display: none; }
.rt.is-expanded .rt-expand .i-in { display: inline; }
.rt-editor { flex: 1 1 auto; min-height: 60px; overflow-y: auto; padding: 8px 11px; font-size: 13px; line-height: 1.5; color: var(--paper); outline: none; overflow-wrap: anywhere; scrollbar-width: thin; }
.rt-editor:empty::before { content: attr(data-ph-es); color: var(--t3); pointer-events: none; }
html[lang="en"] .rt-editor:empty::before { content: attr(data-ph-en); }
.rt-editor ul, .rt-editor ol { margin: 4px 0; padding-left: 22px; }
.rt-editor b, .rt-editor strong { color: var(--paper); font-weight: 800; }
/* expanded: the editor takes over the whole card (full screen on phones); Esc or the button closes it */
.rt.is-expanded { position: fixed; inset: 0; z-index: 70; height: auto; padding: 14px 22px 18px; border: 0; background: var(--card); }
.rt.is-expanded .rt-editor { font-size: 15px; padding: 14px 16px; border: 1px solid var(--line); background: var(--ink); }
.rt.is-expanded .rt-bar { border-bottom: 0; padding: 0 0 10px; }
.rt.is-expanded .rt-btn { height: 32px; min-width: 36px; }
@media (max-width: 700px) {
  .pane-quote .rt { height: auto; }
  .pane-quote .rt-editor { min-height: 110px; max-height: 220px; font-size: 16px; }
  .pane-quote .rt.is-expanded { height: auto; }
  .pane-quote .rt.is-expanded .rt-editor { max-height: none; font-size: 16px; }
}

/* "Solicitar cotización" + WhatsApp sit on the left of the top bar, right after the BRPs logo */
.topbar-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar-left .nav-wa { margin-left: 0; }
.topbar-left .nav-cta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--mono); }
@media (max-width: 1000px) and (min-width: 701px) { .topbar-left { gap: 12px; } .topbar-left .nav-cta { font-size: 11px; padding: 9px 11px; } }
@media (max-width: 700px) {
  .topbar-left { display: contents; }
  .topbar-left .nav-cta, .topbar-left .nav-wa { display: none; }
  .topbar.is-open .topbar-left .nav-cta { display: block; order: 2; flex: 0 0 calc(100% - 64px); margin: 6px 0 0; text-align: center; padding: 14px; font-size: 13px; }
  .topbar.is-open .topbar-left .nav-wa { display: inline-grid; order: 2; flex: 0 0 44px; width: 44px; height: 44px; margin: 6px 0 0 10px; }
  .topbar.is-open .topbar-left { }
}

/* cookie banner (injected by cookie-consent.js): a full-width strip right under the header, in the site theme */
#cookie-banner { position: fixed !important; top: 82px !important; bottom: auto !important; left: 0 !important; right: 0 !important; max-width: none !important; margin: 0 !important; z-index: 200 !important;
  padding: 16px max(24px, calc((100% - 1480px) / 2)) !important; justify-content: space-between !important; gap: 24px !important;
  background: var(--panel) !important; color: var(--paper) !important; border: 0 !important; border-bottom: 1px solid var(--acid-line) !important; border-radius: 0 !important; box-shadow: 0 10px 40px rgba(0,0,0,.18) !important; }
#cookie-banner p { font-size: 13px; line-height: 1.55; max-width: 860px; color: var(--t1); }
#cookie-banner p a { color: var(--cyan) !important; }
#cookie-banner button { font-family: var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; font-size: 11px !important; padding: 12px 20px !important; border-radius: 0 !important; }
#cookie-banner button[data-choice="denied"] { background: transparent !important; color: var(--paper) !important; border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent) !important; }
#cookie-banner button[data-choice="granted"] { background: var(--cyan) !important; color: #fff !important; border: 1px solid var(--cyan) !important; font-weight: 700; }
@media (max-width: 850px) { #cookie-banner { top: 68px !important; } }
@media (max-width: 700px) { #cookie-banner { flex-direction: column; align-items: stretch !important; gap: 12px !important; padding: 14px 18px !important; } #cookie-banner > div { display: flex; } #cookie-banner button { flex: 1; } }

/* hide the header shortcut that duplicates the open tab */
body:has(#tab-quote[aria-selected="true"]) .topbar .nav-cta,
body:has(#tab-contact[aria-selected="true"]) .topbar .nav-wa,
body:has(#tab-contact[aria-selected="true"]) .wa-fab { display: none !important; }

/* "Resultados" pane: highlights black in the light theme */
:root[data-theme="light"] .pane-results .tech-list h3 strong { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-results .tech-list h3 strong { color: #000; } }

/* "Tecnología" pane: headings blue, highlights black in the light theme */
:root[data-theme="light"] .pane-tech .tech-list h3 { color: var(--cyan); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-tech .tech-list h3 { color: var(--cyan); } }
:root[data-theme="light"] .pane-tech .tech-list p strong { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-tech .tech-list p strong { color: #000; } }

/* Dark theme only: gold frame around the main card (the area whose content changes with the tab) */
:root[data-theme="dark"] .visual { border-color: var(--acid-line); box-shadow: 0 0 0 1px var(--acid-line), 0 18px 60px rgba(0,0,0,.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .visual { border-color: var(--acid-line); box-shadow: 0 0 0 1px var(--acid-line), 0 18px 60px rgba(0,0,0,.28); } }

/* Process steps: 22px headings; black headings on the light theme, numbering and the quote link stay blue */
.pane-process .flow-step h3 { font-size: 22px; }
@media (max-width: 700px) { .pane-process .flow-step h3 { font-size: 22px; } }
:root[data-theme="light"] .pane-process .flow-step h3 { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-process .flow-step h3 { color: #000; } }
.pane-process .flow-step p a { color: var(--cyan); font-weight: 700; }

/* Technology pane: 22px item titles, black on the light theme */
.pane-tech .tech-list h3 { font-size: 22px; }
@media (max-width: 700px) { .pane-tech .tech-list h3 { font-size: 22px; } }
:root[data-theme="light"] .pane-tech .tech-list h3 { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-tech .tech-list h3 { color: #000; } }

/* Contact pane links (email, phone, WhatsApp): bold; dark blue on the light theme */
.pane-contact .tech-list p a { font-weight: 700; }
:root[data-theme="light"] .pane-contact .tech-list p a, :root[data-theme="light"] .pane-contact .tech-list p a.wa-link { color: #0A3A8C; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-contact .tech-list p a, :root:not([data-theme="dark"]) .pane-contact .tech-list p a.wa-link { color: #0A3A8C; } }
/* WhatsApp links stay green on the light theme too (darker green for contrast) */
:root[data-theme="light"] .pane-contact .tech-list p a.wa-link { color: #128C4A; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pane-contact .tech-list p a.wa-link { color: #128C4A; } }

/* Header "Request a quote" button: blue on the light theme */
:root[data-theme="light"] .nav-cta { color: var(--cyan); border-color: var(--cyan); }
:root[data-theme="light"] .nav-cta:hover { background: var(--cyan); color: #fff; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .nav-cta { color: var(--cyan); border-color: var(--cyan); }
  :root:not([data-theme="dark"]) .nav-cta:hover { background: var(--cyan); color: #fff; }
}
.nav-cta { font-weight: 700; border-width: 2px; }
