/* Britti Sans (versión Trial): Regular y Semibold */
@font-face {
  font-family: "Britti Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/BrittiSansTrial-Regular-BF6757bfd47ffbf.otf") format("opentype");
}
@font-face {
  font-family: "Britti Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/BrittiSansTrial-Semibold-BF6757bfd443a8a.otf") format("opentype");
}

/* Britti Trial no trae letras con tilde ni ñ: se completan con Inter, achicado para igualar el tamaño */
@font-face {
  font-family: "Inter Acentos"; font-weight: 400; font-display: swap; size-adjust: 95%;
  src: url("../fonts/InterAcentos-400.woff2") format("woff2");
  unicode-range: U+00C1,U+00C9,U+00CD,U+00D3,U+00DA,U+00DC,U+00D1,U+00E1,U+00E9,U+00ED,U+00F3,U+00FA,U+00FC,U+00F1,U+00B0,U+00A9,U+00B7,U+20AC,U+2026;
}
@font-face {
  font-family: "Inter Acentos"; font-weight: 600; font-display: swap; size-adjust: 95%;
  src: url("../fonts/InterAcentos-600.woff2") format("woff2");
  unicode-range: U+00C1,U+00C9,U+00CD,U+00D3,U+00DA,U+00DC,U+00D1,U+00E1,U+00E9,U+00ED,U+00F3,U+00FA,U+00FC,U+00F1,U+00B0,U+00A9,U+00B7,U+20AC,U+2026;
}

/* GrowMind: tokens de marca (growmind-web-handoff/marca/tokens.json) */
:root {
  --p50: #F2F7F7;
  --p100: #DFECEC;
  --p200: #B7D6D7;
  --p400: #58AEB1;
  --p600: #338284;
  --p800: #1B5355;
  --p900: #112B2C;
  --white: #FFFFFF;

  --surface: var(--p50);
  --ink: var(--p900);
  --ink-2: var(--p800);

  --display: "Britti Sans", "Inter Acentos", Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --control-h: 44px;
  --container: 1200px;
  --margin: 40px;
  --section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-anchor: none; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--p800); }
a:hover { color: var(--p900); }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--p800); outline-offset: 2px;
}
.skip { position: absolute; left: 16px; top: -60px; background: var(--p800); color: #fff; padding: 10px 16px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-fill { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: calc(var(--container) + var(--margin) * 2); margin: 0 auto; padding: 0 var(--margin); }

/* Tipografía */
h1, h2, .display { font-family: var(--display); font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-size: 50px; line-height: 1.05; letter-spacing: -0.015em; }
.lead { font-size: 20px; line-height: 1.5; max-width: 36em; }
.head { display: flex; flex-direction: column; gap: 16px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--control-h);
  padding: 0 24px; border-radius: var(--r-md); font-size: 16px; font-weight: 500;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--p800); color: #fff; }
