/* Althian: paneles azules, rejilla con marcas de registro y tema claro u oscuro según el sistema. */

/* ---------- tokens: tema claro (predeterminado) ---------- */
:root {
  color-scheme: light dark;

  --fondo: #f7f9fa;
  --superficie: #ffffff;
  --superficie-2: #edf1f4;
  --campo: #f7f9fa;
  --linea: #d6dde2;
  --linea-2: #b4bfc8;
  --texto: #18222b;
  --texto-2: #56636e;
  --textura: rgba(24, 34, 43, .07);
  --sombra: rgba(24, 34, 43, .22);

  --acento: #2456d6;
  --acento-hover: #1c46b3;
  --acento-texto: #2456d6;
  --acento-lavado: #e8eefc;

  --ok: #0a7366;
  --aviso: #8a5a00;
  --error: #b93c0c;

  /* Los paneles azules se ven igual en los dos temas */
  --sobre-acento: #ffffff;
  --sobre-acento-2: #dde6fb;
  --tinta-fija: #18222b;
  /* Panel del inicio: marino de Profundidad (marca/motion), mientras carga la imagen */
  --marino: #0a1335;

  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1240px;
  --gutter: 24px;
  --nav-h: 68px;
  --r-panel: 18px;
  --r-card: 12px;
}

/* ---------- tokens: tema oscuro ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0f141a;
    --superficie: #161c23;
    --superficie-2: #1e252e;
    --campo: #1e252e;
    --linea: rgba(226, 234, 241, .12);
    --linea-2: rgba(226, 234, 241, .26);
    --texto: #e8edf2;
    --texto-2: #9aa6b1;
    --textura: rgba(226, 234, 241, .06);
    --sombra: rgba(0, 0, 0, .75);

    --acento-hover: #3a6cf0;
    --acento-texto: #7ea2ff;
    --acento-lavado: rgba(126, 162, 255, .12);

    --ok: #45d0b0;
    --aviso: #f5bd52;
    --error: #ff8a65;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--fondo);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--acento); color: var(--sobre-acento); }
:focus-visible { outline: 2px solid var(--acento-texto); outline-offset: 3px; }
.panel :focus-visible,
.cell-accent :focus-visible { outline-color: var(--sobre-acento); }
.panel .form :focus-visible { outline-color: var(--acento-texto); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; top: -64px; left: 16px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--acento); color: var(--sobre-acento);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.ico {
  flex: none; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-lg { width: 28px; height: 28px; stroke-width: 1.4; color: var(--acento-texto); }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* ---------- tipografía ---------- */
/* Títulos en Newsreader, la fuente del logo; el texto sigue en Mona Sans. */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
h3 { font-size: 23px; font-weight: 500; line-height: 1.2; letter-spacing: -0.006em; }

/* ---------- estructura ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: clamp(88px, 11vw, 144px); }
.sec-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec-head p { max-width: 58ch; margin: 18px auto 0; color: var(--texto-2); font-size: clamp(17px, 1.4vw, 19px); }
.example { margin-top: 14px; color: var(--texto-2); font-size: 13px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 520; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .16s, border-color .16s, color .16s;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--acento); color: var(--sobre-acento); }
.btn-accent:hover { background: var(--acento-hover); }
.btn-light { background: #ffffff; color: var(--tinta-fija); }
.btn-light:hover { background: #e8eefc; }
.btn-line { border-color: rgba(255, 255, 255, .55); background: transparent; color: var(--sobre-acento); }
.btn-line:hover { border-color: #ffffff; background: rgba(255, 255, 255, .1); }

/* ---------- navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--fondo) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--linea); }
.nav-in {
  display: flex; align-items: center; gap: 28px;
  max-width: 1480px; height: var(--nav-h);
  margin: 0 auto; padding: 0 24px;
}
.brand { display: inline-flex; border-radius: 6px; color: var(--texto); }
.wordmark { width: 106px; height: 24px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--texto-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav-links a:hover { background: color-mix(in srgb, var(--texto) 6%, transparent); color: var(--texto); }
.nav-links a.is-current { color: var(--texto); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; }

/* ---------- panel azul (inicio y contacto) ---------- */
.panel {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(1480px, calc(100% - 16px));
  margin-inline: auto;
  border-radius: var(--r-panel);
  background-color: var(--acento);
  color: var(--sobre-acento);
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) .8px, transparent 1.1px);
  background-size: 5px 5px;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .3));
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .3));
}

