/* ==========================================================================
   Vektor Stay — hoja de estilos principal
   Estructura: tokens · base · layout · componentes · páginas · utilidades
   ========================================================================== */

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color de marca */
  --bg: #F3ECE1;
  --bg-2: #EBE0CE;
  --surface: #FFFDF9;
  --cream: #FBF6EE;
  --ink: #2E241B;
  --ink-2: #45372A;
  --muted: #5C4B3B;
  --dim: #6F5C49;
  --espresso: #4A3728;
  --accent: #8A5A2B;
  --accent-soft: #EBCB9F;
  --line: rgba(74, 55, 40, .14);
  --line-2: rgba(74, 55, 40, .26);
  --on-dark: #FBF6EE;
  --on-dark-dim: rgba(251, 246, 238, .66);
  --line-dark: rgba(251, 246, 238, .14);
  --danger: #A3402A;

  /* Tipografía */
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Bricolage Grotesque', system-ui, sans-serif;

  /* Medidas */
  --max: 1840px;
  --gutter: clamp(20px, 4.5vw, 80px);
  --header-h: 72px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1, h2 { font-stretch: 90%; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(46px, 5.8vw, 100px); letter-spacing: -.05em; line-height: .95; }
h2 { font-size: clamp(36px, 4vw, 68px); }
h3, h4 { font-stretch: 95%; letter-spacing: -.03em; line-height: 1.15; }
h3 { font-size: clamp(19px, 1.6vw, 24px); }
h4 { font-size: 17.5px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-dark);
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(80px, 9vw, 136px) 0; }
.sec--tight { padding: clamp(56px, 6vw, 96px) 0; }
.sec--alt { background: var(--bg-2); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1 em, .dark h2 em { color: var(--accent-soft); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head .label { margin-bottom: 18px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.dark .sec-head p { color: var(--on-dark-dim); }

/* Etiquetas y textos
   -------------------------------------------------------------------------- */
.label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.label .idx { color: var(--accent); margin-right: 10px; }
.dark .label { color: var(--on-dark-dim); }
.dark .label .idx { color: var(--accent-soft); }

.lede { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.dark .lede { color: var(--on-dark-dim); }

.prose { display: grid; gap: 18px; color: var(--muted); font-size: 17.5px; }
.fine { font-size: 14.5px; color: var(--dim); }
.dark .fine { color: var(--on-dark-dim); }

/* Botones y enlaces
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--on-dark); }
.btn--primary:hover { background: var(--espresso); }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.dark .btn--primary, .btn--light { background: var(--accent-soft); color: var(--ink); }
.dark .btn--primary:hover, .btn--light:hover { background: var(--cream); }
.dark .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.dark .btn--ghost:hover { border-color: var(--on-dark); }

.btn--primary::after, .btn--light::after, .link::after {
  content: "";
  width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.btn--primary:hover::after, .btn--light:hover::after, .link:hover::after { transform: translateX(3px); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color .2s;
}
.link:hover { color: var(--accent); }
.dark .link:hover { color: var(--accent-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cabecera y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-logo); font-weight: 800; font-size: 21px; letter-spacing: -.02em;
}
.logo svg { width: 32px; height: 32px; }
.logo .stay { color: var(--accent); }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li > a, .menu-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 0; border-radius: var(--r-sm);
  background: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: background .2s, color .2s;
}
.menu > li > a:hover, .menu-toggle:hover, .has-sub.is-open .menu-toggle { background: var(--bg-2); color: var(--ink); }
.menu [aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menu-toggle svg { width: 10px; height: 7px; transition: transform .25s var(--ease); }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: -8px;
  width: 320px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 48px -24px rgba(46, 36, 27, .35);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .18s, transform .25s var(--ease), visibility .18s;
}
.submenu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .menu-toggle svg, .has-sub.is-open .menu-toggle svg { transform: rotate(180deg); }
.submenu a { display: grid; gap: 2px; padding: 11px 12px; border-radius: var(--r-sm); }
.submenu a:hover { background: var(--bg); }
.submenu b { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.submenu small { font-size: 13px; color: var(--dim); }
.submenu-title, .menu-cta { display: none; }

.nav-cta { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: none; cursor: pointer; align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), background .2s;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav-cta { display: none; }
  .menu {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 4px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .2s, transform .25s var(--ease);
  }
  .nav-open .menu { opacity: 1; transform: none; pointer-events: auto; }
  .menu > li > a { width: 100%; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
  .menu [aria-current="page"] { box-shadow: none; color: var(--accent); }
  .menu-toggle { display: none; }
  .submenu { position: static; width: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .submenu::before { display: none; }
  .submenu-title { display: block; padding: 22px 0 6px; }
  .submenu a { padding: 13px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .submenu b { font-size: 19px; letter-spacing: -.025em; }
  .submenu small { display: none; }
  .menu-cta { display: block; margin-top: 20px; }
  .menu-cta .btn { width: 100%; }
}

/* Hero de inicio
   -------------------------------------------------------------------------- */
.hero { padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero .lede { margin-bottom: 34px; max-width: 56ch; }
.hero-notes {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
  list-style: none; font-size: 14.5px; color: var(--dim);
}
.hero-notes li { display: flex; align-items: center; gap: 9px; }
.hero-notes li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }

.diagram {
  position: relative; width: 100%; max-width: 720px; aspect-ratio: 1; margin-left: auto;
  border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); overflow: hidden;
}
.diagram::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 75%);
}
.diagram-head {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; justify-content: space-between; padding: 18px 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-dim);
}
.diagram .wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: rgba(235, 203, 159, .26); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wires .pulse { stroke: var(--accent-soft); stroke-width: 2; stroke-dasharray: 6 240; stroke-linecap: round; animation: pulse 5s linear infinite; }
.wires .pulse:nth-of-type(4) { animation-delay: -1.3s; }
.wires .pulse:nth-of-type(6) { animation-delay: -2.6s; }
.wires .pulse:nth-of-type(8) { animation-delay: -3.4s; }
.wires .pulse:nth-of-type(10) { animation-delay: -.7s; }
.wires .pulse:nth-of-type(12) { animation-delay: -2s; }
@keyframes pulse { from { stroke-dashoffset: 246; } to { stroke-dashoffset: 0; } }