.btn-primary:hover { background: var(--p900); color: #fff; }
.btn-secondary { border-color: var(--p800); color: var(--p800); background: transparent; }
.btn-secondary:hover { background: var(--p100); color: var(--p800); }
.btn-on-dark { background: var(--p50); color: var(--p800); }
.btn-on-dark:hover { background: var(--p100); color: var(--p800); }

/* Menú */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 40px var(--margin) 0;
}
/* Velo de arriba: lo que sube por detrás del menú se desvanece */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--fade, var(--surface)) 100%, transparent) 0%,
    color-mix(in srgb, var(--fade, var(--surface)) 92%, transparent) 10%,
    color-mix(in srgb, var(--fade, var(--surface)) 80%, transparent) 20%,
    color-mix(in srgb, var(--fade, var(--surface)) 66%, transparent) 30%,
    color-mix(in srgb, var(--fade, var(--surface)) 52%, transparent) 40%,
    color-mix(in srgb, var(--fade, var(--surface)) 38%, transparent) 50%,
    color-mix(in srgb, var(--fade, var(--surface)) 26%, transparent) 60%,
    color-mix(in srgb, var(--fade, var(--surface)) 16%, transparent) 70%,
    color-mix(in srgb, var(--fade, var(--surface)) 8%, transparent) 80%,
    color-mix(in srgb, var(--fade, var(--surface)) 3%, transparent) 90%,
    color-mix(in srgb, var(--fade, var(--surface)) 0%, transparent) 100%);
}
.brand { display: block; width: 140px; position: relative; }
.brand img { width: 140px; height: auto; }
.brand .logo-blanco { position: absolute; inset: 0; opacity: 0; }
.brand img { transition: opacity .2s; }
.pill {
  display: flex; gap: 2px; padding: 3px; height: var(--control-h); border-radius: var(--r-md);
  background: rgba(17, 43, 44, .14); border: 1px solid rgba(17, 43, 44, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .2s, border-color .2s;
}
.pill a {
  display: flex; align-items: center; margin: 5px 0; padding: 0 13px; border-radius: 6px; font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--p900); transition: background-color .18s, color .18s;
}
.pill a:hover { background: rgba(17, 43, 44, .1); }
.pill a[aria-current="true"] { background: var(--p900); color: #fff; }
.btn-nav {
  justify-self: end; background: rgba(17, 43, 44, .14); border-color: var(--p900); color: var(--p900);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-nav:hover { background: rgba(17, 43, 44, .22); color: var(--p900); }
/* Pasada la portada, el botón del menú pasa a principal */
.site-header[data-hero="false"] .btn-nav { background: var(--p800); border-color: var(--p800); color: #fff; }
.site-header[data-hero="false"] .btn-nav:hover { background: var(--p900); color: #fff; }
/* Sobre fondos oscuros: mismo vidrio, texto claro */
.site-header[data-tone="dark"] .logo-petroleo { opacity: 0; }
.site-header[data-tone="dark"] .logo-blanco { opacity: 1; }
.site-header[data-tone="dark"] .pill { background: rgba(242, 247, 247, .18); border-color: rgba(242, 247, 247, .12); }
.site-header[data-tone="dark"] .pill a { color: var(--p50); }
.site-header[data-tone="dark"] .pill a:hover { background: rgba(242, 247, 247, .14); }
.site-header[data-tone="dark"] .pill a[aria-current="true"] { background: var(--p50); color: var(--p900); }
.site-header[data-tone="dark"] .btn-nav,
.site-header[data-tone="dark"][data-hero="false"] .btn-nav { background: rgba(242, 247, 247, .18); border-color: var(--p50); color: var(--p50); }
.site-header[data-tone="dark"] .btn-nav:hover { background: rgba(242, 247, 247, .28); }
.nav-toggle { display: none; }

/* Portada: una pantalla fija; el logo del menú empieza grande y centrado y viaja a su lugar */
.hero { padding: 0; }
.hero-stage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; }
.hero-stage { height: 100vh; height: 100svh; }
.hero-text { display: flex; flex-direction: column; gap: clamp(16px, 3vh, 32px); padding-top: 72px; }
.descriptor { font-size: 16px; font-weight: 500; color: var(--p800); }
.hero h1 { font-size: clamp(48px, 8.6vw, 136px); line-height: .98; letter-spacing: -0.02em; }
.hero h1 > span:not(.sr) { display: block; }
.hero .lead { font-size: clamp(18px, 1.9vw, 26px); max-width: 28em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .btn { min-height: 52px; font-size: 17px; padding: 0 28px; }
.js .btn-row { opacity: var(--b, 1); transform: translateY(calc((1 - var(--b, 1)) * 18px)); }
.hero-cue { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 56px); display: flex; justify-content: center; opacity: var(--cue, 0); pointer-events: none; }
/* Ratón con la rueda que baja: indica que hay que scrollear */
.mouse { position: relative; display: block; width: 28px; height: 44px; border: 1.5px solid var(--p800); border-radius: 15px; }
.mouse i { position: absolute; left: 50%; top: 9px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: var(--p800); animation: wheel 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(13px); opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}
/* El logo del menú se escala y se mueve desde JS; el menú aparece junto con ese viaje */
.js .brand { transform-origin: 0 0; will-change: transform; }
.js .site-header .pill, .js .site-header .btn-nav, .js .site-header .nav-toggle { opacity: var(--menu, 1); }

/* Problemas: cubo que gira en vertical */
.problems { position: relative; border-top: 1px solid var(--p100); }
.stage {
  display: grid; grid-template-columns: minmax(0, 18%) minmax(0, 1fr); column-gap: 24px;
  align-content: center; padding: 96px var(--margin); max-width: calc(var(--container) + var(--margin) * 2);
  margin: 0 auto; min-height: 640px;
}
.label { font-size: 15px; line-height: 1.4; align-self: start; }
.main { display: grid; gap: 48px; min-width: 0; }
.window {
  display: grid; font-size: clamp(36px, 4.6vw, 64px);
  perspective: 800px; perspective-origin: 15% 50%;
}
.phrase {
  grid-area: 1 / 1; font-family: var(--display); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.04;
}
.phrase span { display: block; will-change: transform, opacity; }
@media (min-width: 961px) { .phrase span { white-space: nowrap; } }
.phrase { transform-style: preserve-3d; }
.phrase .l1 { color: var(--p900); }
.phrase .l2 { color: var(--p600); } /* 24 px o más */
.sub { font-size: 14px; color: var(--p800); display: flex; gap: 16px; align-items: center; }
.sub .bar { flex: 0 0 120px; height: 2px; background: var(--p100); border-radius: 2px; overflow: hidden; }
.sub .bar i { display: block; height: 100%; width: 0; background: var(--p800); }

.js .problems { height: var(--problems-h, 480vh); }
.js .problems .stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-top: 0; padding-bottom: 0;
}
.js .problems .label { margin-top: 18vh; }
.js .phrase { will-change: transform, opacity; backface-visibility: hidden; }

/* Texto que aparece con el scroll: --p (0 a 1) lo pone el script; cada letra calcula su propio avance.
   Hay una ventana de 8 letras entre la que ya llegó y la que todavía está borrosa. */
.sw { display: inline-block; white-space: nowrap; }
.scrub { --p: 0; }
.sl {
  --t: clamp(0, calc((var(--p) * (var(--n) + 8) - var(--i)) / 8), 1);
  display: inline-block; opacity: var(--t);
  filter: blur(calc((1 - var(--t)) * 14px)); transform: translateY(calc((1 - var(--t)) * .32em));
}

/* Diagrama 1 */
.diagram-1 { padding: 32px 0 var(--section); }
/* Diagrama: sobre el fondo de la web, ocupa la pantalla (menú incluido). Lo controla la barra inferior */
.diagram-1 { height: 100vh; height: 100svh; min-height: 640px; box-sizing: border-box; padding: 96px 0 32px; display: flex; align-items: center; }
.dg-wrap { width: 100%; }
.dg-stage { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.dg-top { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--p800); }
.dg-canvas { position: relative; height: 340px; }
.dg-links { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.dg-link { stroke: var(--p800); stroke-width: 1.2; stroke-dasharray: 1 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dg-card { position: absolute; width: 22%; height: 76px; box-sizing: border-box; background: #fff; border: 1px solid var(--p200); border-radius: var(--r-lg); z-index: 2; will-change: left, top, transform, opacity; }
.dg-fa, .dg-fb { position: absolute; left: 16px; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
.dg-fb { opacity: 0; }
.dg-card b { font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--p900); }
.dg-card small { font-size: 14px; color: var(--p800); }
.dg-card.merge .dg-fa b { text-decoration: line-through; color: var(--p600); }
.dg-auto { position: absolute; top: -11px; right: 10px; font-size: 11px; font-weight: 500; color: var(--p800); background: var(--p100); padding: 2px 8px; border-radius: 6px; opacity: 0; }
.dg-arrow { position: absolute; transform: translate(-50%, -50%); font-size: 20px; color: var(--p800); pointer-events: none; z-index: 1; }
.dg-dot { position: absolute; top: 184px; left: 3%; width: 9px; height: 9px; border-radius: 50%; background: var(--p800); opacity: 0; z-index: 3; animation: dg-run 3.2s ease-in-out infinite; }
@keyframes dg-run { 0%, 100% { left: 3%; } 50% { left: 90%; } }
.dg-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 40px; align-items: end; border-top: 1px solid var(--p100); padding-top: 18px; }
.dg-left { font-size: 16px; line-height: 1.5; color: var(--p900); max-width: 22em; }
.dg-left b { font-weight: 600; }
.dg-bar { display: flex; flex-direction: column; gap: 8px; }
.dg-title { font-size: 14px; color: var(--p800); }
.dg-labels { position: relative; height: 22px; }
.dg-stop { position: absolute; top: 0; transform: translateX(-50%); background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--p800); cursor: pointer; white-space: nowrap; }
.dg-stop:first-child { transform: none; }
.dg-stop.on { color: var(--p900); font-weight: 600; }
.dg-stop:focus-visible { outline: 2px solid var(--p800); outline-offset: 3px; border-radius: 4px; }
.dg-bar input[type=range] { width: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; height: 22px; cursor: pointer; }
.dg-bar input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--p100); border-radius: 2px; }
.dg-bar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--p800); border: 0; }
.dg-bar input[type=range]::-moz-range-track { height: 2px; background: var(--p100); border-radius: 2px; }
.dg-bar input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--p800); border: 0; }
.dg-bar input[type=range]:focus-visible { outline: 2px solid var(--p800); outline-offset: 4px; border-radius: 4px; }
.dg-caption { font-size: 15px; color: var(--p900); min-height: 1.4em; }
.dg-cta { justify-self: end; align-self: end; }