/* ---------- inicio: panel marino con un cuadro fijo de Profundidad ----------
   La imagen va en espejo: lo nítido a la derecha y lo desenfocado a la izquierda, detrás del texto.
   Se genera con marca/motion/render_portada.py (horizontal y vertical). */
.hero { padding-top: 8px; }
.hero-panel {
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(880px, calc(100svh - var(--nav-h) - 16px));
  background-color: var(--marino);
  /* Velo: oscurece solo detrás del texto */
  --velo: linear-gradient(to right, rgba(8, 12, 20, .5), rgba(8, 12, 20, .22) 50%, rgba(8, 12, 20, 0) 78%);
}
.hero-panel::before { content: none; }
.hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--velo); pointer-events: none; }
.hero-fondo { position: absolute; inset: 0; z-index: -2; }
.hero-fondo img { width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: right center; }
.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
  max-width: 680px; margin: 0 auto 0 clamp(24px, 6vw, 96px);
  padding: clamp(56px, 9vh, 112px) 24px;
  text-align: left;
}
.lead { max-width: 60ch; color: var(--sobre-acento-2); font-size: clamp(17px, 1.5vw, 20px); font-weight: 450; line-height: 1.5; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-nota { margin-top: -8px; color: var(--sobre-acento-2); font-size: 14px; }

/* Pantallas más altas que anchas: imagen vertical y velo parejo, porque el texto ocupa todo el ancho */
@media (max-aspect-ratio: 1/1) {
  .hero-panel { --velo: linear-gradient(to right, rgba(8, 12, 20, .58), rgba(8, 12, 20, .34)); }
  .hero-copy { margin: 0; }
}

/* ---------- marcos con marcas de registro ---------- */
.frame { position: relative; border: 1px solid var(--linea); }
.frame::after {
  content: ""; position: absolute; inset: -5px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--fondo) 0 0) left 1px top 1px / 7px 7px no-repeat,
    linear-gradient(var(--fondo) 0 0) right 1px top 1px / 7px 7px no-repeat,
    linear-gradient(var(--fondo) 0 0) left 1px bottom 1px / 7px 7px no-repeat,
    linear-gradient(var(--fondo) 0 0) right 1px bottom 1px / 7px 7px no-repeat,
    linear-gradient(var(--linea-2) 0 0) left top / 9px 9px no-repeat,
    linear-gradient(var(--linea-2) 0 0) right top / 9px 9px no-repeat,
    linear-gradient(var(--linea-2) 0 0) left bottom / 9px 9px no-repeat,
    linear-gradient(var(--linea-2) 0 0) right bottom / 9px 9px no-repeat;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--linea); }
.cell { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 3vw, 40px); background: var(--fondo); }
.cell h3 { margin-top: 14px; }
.cell p { color: var(--texto-2); font-size: 16px; }

/* ---------- cuándo conviene: tabla Situación → Objetivo ---------- */
.situaciones { width: 100%; border-collapse: collapse; table-layout: fixed; }
.situaciones th {
  padding: 16px clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--linea);
  background: var(--superficie-2);
  color: var(--texto-2); font-size: 14px; font-weight: 500; text-align: left;
}
.situaciones td {
  padding: clamp(20px, 2.2vw, 28px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--linea);
  font-size: 17px; line-height: 1.45; vertical-align: top;
}
.situaciones tr:last-child td { border-bottom: 0; }
.situaciones td:first-child { border-right: 1px solid var(--linea); color: var(--texto-2); }
.situaciones td:last-child { font-weight: 500; }
.situaciones .obj { display: flex; gap: 12px; }
.situaciones .obj .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--acento-texto); stroke-width: 2; }

/* ---------- servicios ---------- */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.tabs {
  position: relative;
  display: flex; gap: 4px; max-width: 100%;
  padding: 5px; overflow-x: auto;
  border: 1px solid var(--linea); border-radius: 999px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; flex: none; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--texto-2);
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: color .15s, background-color .15s;
}
.tab .ico { width: 18px; height: 18px; }
.tab:hover { background: color-mix(in srgb, var(--texto) 6%, transparent); color: var(--texto); }
.tab[aria-selected="true"] { background: var(--acento); color: var(--sobre-acento); }
.tab:focus-visible { outline-offset: -2px; }
.tab[aria-selected="true"]:focus-visible { outline-color: var(--sobre-acento); outline-offset: -4px; }