.node {
  position: absolute; transform: translate(-50%, -50%);
  padding: 8px 12px; border-radius: var(--r-sm);
  background: rgba(251, 246, 238, .06); border: 1px solid var(--line-dark);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.node--1 { left: 22%; top: 21%; } .node--2 { left: 78%; top: 21%; }
.node--3 { left: 17%; top: 48%; } .node--4 { left: 83%; top: 48%; }
.node--5 { left: 26%; top: 73%; } .node--6 { left: 74%; top: 73%; }
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%;
  background: var(--espresso); border: 1px solid rgba(235, 203, 159, .3);
  box-shadow: 0 0 0 16px rgba(235, 203, 159, .04);
}
.hub svg { width: 50px; height: 50px; }
.diagram-foot {
  position: absolute; inset: auto 20px 18px; z-index: 2;
  font-size: 12.5px; color: var(--on-dark-dim);
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .diagram { margin: 0 auto; }
}
@media (max-width: 520px) {
  .node { font-size: 11.5px; padding: 6px 9px; }
  .hub { width: 88px; height: 88px; }
  .hub svg { width: 36px; height: 36px; }
}

/* Cabecera de subpágina
   -------------------------------------------------------------------------- */
.page-head { padding: clamp(56px, 7vw, 110px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-head .wrap {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  column-gap: clamp(32px, 5vw, 96px); align-items: end;
}
.crumbs { grid-column: 1 / -1; margin-bottom: 22px; font-size: 13px; color: var(--dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; color: var(--line-2); }
.page-head h1 { font-size: clamp(42px, 5vw, 86px); line-height: .96; }
.page-head .lede { margin-bottom: 6px; }
.page-head .actions { grid-column: 1 / -1; margin-top: 36px; }

/* Rejillas de tarjetas
   -------------------------------------------------------------------------- */
.grid-cells {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.grid-cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { background: var(--surface); padding: clamp(24px, 2.4vw, 36px); }
.cell h3, .cell h4 { margin-bottom: 8px; }
.cell p { font-size: 15.5px; color: var(--muted); }
.dark .grid-cells { background: var(--line-dark); border-color: var(--line-dark); }
.dark .cell { background: var(--ink); }
.dark .cell p { color: var(--on-dark-dim); }

.problem { display: flex; flex-direction: column; gap: 12px; min-height: 210px; }
.problem p { margin-top: auto; }
.problem strong { color: var(--accent); font-weight: 600; }

.note {
  margin-top: 22px; padding: 16px 20px; border-left: 2px solid var(--accent);
  background: var(--bg-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px; color: var(--ink-2);
}
.note b { color: var(--accent); }
.dark .note { background: rgba(251, 246, 238, .05); border-color: var(--accent-soft); color: var(--on-dark-dim); }
.dark .note b { color: var(--accent-soft); }

/* Áreas de servicio */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); }
.area {
  display: flex; flex-direction: column;
  padding: clamp(28px, 2.6vw, 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .25s;
}
.area:hover { border-color: var(--line-2); }
.area-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.area-top b { font-size: 72px; font-weight: 600; font-stretch: 85%; line-height: .8; letter-spacing: -.05em; color: var(--accent-soft); }
.area h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 10px; }
.area > p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.area .btn, .area .link { align-self: flex-start; margin-top: auto; }
.area--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.area--dark > p { color: var(--on-dark-dim); }
.area--dark .area-top b { color: var(--accent); }
.area--dark .label { color: var(--on-dark-dim); }
.area--dark .ticks li { border-color: var(--line-dark); }
.area--dark .ticks li::before { background: var(--accent-soft); }

.ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.ticks li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--accent); transform: translateY(-3px); }
.ticks--lg li { font-size: 17px; padding: 14px 0; }

/* Tamaños de empresa */
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.segment { padding: 30px 28px 6px 0; }
.segment + .segment { padding-left: 28px; border-left: 1px solid var(--line); }
.segment .label { color: var(--accent); margin-bottom: 14px; }
.segment h3 { margin-bottom: 10px; }
.segment p { color: var(--muted); font-size: 15.5px; }

/* Bloque de llamada a la acción */
.cta {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: end;
  padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 80px);
  border-radius: var(--r-lg); position: relative; overflow: hidden;
}
.cta h2 { margin: 16px 0; }
.cta p { color: var(--on-dark-dim); max-width: 52ch; }
.cta-side { display: grid; gap: 12px; justify-items: start; }
.cta-side small { font-size: 13.5px; color: var(--on-dark-dim); }
.cta-side small a { text-decoration: underline; text-underline-offset: 3px; }