/* Servicios */
.services { position: relative; border-top: 1px solid var(--p100); }
.js .services { height: var(--svc-h, 3000px); }
.svc-stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  column-gap: 24px; padding: 0 var(--margin); max-width: calc(var(--container) + var(--margin) * 2); margin: 0 auto;
  min-height: 560px;
}
.js .svc-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
.svc-left { padding: 96px 0; display: flex; flex-direction: column; gap: 20px; max-width: 360px; }
.js .svc-left { padding: 0; margin-top: calc(50svh - .75em); align-self: start; }
.svc-left h2 { font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--p900); }
.svc-lead { font-size: 16px; line-height: 1.5; color: var(--p900); }
.lines { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.lines li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--p800); }
.lines li .icon { margin-top: 1px; }
.lines li b { font-weight: 600; }
.svc-right { position: relative; min-width: 0; padding-left: 32px; }
.marker { display: none; position: absolute; left: 0; width: 10px; height: 10px; border-radius: 2px; background: var(--p800); }
.svc-list { display: flex; flex-direction: column; }
.svc-name {
  display: block; width: fit-content; max-width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: default;
  font-family: var(--display); font-size: clamp(30px, 3.3vw, 44px); font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.3; white-space: nowrap; color: var(--p900); will-change: color;
}
.svc-line { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 500; color: var(--p800); background: var(--p100); border-radius: var(--r-md); padding: 4px 10px; }
.svc-detail { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 32px; max-width: 40em; font-size: 16px; line-height: 1.5; }