.tabpanel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tabpanel[hidden] { display: none; }
.tabpanel:focus-visible { outline-offset: -2px; }
.svc-copy { display: flex; flex-direction: column; gap: 18px; padding: clamp(32px, 4vw, 56px); border-right: 1px solid var(--linea); }
.svc-copy h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
.svc-copy > p { color: var(--texto-2); }
.incl { display: grid; gap: 12px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--linea); }
.incl li { display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.incl .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--acento-texto); stroke-width: 2; }
.svc-visual {
  display: grid; place-items: center;
  min-height: 560px; padding: clamp(24px, 4vw, 56px);
  background-image: radial-gradient(var(--textura) 1px, transparent 1.3px);
  background-size: 12px 12px;
}

/* fragmentos de interfaz */
.frag {
  width: 100%; max-width: 560px; overflow: hidden;
  border: 1px solid var(--linea); border-radius: var(--r-card);
  background: var(--superficie);
  box-shadow: 0 40px 80px -44px var(--sombra);
  font-size: 14px;
}
.frag-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--linea); font-size: 14px; font-weight: 560; }
.led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--acento-texto); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento-texto) 18%, transparent); }
.led-ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 16%, transparent); }
.pill { margin-left: auto; padding: 3px 10px; border: 1px solid var(--linea-2); border-radius: 999px; color: var(--texto-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill-ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.frag-meta { margin-left: auto; color: var(--texto-2); font-size: 12.5px; font-weight: 400; white-space: nowrap; }
.frag-foot { display: flex; gap: 24px; padding: 11px 16px; border-top: 1px solid var(--linea); color: var(--texto-2); font-size: 13px; }
.frag-foot b { margin-left: 4px; color: var(--texto); font-weight: 500; }

.ftable { width: 100%; border-collapse: collapse; }
.ftable th { padding: 10px 16px; border-bottom: 1px solid var(--linea); color: var(--texto-2); font-size: 12.5px; font-weight: 500; text-align: left; }
.ftable td { padding: 11px 16px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.ftable tr:last-child td { border-bottom: 0; }
.ftable .mono { font-size: 13px; }
.was { color: var(--texto-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--error) 70%, transparent); }
.now { color: var(--ok); }
.gone { color: var(--error); }

.phone-stage { position: relative; display: grid; justify-items: center; width: 100%; max-width: 440px; padding-bottom: 30px; }
.phone {
  width: 272px; padding: 16px 16px 20px;
  border: 1px solid var(--linea-2); border-radius: 36px;
  background: var(--superficie);
  box-shadow: inset 0 0 0 5px var(--superficie-2), 0 40px 80px -44px var(--sombra);
}
.phone-bar { position: relative; display: flex; align-items: center; height: 30px; padding: 0 14px; color: var(--texto-2); font-size: 12px; }
.phone-bar i { position: absolute; top: 6px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 999px; background: #0f141a; }
.phone-title { padding: 10px 8px 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px;
  margin: 0 4px 8px; padding: 9px 12px;
  border: 1px solid var(--linea); border-radius: 10px;
  background: var(--campo);
}
.pf span { grid-column: 1 / -1; color: var(--texto-2); font-size: 11.5px; }
.pf b { font-size: 14px; font-weight: 500; }
.pf b.mono { font-size: 13.5px; }
.pf .ico { width: 16px; height: 16px; color: var(--texto-2); }
.pf-err { border-color: var(--error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 14%, transparent); }
.pf-err em { grid-column: 1 / -1; color: var(--error); font-size: 12px; font-style: normal; }
.phone-btn { display: block; margin: 14px 4px 0; padding: 12px; border-radius: 999px; background: var(--acento); color: var(--sobre-acento); font-size: 14px; font-weight: 600; text-align: center; }
.pdf-toast {
  position: absolute; right: -6px; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--linea-2); border-radius: 12px;
  background: var(--superficie);
  box-shadow: 0 24px 40px -22px var(--sombra);
}
.pdf-toast .ico { width: 22px; height: 22px; color: var(--acento-texto); }
.pdf-toast b { display: block; font-size: 12.5px; font-weight: 500; }
.pdf-toast span { color: var(--texto-2); font-size: 12px; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--linea); }
.kpi { display: grid; align-content: start; gap: 6px; padding: 16px; }
.kpi + .kpi { border-left: 1px solid var(--linea); }
.kpi span { color: var(--texto-2); font-size: 12.5px; line-height: 1.3; }
.kpi b { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.dotbars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: end; gap: 14px; height: 172px; padding: 22px 20px 0; }
.dotbars i { display: block; height: calc(var(--n) * 7px); background: radial-gradient(circle, color-mix(in srgb, var(--texto) 45%, transparent) 1.5px, transparent 1.9px) center bottom / 7px 7px; }
.dotbars i.now { background-image: radial-gradient(circle, var(--acento-texto) 1.6px, transparent 2px); }
.axis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; padding: 10px 20px 16px; color: var(--texto-2); font-size: 11.5px; text-align: center; }