/* Grano sutil en bloques oscuros */
.dark { position: relative; isolation: isolate; }
.dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Modelos / casos */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); }
.case { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line-dark); border-radius: var(--r); }
.case h3 { font-size: clamp(22px, 2vw, 28px); }
.case p { color: var(--on-dark-dim); }
.case .label { color: var(--accent-soft); }

/* Listas numeradas */
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.steps-list li { counter-increment: n; display: flex; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.steps-list li::before { content: counter(n, decimal-leading-zero); flex: none; padding-top: 3px; font-size: 12px; font-weight: 600; color: var(--accent); }
.dark .steps-list li { border-color: var(--line-dark); }
.dark .steps-list li::before { color: var(--accent-soft); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 9px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: 15px; }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; font-stretch: 95%; letter-spacing: -.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; text-align: center;
  font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 54px 24px 0; color: var(--muted); max-width: 70ch; }

/* Páginas: sectores
   -------------------------------------------------------------------------- */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
.sector { display: grid; gap: 16px; align-content: start; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sector-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sector-top span:last-child { color: var(--accent); }
.sector h3 { font-size: 24px; }
.sector-cols { display: grid; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sector-cols .label { color: var(--accent); margin-bottom: 8px; font-size: 11px; }
.sector-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.sector--cta { background: var(--ink); border-color: var(--ink); color: var(--on-dark); align-content: space-between; }
.sector--cta .sector-top { color: var(--on-dark-dim); }
.sector--cta .sector-top span:last-child { color: var(--accent-soft); }
.sector--cta h3 { font-size: 40px; font-stretch: 90%; letter-spacing: -.045em; line-height: 1; }
.sector--cta p { color: var(--on-dark-dim); }
.sector--cta .btn { justify-self: start; }

.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 22px 20px 22px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.table th { width: 28%; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.table td { color: var(--muted); }

/* Páginas: método
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline li {
  counter-increment: t;
  display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px;
  padding: 32px 0; border-top: 1px solid var(--line-2); align-items: start;
}
.timeline li::before { content: counter(t, decimal-leading-zero); font-size: 60px; font-weight: 600; font-stretch: 85%; line-height: .8; letter-spacing: -.05em; color: var(--accent-soft); }
.timeline h3 { font-size: clamp(21px, 1.9vw, 27px); }
.timeline p { color: var(--muted); }
.timeline .you { display: block; margin-top: 10px; font-size: 14px; color: var(--dim); }
.timeline .you b { color: var(--accent); font-weight: 600; }

.milestones { display: grid; grid-template-columns: 40fr 30fr 30fr; gap: 6px; margin-top: 24px; }
.milestone { padding: 22px 20px; border: 1px solid var(--line-dark); border-radius: var(--r-sm); background: rgba(251, 246, 238, .04); }
.milestone b { display: block; margin-bottom: 8px; font-size: clamp(46px, 4vw, 68px); font-weight: 600; font-stretch: 85%; letter-spacing: -.05em; line-height: 1; color: var(--accent-soft); }
.milestone span { font-size: 14.5px; color: var(--on-dark-dim); }

/* Páginas: mantenimiento
   -------------------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: 34px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tier .label { color: var(--accent); }
.tier h3 { margin: 14px 0 10px; font-size: 40px; font-stretch: 90%; letter-spacing: -.045em; }
.tier > p { min-height: 72px; color: var(--muted); font-size: 15.5px; }
.tier-price { margin: 22px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14.5px; color: var(--dim); }
.tier-price b { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.tier .btn { margin-top: auto; }
.tier--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tier--dark > p, .tier--dark .tier-price { color: var(--on-dark-dim); border-color: var(--line-dark); }
.tier--dark .tier-price b { color: var(--on-dark); }
.tier--dark .label { color: var(--accent-soft); }
.tier--dark .ticks li { border-color: var(--line-dark); }
.tier--dark .ticks li::before { background: var(--accent-soft); }

.defs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.defs .label { color: var(--accent); margin-bottom: 12px; }

/* Páginas: quiénes somos
   -------------------------------------------------------------------------- */
.statement { max-width: 22ch; font-size: clamp(32px, 3.2vw, 52px); font-weight: 600; font-stretch: 90%; line-height: 1.05; letter-spacing: -.04em; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-2); }
.figure { padding: 28px 24px 28px 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
.figure b { display: block; font-size: clamp(54px, 4.8vw, 84px); font-weight: 600; font-stretch: 85%; line-height: 1; letter-spacing: -.05em; }
.figure span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }

.principles .cell { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
.principles .label { padding-top: 5px; color: var(--accent-soft); }
.principles h3 { margin-bottom: 8px; }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member { display: grid; gap: 12px; align-content: start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.member-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--bg-2); color: var(--accent); }
.member-icon svg { width: 22px; height: 22px; }
.member p { font-size: 15px; color: var(--muted); }

.contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contrast > div { padding: 32px; border: 1px solid var(--line); border-radius: var(--r); }
.contrast > div:first-child { background: var(--surface); }
.contrast h3 { margin-bottom: 16px; }
.contrast ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.contrast li { display: flex; gap: 12px; }
.contrast li::before { flex: none; font-weight: 700; }
.contrast .yes li::before { content: "✓"; color: var(--accent); }
.contrast .no li::before { content: "–"; color: var(--dim); }

/* Páginas: contacto
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(24px, 3.5vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.form fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.form legend { margin-bottom: 12px; padding: 0; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field label, .field-title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label span, .field-title span { font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--cream);
  font-size: 16px; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select {
  padding-right: 40px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234A3728' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background-color: var(--surface); box-shadow: 0 0 0 3px rgba(138, 90, 43, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { display: none; font-size: 13px; color: var(--danger); }
.field.has-error .error { display: block; }

.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; }
.option span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 14.5px; cursor: pointer; user-select: none;
  transition: background .2s, color .2s, border-color .2s;
}
.option span:hover { border-color: var(--ink); }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--accent); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent.has-error { color: var(--danger); }
.form .btn { justify-self: start; }

.form-done { display: none; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r); }
.form-done h3 { margin: 14px 0 12px; font-size: 30px; }
.form-done p { margin-bottom: 24px; color: var(--on-dark-dim); }
.form-done .text-btn { padding: 0; border: 0; background: none; color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin-bottom: 14px; font-size: 21px; }
.panel .steps-list li { padding: 12px 0; font-size: 15px; }
.contact-row { display: grid; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-row a, .contact-row strong { font-size: 17px; font-weight: 600; }
.contact-row a:hover { color: var(--accent); }

/* Pie de página
   -------------------------------------------------------------------------- */
.site-footer { padding: clamp(64px, 7vw, 100px) 0 28px; overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px;
  padding-bottom: 52px; border-bottom: 1px solid var(--line-dark);
}
.footer-grid p { max-width: 34ch; margin-top: 18px; font-size: 15px; color: var(--on-dark-dim); }
.footer-grid .label { margin-bottom: 16px; color: var(--accent-soft); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-grid ul a { color: var(--on-dark-dim); transition: color .2s; }
.footer-grid ul a:hover { color: var(--on-dark); }
.site-footer .logo path:first-child { stroke: var(--on-dark); }
.site-footer .logo .stay { color: var(--accent-soft); }
.footer-mark {
  padding: 40px 0 30px; font-size: clamp(46px, 7.6vw, 144px); font-weight: 600; font-stretch: 85%;
  line-height: .92; letter-spacing: -.05em; color: rgba(251, 246, 238, .08); user-select: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; color: var(--on-dark-dim); }
.footer-bottom a:hover { color: var(--on-dark); }
.clock { display: inline-flex; align-items: center; gap: 8px; }
.clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }

.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--on-dark); border: 1px solid rgba(251, 246, 238, .25);
  box-shadow: 0 12px 28px -12px rgba(46, 36, 27, .6);
  transition: background .2s, transform .2s var(--ease);
}
.whatsapp:hover { background: var(--accent); transform: translateY(-2px); }
.whatsapp svg { width: 25px; height: 25px; }