/* Con JS: lista continua de tres copias */
.js .svc-right { height: 100%; overflow: hidden; }
.js .marker { display: block; }
.js .track { will-change: transform; }
.js .svc-list li, .js .svc-list-copy li { height: var(--row-h, 56px); }
.js .svc-detail { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .svc-name, .svc-copy-name { line-height: var(--row-h, 56px); }
.svc-copy-name { font-family: var(--display); font-size: clamp(30px, 3.3vw, 44px); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; display: block; height: var(--row-h, 56px); }

.pop {
  position: absolute; z-index: 5; width: 520px; pointer-events: none; transform-origin: 0 0;
  background: #fff; border: 1px solid var(--p200); border-radius: var(--r-lg); padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: 15px; line-height: 1.45; color: var(--p900);
}
.pop > p:not(.pop-title) { flex: 1 1 100%; }
.pop[hidden] { display: none; }
.pop-title { flex: 1 1 0; min-width: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

/* Secciones comunes */
.section { border-top: 1px solid var(--p100); padding: var(--section) 0; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack-lg { display: flex; flex-direction: column; gap: 64px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.steps .card { padding: 24px; display: flex; flex-direction: column; gap: 12px; color: var(--p800); }
.step-n { font-size: 14px; color: var(--p800); }
.steps h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--p900); }
.steps p { font-size: 16px; line-height: 1.55; color: var(--p900); }
.loop { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--p200); color: var(--p800); font-size: 16px; }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.case { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.ph { aspect-ratio: 4 / 3; background: var(--p100); border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 14px; color: var(--p800); }
.case-body { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 12px; }
.case-client { font-size: 14px; color: var(--p800); }
.case h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.case p { font-size: 16px; line-height: 1.5; }

.faq-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-grid .head { flex: 1 1 320px; align-self: flex-start; }
.faq-note { font-size: 18px; }
.faq-note a { font-weight: 500; }
.faq { flex: 999 1 560px; min-width: 0; border-bottom: 1px solid var(--p100); }
.faq details { border-top: 1px solid var(--p100); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 20px; font-weight: 500; color: var(--p900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--p800); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 24px; max-width: 38em; }

/* Cierre (claro) y pie (oscuro) */
.closing { background: var(--p50); color: var(--p900); border-top: 1px solid var(--p100); padding: var(--section) 0; }
.closing .big {
  font-size: clamp(56px, 10.5vw, 160px); line-height: .98; letter-spacing: -0.025em;
}
.closing .big .b1, .closing .big .b2 { display: block; }
.closing .big .b1 { color: var(--p900); }
.closing .big .b2 { color: var(--p600); padding-left: .4em; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.col { border-top: 1px solid rgba(17, 43, 44, .35); padding-top: 24px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.col p { font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.link { color: var(--p900); font-size: 16px; font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid transparent; }
.link:hover, .link:focus-visible { color: var(--p900); border-bottom-color: var(--p900); }

.site-footer { background: var(--p900); color: var(--p50); min-height: 100vh; min-height: 100svh; display: flex; }
.site-footer a:focus-visible { outline-color: var(--p50); }
.site-footer .container { max-width: none; }
.foot-inner { width: 100%; display: flex; flex-direction: column; padding-bottom: clamp(20px, 3.5vh, 36px); }
/* Mitad de arriba: logo y reloj centrados en su altura, la línea cae al 50 % */
.foot-top {
  flex: 0 0 50vh; flex: 0 0 50svh; box-sizing: border-box; padding-top: clamp(72px, 17vh, 180px);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; column-gap: 24px;
}
.foot-brand { grid-area: 1 / 1; align-self: center; position: relative; }
.foot-logo { width: clamp(280px, 39vw, 680px); height: auto; }
.foot-desc { position: absolute; left: 0; top: 100%; margin-top: clamp(10px, 1.6vh, 18px); font-size: 18px; color: var(--p50); white-space: nowrap; }
.foot-clock { grid-area: 1 / 2; align-self: center; text-align: right; font-variant-numeric: tabular-nums; }
.foot-clock span { display: block; font-size: 16px; color: var(--p50); }
.foot-clock time { display: block; margin-top: 10px; font-size: 26px; font-weight: 500; color: var(--p50); }
/* Mitad de abajo: dos columnas iguales, el mapa arranca al 50 % */
.foot-grid { border-top: 1px solid rgba(242, 247, 247, .2); padding-top: clamp(32px, 7vh, 72px); display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.foot-block { display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 28px); }
.foot-block h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.foot-block ul { display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; }
.foot-block .sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); column-gap: 24px; }
.foot-block .sitemap li:nth-child(6) { grid-column: 3; grid-row: 1; }
.foot-block .sitemap li:nth-child(7) { grid-column: 3; grid-row: 2; }
.site-footer a { color: var(--p50); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.muted { color: var(--p50); }
.foot-bar { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 16px; color: var(--p50); }
.foot-bar a { justify-self: start; display: inline-flex; align-items: center; gap: 24px; min-height: 44px; }

/* Seguinos: al pasar el puntero (o enfocar) se abren las redes */
.follow { position: relative; justify-self: end; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.follow-label { display: block; transition: transform .45s cubic-bezier(.65, 0, .35, 1); }
.follow-share { transition: opacity .2s, transform .45s cubic-bezier(.65, 0, .35, 1); }
.follow-icons { position: absolute; right: -12px; top: 0; display: flex; gap: 4px; pointer-events: none; }
.follow-link {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: default;
  color: var(--p50); border: 1.5px solid transparent;
  opacity: 0; transform: translateX(16px) scale(.6);
  transition: opacity .15s, transform .3s cubic-bezier(.65, 0, .35, 1), border-color .1s;
}
.follow-link .icon { width: 24px; height: 24px; }
.follow:hover .follow-icons, .follow:focus-within .follow-icons { pointer-events: auto; }
/* Al abrir, cada ícono entra con su retraso y un resorte. El retraso vive solo en la animación de entrada:
   una vez abierto, pasar de un ícono a otro responde al instante. */
.follow:hover .follow-link, .follow:focus-within .follow-link {
  opacity: .85; transform: none;
  animation: follow-in .55s cubic-bezier(.34, 1.56, .64, 1) backwards;
  transition: opacity .08s, border-color .08s;
}
.follow:hover .follow-link:nth-child(1), .follow:focus-within .follow-link:nth-child(1) { animation-delay: .12s; }
.follow:hover .follow-link:nth-child(2), .follow:focus-within .follow-link:nth-child(2) { animation-delay: .22s; }
@keyframes follow-in { from { opacity: 0; transform: translateX(16px) scale(.6); } to { opacity: .85; transform: none; } }
.follow:hover .follow-link:hover, .follow:focus-within .follow-link:focus-visible { opacity: 1; border-color: var(--p50); outline: none; }
.follow:hover .follow-share, .follow:focus-within .follow-share { opacity: 0; transform: scale(.6); }
.follow:hover .follow-label, .follow:focus-within .follow-label { transform: translate(32px, -32px); }

/* Pantallas medianas y móviles (segunda etapa, pero la base ya funciona) */
@media (max-width: 960px) {
  :root { --margin: 20px; --section: 64px; }
  h2 { font-size: 38px; }
  .site-header { grid-template-columns: 1fr auto; padding: 14px var(--margin) 0; }
  .site-header::before { height: 80px; }
  .btn-nav { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-h); padding: 0 16px;
    border: 1.5px solid var(--p900); border-radius: var(--r-md); background: rgba(17, 43, 44, .14);
    color: var(--p900); font-weight: 500; cursor: pointer;
  }
  .site-header[data-tone="dark"] .nav-toggle { background: rgba(242, 247, 247, .18); border-color: var(--p50); color: var(--p50); }
  .pill {
    display: none; position: absolute; top: 100%; left: var(--margin); right: var(--margin);
    flex-direction: column; background: var(--p50); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .site-header[data-tone="dark"] .pill { background: var(--p800); }
  .site-header.nav-open .pill { display: flex; }
  .stage { grid-template-columns: 1fr; row-gap: 24px; }
  .js .problems .label { margin-top: 0; }
  .window { font-size: clamp(30px, 9vw, 48px); }
  .dg-foot { grid-template-columns: 1fr; gap: 20px; }
  .dg-cta { justify-self: start; }
  .dg-card { width: 26%; }
  .dg-card b { font-size: 13px; }
  .dg-card small { font-size: 12px; }
  .svc-stage { grid-template-columns: 1fr; }
  .js .svc-left { margin-top: 90px; max-width: none; }
  .js .svc-left .lines { display: none; }
  .svc-right { padding-left: 24px; }
  .pop { width: min(520px, calc(100% - 40px)); }
  .foot-top { flex: 0 0 auto; grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 48px; row-gap: 24px; }
  .foot-brand, .foot-clock { grid-area: auto; text-align: left; }
  .foot-desc { position: static; margin-top: 12px; white-space: normal; }
  .foot-grid { grid-template-columns: 1fr; row-gap: 40px; padding-top: 40px; }
  .foot-bar { margin-top: 64px; }
  .foot-block .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
  .foot-block .sitemap li:nth-child(6), .foot-block .sitemap li:nth-child(7) { grid-column: auto; grid-row: auto; }
  .closing .big .b2 { padding-left: 0; }
  .foot-bar { grid-template-columns: 1fr auto; }
  .foot-bar > span { grid-column: 1 / -1; order: 3; }
}

/* Sin animación: todo queda a la vista, una cosa debajo de otra */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stage { height: auto; min-height: 100svh; }
  .js .btn-row { opacity: 1; transform: none; }
  .hero-cue { display: none; }
  .mouse i { animation: none; }
  .dg-dot { animation: none; display: none; }
  .sl { opacity: 1; filter: none; transform: none; }
  .follow-label, .follow-icons, .follow-link, .follow-share { transition: none; animation: none !important; }
  .js .problems { height: auto; }
  .diagram-1 { height: auto; padding: 56px 0 var(--section); }
  .js .diagram-1 .container { position: static; height: auto; display: block; }
  .js .problems .stage { position: static; height: auto; padding-top: 64px; padding-bottom: 64px; }
  .js .problems .label { margin-top: 0; }
  .window { display: block; perspective: none; }
  .phrase { margin-bottom: .6em; transform: none !important; opacity: 1 !important; }
  .sub { display: none; }
  .js .services { height: auto; }
  .js .svc-stage { position: relative; height: auto; overflow: visible; }
  .js .svc-left { margin-top: 0; padding: 64px 0; }
  .js .svc-right { height: auto; overflow: visible; padding: 64px 0 64px 32px; }
  .js .marker { display: none; }
  .js .track { transform: none !important; }
  .js .svc-list li { height: auto; }
  .js .svc-name { line-height: 1.3; }
  .js .svc-detail { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; padding: 8px 0 32px; }
  .js .svc-copy { display: none; }
  .pop { display: none; }
}