.forecast { width: 100%; height: auto; padding: 10px 8px 0; }
.fc-grid path { stroke: var(--linea); stroke-width: 1; }
.fc-y text { fill: var(--texto-2); font-size: 11px; text-anchor: end; }
.fc-today { stroke: var(--linea-2); stroke-width: 1; stroke-dasharray: 3 4; }
.fc-label { fill: var(--texto-2); font-size: 11px; }
.fc-band { fill: color-mix(in srgb, var(--acento-texto) 16%, transparent); }
.fc-hist { fill: none; stroke: var(--texto); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-pred { fill: none; stroke: var(--acento-texto); stroke-width: 2.2; stroke-dasharray: 6 6; stroke-linecap: round; }
.fc-dot { fill: var(--superficie); stroke: var(--texto); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px 16px; color: var(--texto-2); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 16px; height: 2px; background: var(--texto); }
.legend .lg-pred::before { background: repeating-linear-gradient(90deg, var(--acento-texto) 0 5px, transparent 5px 9px); }
.legend .lg-band::before { height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--acento-texto) 24%, transparent); }

.log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 12px 16px; border-bottom: 1px solid var(--linea); font-size: 13.5px; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--texto-2); font-size: 12.5px; }
.log span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.log span .ico { width: 14px; height: 14px; color: var(--texto-2); }
.log b { color: var(--ok); font-size: 12.5px; font-weight: 500; }
.log-warn { background: color-mix(in srgb, var(--aviso) 8%, transparent); }
.log-warn b { color: var(--aviso); }

/* ---------- áreas ---------- */
.areas .cell { min-height: 250px; }
.cell-accent { justify-content: flex-end; background: var(--acento); color: var(--sobre-acento); }
.cell-accent h3 { margin-top: 0; font-size: 28px; letter-spacing: -0.012em; }
.cell-accent p { color: var(--sobre-acento-2); }
.cell-accent .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- método ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid var(--linea); background: var(--linea); }
.step { display: flex; flex-direction: column; gap: 10px; padding: clamp(28px, 3vw, 40px); background: var(--fondo); }
.step-n {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border: 1px solid var(--linea-2); border-radius: 50%;
  font-size: 15px; font-weight: 560; font-variant-numeric: tabular-nums;
}
.step:last-child .step-n { border-color: var(--acento); background: var(--acento); color: var(--sobre-acento); }
.step p { color: var(--texto-2); font-size: 16px; }
.overlap { display: grid; gap: 10px; padding: 28px clamp(28px, 3vw, 40px); }
.overlap i { display: block; width: calc(var(--e) - var(--s)); height: 6px; margin-left: var(--s); border-radius: 999px; background: var(--linea-2); }
.overlap i:last-child { background: var(--acento-texto); }

/* ---------- contacto ---------- */
.contact-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: center;
  gap: clamp(36px, 5vw, 72px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter);
}
.contact-copy p { max-width: 44ch; margin-top: 20px; color: var(--sobre-acento-2); font-size: clamp(17px, 1.5vw, 20px); }
.contact-copy .mail { margin-top: 28px; }
.mail a { color: var(--sobre-acento); font-size: 18px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mail a:hover { text-decoration-thickness: 2px; }
.form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  background: var(--superficie); color: var(--texto);
  box-shadow: 0 50px 90px -50px rgba(8, 18, 52, .65);
}
.field { display: grid; gap: 8px; }
.field label { color: var(--texto-2); font-size: 14px; font-weight: 500; }
.field input,
.field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--linea-2); border-radius: 10px;
  background: var(--campo); color: var(--texto);
  font-size: 16px; line-height: 1.4; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 112px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--texto-2); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--acento-texto); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento-texto) 25%, transparent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 4px; }