/* Animación de entrada
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Utilidades
   -------------------------------------------------------------------------- */
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 64px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .areas, .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier > p { min-height: 0; }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .split, .sec-head, .page-head .wrap, .cta, .pair, .contrast { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { margin-bottom: 22px; }
  .grid-cells, .grid-cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments { grid-template-columns: minmax(0, 1fr); }
  .segment, .segment + .segment { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 620px) {
  .grid-cells, .grid-cells--2, .sectors, .team, .defs, .row { grid-template-columns: minmax(0, 1fr); }
  .principles .cell { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .problem { min-height: 0; }
  .milestones { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
}

/* Cinta de servicios en movimiento
   -------------------------------------------------------------------------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 22px 0; animation: ticker 48s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 24px; font-weight: 500; font-stretch: 95%; letter-spacing: -.03em; color: var(--ink-2); }
.ticker-track span::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.statement em, .sector--cta h3 em { font-style: normal; color: var(--accent); }
.sector--cta h3 em { color: var(--accent-soft); }

/* Animaciones
   -------------------------------------------------------------------------- */

/* Barra de progreso de lectura */
.progress {
  position: fixed; inset: 0 0 auto; z-index: 70; height: 2px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Cabecera que se oculta al bajar y aparece al subir */
.site-header { transition: border-color .3s, transform .35s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Titular de portada: palabra a palabra */
.js .split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-word > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--w, 0) * 70ms + 120ms); }
.js .is-loaded .split-word > span { transform: none; }

/* Entrada escalonada de tarjetas */
.js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-stagger].is-visible > * { opacity: 1; transform: none; }

/* Subrayado que se dibuja bajo la palabra destacada */
h1 em, h2 em { background: linear-gradient(currentColor, currentColor) 0 92% / 0 2px no-repeat; transition: background-size 1s var(--ease) .5s; }
.is-visible h1 em, .is-visible h2 em, .is-loaded h1 em, h1 em.is-visible, h2 em.is-visible { background-size: 100% 2px; }

/* Esquema de la portada */
.js .diagram .node { opacity: 0; transform: translate(-50%, -40%); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .diagram.is-visible .node { opacity: 1; transform: translate(-50%, -50%); }
.diagram .node--1 { transition-delay: .5s; } .diagram .node--2 { transition-delay: .6s; }
.diagram .node--3 { transition-delay: .7s; } .diagram .node--4 { transition-delay: .8s; }
.diagram .node--5 { transition-delay: .9s; } .diagram .node--6 { transition-delay: 1s; }
.js .diagram .wires { opacity: 0; transition: opacity 1.2s var(--ease) .3s; }
.js .diagram.is-visible .wires { opacity: 1; }
.hub::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(235, 203, 159, .35); animation: spin 28s linear infinite;
}
.node { transition: background .25s, border-color .25s; }
.node:hover { background: rgba(235, 203, 159, .14); border-color: rgba(235, 203, 159, .45); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Interacción en tarjetas */
.area, .sector, .tier, .member, .case, .panel {
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), border-color .25s;
}
.area:hover, .sector:hover, .tier:hover, .member:hover {
  translate: 0 -4px;
  box-shadow: 0 22px 44px -28px rgba(46, 36, 27, .45);
}
.case:hover { border-color: rgba(235, 203, 159, .4); translate: 0 -3px; }
.cell { transition: background .3s, opacity .7s var(--ease), transform .7s var(--ease); }
.grid-cells .cell:hover { background: var(--cream); }
.dark .grid-cells .cell:hover { background: #352A20; }
.member-icon { transition: transform .45s var(--ease), background .3s, color .3s; }
.member:hover .member-icon { transform: rotate(-8deg) scale(1.06); background: var(--ink); color: var(--accent-soft); }
.area-top b { transition: transform .5s var(--ease); display: inline-block; }
.area:hover .area-top b { transform: translateY(-4px); }
.ticks li { transition: padding-left .25s var(--ease); }
.area .ticks li:hover { padding-left: 6px; }

/* Botones: brillo al pasar */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s var(--ease);
}
.btn--primary:hover::before { transform: translateX(100%); }

/* Bloque de llamada a la acción: luz que sigue al cursor */
.cta { --mx: 85%; --my: 0%; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(192, 137, 78, .32), transparent 65%);
  transition: opacity .3s;
}
.cta > * { position: relative; z-index: 1; }