.form-actions small { color: var(--texto-2); font-size: 14px; }
.form-actions small.is-ok { color: var(--ok); }
.form-actions small.is-error { color: var(--error); }
.form-actions small a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Turnstile: no ocupa lugar salvo cuando pide confirmar algo (el margen anula el gap del grid) */
.form-check:not(.is-visible) { height: 0; margin-bottom: -16px; overflow: hidden; }

/* ---------- pie ---------- */
.foot { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--linea); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-top: 56px; padding-bottom: 48px; }
.foot-brand .wordmark { width: 128px; height: 29px; color: var(--texto); }
.foot-brand p { max-width: 34ch; margin-top: 18px; color: var(--texto-2); font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-h { margin-bottom: 14px; color: var(--texto-2); font-family: var(--sans); font-size: 14px; font-stretch: 100%; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.foot-cols ul { display: grid; gap: 10px; }
.foot-cols a,
.foot-cols span { color: var(--texto); font-size: 15px; text-decoration: none; }
.foot-cols a:hover { color: var(--acento-texto); }
.foot-base { display: flex; justify-content: space-between; gap: 8px; padding: 20px 0 28px; border-top: 1px solid var(--linea); color: var(--texto-2); font-size: 14px; }

/* ---------- responsivo ---------- */
/* Las cinco pestañas caben en la cápsula desde unos 1160px; abajo de eso pasan a una fila
   de píldoras que se desplaza de borde a borde, para que se note que hay más. */
@media (max-width: 1160px) {
  .tabs-wrap { justify-content: flex-start; margin-inline: calc(-1 * var(--gutter)); }
  .tabs { padding: 0 var(--gutter); border: 0; border-radius: 0; }
  .tab { border: 1px solid var(--linea); }
  .tab[aria-selected="true"] { border-color: var(--acento); }
}

@media (max-width: 1080px) {
  .tabpanel { grid-template-columns: 1fr; }
  .svc-copy { border-right: 0; border-bottom: 1px solid var(--linea); }
  .svc-visual { min-height: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overlap { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav-in { gap: 12px; padding: 0 16px; }
  .nav-toggle {
    display: inline-grid; place-content: center; gap: 6px;
    width: 42px; height: 42px;
    border: 1px solid var(--linea-2); border-radius: 999px;
    background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--texto); transition: transform .2s; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 4px 16px 20px;
    border-bottom: 1px solid var(--linea);
    background: var(--fondo);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 15px 4px; border-bottom: 1px solid var(--linea); border-radius: 0; color: var(--texto); font-size: 17px; }
  .nav-links a:hover { background: transparent; }
  .grid-3 { grid-template-columns: 1fr; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-in { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-cta { height: 38px; padding: 0 14px; font-size: 14px; }
  .panel { width: calc(100% - 12px); border-radius: 14px; }
  .hero { padding-top: 6px; }
  .hero-copy { gap: 22px; padding: 44px 18px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  /* La tabla se apila: cada situación con su objetivo debajo */
  .situaciones thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .situaciones tr { display: block; padding: 20px 18px; border-bottom: 1px solid var(--linea); }
  .situaciones tr:last-child { border-bottom: 0; }
  .situaciones td,
  .situaciones td:first-child { display: block; padding: 0; border: 0; font-size: 16px; }
  .situaciones td:last-child { margin-top: 10px; }
  .situaciones td:first-child::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    color: var(--texto-2); font-size: 13px; font-weight: 500;
  }
  .ftable th:nth-child(2),
  .ftable td:nth-child(2) { display: none; }
  .ftable th, .ftable td { padding: 10px 12px; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 17px; }
  .dotbars { gap: 8px; height: 150px; padding: 18px 12px 0; }
  .axis { gap: 8px; padding: 8px 12px 12px; font-size: 10.5px; }
  .log li { grid-template-columns: auto minmax(0, 1fr); }
  .log b { grid-column: 2; }
  .phone-stage { padding-bottom: 64px; }
  .pdf-toast { right: auto; left: 50%; width: max-content; max-width: calc(100% - 8px); transform: translateX(-50%); }
  .areas { grid-template-columns: 1fr; }
  .areas .cell { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-base { flex-direction: column; }
}

@media (max-width: 350px) {
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