/* Contadores */
.figure b, .milestone b { font-variant-numeric: tabular-nums; }

/* Línea de tiempo: el número se colorea al llegar */
.timeline li::before { transition: color .8s var(--ease); }
.timeline li.is-visible::before { color: var(--accent); }

/* Preguntas frecuentes: apertura suave */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Menú: subrayado animado */
@media (min-width: 961px) {
  .menu > li > a { position: relative; }
  .menu > li > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
  }
  .menu > li > a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* WhatsApp: aparece tras la portada */
.js .whatsapp { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .2s; }
.js .whatsapp.is-shown { opacity: 1; transform: none; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .js .split-word > span, .js [data-stagger] > *, .js .diagram .node, .js .whatsapp { opacity: 1; transform: none; }
  .js .diagram .wires { opacity: 1; }
  h1 em, h2 em { background-size: 100% 2px; }
  .progress { display: none; }
}

/* Transiciones combinadas: entrada + interacción */
.js [data-reveal], .js [data-stagger] > * {
  transition-property: opacity, transform, translate, box-shadow, background-color, border-color;
  transition-duration: .7s, .7s, .45s, .45s, .3s, .25s;
  transition-timing-function: var(--ease);
}
.js [data-stagger] > * { transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s, 0s, 0s; }

/* Formulario: estados y antispam
   -------------------------------------------------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: var(--danger); }
.btn.is-loading { opacity: .7; cursor: progress; }
.is-sent .form, .is-fallback .form { display: none; }
.form-done { display: none; }
.is-sent #form-ok, .is-fallback #form-fallback { display: block; }
.form-done:focus { outline: none; }

/* Página legal
   -------------------------------------------------------------------------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav a { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.subnav a:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.legal { max-width: 820px; }
.legal article { padding: 48px 0; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 70px); }
.legal h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 20px; }
.legal h3 { margin: 28px 0 8px; font-size: 19px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 20px; margin: 20px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.legal dt { font-weight: 600; color: var(--ink-2); }
.legal dd { margin: 0; color: var(--muted); }
.updated { margin-bottom: 8px; font-size: 14px; color: var(--dim); }
mark.todo { padding: 1px 6px; border-radius: 4px; background: #F6D9A8; color: var(--ink); font-size: .92em; }
@media (max-width: 620px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* Televisores y monitores muy grandes: la web se escala entera
   -------------------------------------------------------------------------- */
:root { --max: 2400px; }
@media (min-width: 2600px) {
  body { zoom: 1.4; }
  .hero { min-height: calc(100svh / 1.4 - var(--header-h)); }
  .diagram { width: min(100%, calc(100svh / 1.4 - var(--header-h) - 140px)); }
}
@media (min-width: 3200px) {
  body { zoom: 1.75; }
  .hero { min-height: calc(100svh / 1.75 - var(--header-h)); }
  .diagram { width: min(100%, calc(100svh / 1.75 - var(--header-h) - 140px)); }
}
