/* ==========================================================================
   GEA TRADER — Sistema visual "Industrial Premium"
   Base: carbón / grafito / blanco hielo. Acento derivado del logo oficial
   (gota naranja); azul y verde del isotipo como acentos secundarios.
   ========================================================================== */

:root {
  /* Superficies */
  --carbon: #15191d;
  --carbon-2: #1b2025;
  --grafito: #252b31;
  --grafito-2: #2f363d;
  --hielo: #f2f3f1;
  --hielo-2: #e6e8e4;
  --line-dark: rgba(242, 243, 241, 0.12);
  --line-light: rgba(21, 25, 29, 0.14);

  /* Texto */
  --text: #f2f3f1;
  --text-2: #a9b0b6;          /* gris claro secundario sobre oscuro (AA) */
  --text-ink: #15191d;
  --text-ink-2: #545c63;      /* gris secundario sobre claro (AA) */

  /* Marca (muestreados del logo) */
  --accent: #e8822c;          /* naranja GEA */
  --accent-hi: #f39a4a;
  --accent-ink: #9e4c0f;      /* naranja para texto sobre fondo claro (AA) */
  --blue: #4a9ff0;
  --green: #3fb36b;

  /* Tipografía */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.3rem, 0.9rem + 7vw, 7.25rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 4vw, 5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Layout */
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --max: 1360px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--accent); color: var(--carbon); padding: .7rem 1rem; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.eyebrow .num { color: var(--accent); font-variant-numeric: tabular-nums; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 46ch; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--fs-micro); letter-spacing: .06em; }
.muted { color: var(--text-2); }
.accent { color: var(--accent); }
.h-wide { font-stretch: 112%; font-variation-settings: "wdth" 112; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--text); --bd: var(--line-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .85rem 1.5rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --bg: var(--accent); --fg: var(--carbon); --bd: var(--accent); }
.btn--primary:hover { --bg: var(--accent-hi); --bd: var(--accent-hi); }
.btn--ghost { --bd: rgba(242, 243, 241, 0.38); }
.btn--ghost:hover { --bd: var(--text); }
.btn--light { --bg: var(--hielo); --fg: var(--carbon); --bd: var(--hielo); }
.btn--light:hover { --bg: #fff; --bd: #fff; }
.btn--ink { --bg: var(--carbon); --fg: var(--hielo); --bd: var(--carbon); }
.btn--ink:hover { --bg: var(--grafito); }
.btn--ghost-ink { --fg: var(--text-ink); --bd: var(--line-light); }
.btn--ghost-ink:hover { --bd: var(--text-ink); }
.btn--lg { min-height: 64px; padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open { background: rgba(21, 25, 29, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-dark); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 58px; width: auto; }
@media (max-width: 960px) { .brand img { height: 50px; } }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__list { display: flex; list-style: none; gap: clamp(1rem, 2vw, 2rem); }
.nav__link { position: relative; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--text-2); padding: .5rem 0; transition: color .2s; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.nav .btn { min-height: 44px; padding: .6rem 1.1rem; font-size: .88rem; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark); background: transparent; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s var(--ease), background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem;
    padding: 2rem var(--gutter) 2.5rem; background: var(--carbon);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--text); padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .nav .btn { min-height: 56px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (video + eje central, bloques en espejo) ----------
   Escritorio: escenario de 1280×800 "px de escenario" escalado al viewport.
   --p = 1 px de escenario, expresado como longitud (calc(N * var(--p))). */
.hero {
  --cream: #f7f5ef;
  --white: #f9f9f9;
  --ink: rgba(255, 255, 255, .88);
  --p: min(100vh / 800, 100vw / 716);
  --font-cond: "Barlow Condensed", "Oswald", Impact, system-ui, sans-serif;
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate; background: #0a0b0c;
}
@supports (height: 100svh) { .hero { --p: min(100svh / 800, 100vw / 716); } }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #0a0b0c; z-index: -2; }
.hero__tint { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Video de fábrica: más claro que el anterior; se oscurece el centro (texto) y la base (bloques) */
  background:
    radial-gradient(ellipse 62% 58% at 50% 42%, rgba(10,11,12,.58) 0%, rgba(10,11,12,.30) 70%, rgba(10,11,12,0) 100%),
    linear-gradient(to bottom, rgba(10,11,12,.50) 0%, rgba(10,11,12,.32) 35%, rgba(10,11,12,.42) 62%, rgba(10,11,12,.82) 100%); }
/* El header fijo queda legible sobre el video */
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(10,11,12,.55), rgba(10,11,12,0)); }

.hero__stage { position: absolute; left: 50%; top: 50%; width: calc(1280 * var(--p)); height: calc(800 * var(--p)); transform: translate(-50%, -50%); }

.hero__top { position: absolute; left: 0; right: 0; top: calc(96 * var(--p)); text-align: center; }
.hero__eyebrow {
  margin: 0 0 calc(14 * var(--p)); font: 700 calc(9.5 * var(--p))/1 var(--font-cond);
  letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--cream);
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.hero__title {
  font: 800 calc(62 * var(--p))/.92 var(--font-cond); letter-spacing: -.008em; text-transform: uppercase;
  color: var(--cream); text-shadow: 0 15px 36px rgba(0,0,0,.5); text-wrap: nowrap;
}
.hero__title .hl { display: block; white-space: nowrap; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__text { max-width: calc(500 * var(--p)); margin: calc(16 * var(--p)) auto 0; font-size: calc(14 * var(--p)); line-height: 1.5; color: var(--ink); text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.hero__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: calc(10 * var(--p)); margin-top: calc(20 * var(--p)); }
.hero__ctas .btn { min-height: calc(48 * var(--p)); padding: 0 calc(22 * var(--p)); font-size: max(12.5px, calc(14 * var(--p))); }
.hero__ctas .btn--ghost { background: rgba(10,11,12,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.hero__mark { position: absolute; left: calc(614 * var(--p)); top: calc(584 * var(--p)); width: calc(52 * var(--p)); height: calc(52 * var(--p)); overflow: visible; color: var(--accent); }

.hero-feature { position: absolute; top: calc(568 * var(--p)); width: calc(380 * var(--p)); color: var(--white); }
.hf-left { right: calc(748.5 * var(--p)); text-align: right; }
.hf-right { left: calc(748.5 * var(--p)); text-align: left; }
.hf-icon { display: block; width: calc(35 * var(--p)); height: calc(38 * var(--p)); }
.hf-left .hf-icon { margin-left: auto; margin-right: calc(-4.5 * var(--p)); }
.hf-right .hf-icon { margin-right: auto; margin-left: calc(-3 * var(--p)); }
.hero-feature h2 {
  margin: calc(16 * var(--p)) 0 calc(10 * var(--p)); font: 700 calc(20 * var(--p))/1.02 var(--font-cond);
  letter-spacing: .005em; word-spacing: .09em; text-transform: uppercase; color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-feature h2 span, .hero-feature p span { display: block; white-space: nowrap; }
.hero-feature p { font-size: calc(12.6 * var(--p)); line-height: 1.32; color: var(--ink); text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hf-left p { margin-right: calc(12 * var(--p)); }
.hf-right p { margin-left: calc(12 * var(--p)); }
.hf-link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: calc(14 * var(--p));
  font: 700 max(12px, calc(12.5 * var(--p)))/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; padding-bottom: .45em; border-bottom: 1px solid var(--accent);
}
.hf-right .hf-link { border-bottom-color: var(--blue); }
.hf-left .hf-link { margin-right: calc(12 * var(--p)); }
.hf-right .hf-link { margin-left: calc(12 * var(--p)); }
.hf-link svg { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.hf-link:hover svg { transform: translateX(3px); }

/* Entrada: una sola secuencia (~1.8 s) y luego todo quieto */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow { animation: riseIn .55s cubic-bezier(.33,.9,.35,1) .15s both; }
  .hero__title .hl { animation: lineIn .9s cubic-bezier(.16,1,.3,1) both; }
  .hero__title .hl1 { animation-delay: .28s; }
  .hero__title .hl2 { animation-delay: .37s; }
  .hero__title .hl3 { animation-delay: .46s; }
  .hero__title .hl4 { animation-delay: .55s; }
  .hero__text { animation: riseIn .6s cubic-bezier(.33,.9,.35,1) .62s both; }
  .hero__ctas { animation: riseIn .6s cubic-bezier(.33,.9,.35,1) .7s both; }
  .hero__mark { transform-origin: 50% 50%; animation: markIn .7s cubic-bezier(.2,.9,.25,1) .72s both; }
  .hf-left { animation: blockInL .75s cubic-bezier(.16,1,.3,1) .82s both; }
  .hf-right { animation: blockInR .75s cubic-bezier(.16,1,.3,1) .9s both; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lineIn {
  0% { opacity: 0; transform: translateY(.26em); clip-path: inset(100% -30% 0% -30%); }
  35% { opacity: 1; }
  90% { clip-path: inset(0% -30% -100% -30%); }
  100% { opacity: 1; transform: none; clip-path: inset(-80% -30% -100% -30%); }
}
@keyframes markIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes blockInL { from { opacity: 0; transform: translate(-12px, 8px); } to { opacity: 1; transform: none; } }
@keyframes blockInR { from { opacity: 0; transform: translate(12px, 8px); } to { opacity: 1; transform: none; } }

/* Tablet vertical: grilla con riel central; bloques en espejo a cada lado */
@media (min-width: 610px) and (max-aspect-ratio: 1/1) {
  .hero { --u: min(100vw / 768, 100vh / 1024); --rail: clamp(120px, 22vw, 200px); }
  .hero__stage {
    position: absolute; inset: 0; width: auto; height: auto; transform: none;
    display: grid; grid-template-columns: 1fr var(--rail) 1fr;
    grid-template-rows: auto 1fr auto auto minmax(0, .38fr);
    padding: calc(var(--header-h) + 40 * var(--u)) clamp(24px, 5.2vw, 72px) calc(24 * var(--u));
  }
  .hero__top, .hero-feature, .hero__mark { position: static; }
  .hero__top { grid-area: 1 / 1 / 2 / -1; }
  .hero__eyebrow { font-size: calc(11 * var(--u)); margin-bottom: calc(20 * var(--u)); }
  .hero__title { font-size: min(calc(78 * var(--u)), 10.4vw); }
  .hero__text { font-size: calc(17 * var(--u)); max-width: calc(560 * var(--u)); margin-top: calc(22 * var(--u)); }
  .hero__ctas { margin-top: calc(26 * var(--u)); gap: 12px; }
  .hero__ctas .btn { min-height: 52px; padding: 0 1.4rem; font-size: 15px; }
  .hero__mark { grid-area: 3 / 1 / 4 / -1; justify-self: center; width: calc(64 * var(--u)); height: calc(64 * var(--u)); margin-bottom: calc(16 * var(--u)); }
  .hero-feature { width: auto; }
  .hf-left { grid-area: 4 / 1 / 5 / 2; }
  .hf-right { grid-area: 4 / 3 / 5 / 4; }
  .hf-icon { width: calc(42 * var(--u)); height: calc(46 * var(--u)); }
  .hf-left .hf-icon { margin-right: calc(-4.5 * var(--u)); }
  .hf-right .hf-icon { margin-left: calc(-3 * var(--u)); }
  .hero-feature h2 { font-size: calc(22 * var(--u)); line-height: 1.08; margin: calc(14 * var(--u)) 0 calc(12 * var(--u)); }
  .hero-feature h2 span { white-space: normal; }
  .hero-feature p { font-size: calc(14.5 * var(--u)); line-height: 1.34; max-width: calc(310 * var(--u)); }
  .hero-feature p span { display: inline; white-space: normal; }
  .hf-left p { margin-left: auto; margin-right: calc(10 * var(--u)); }
  .hf-right p { margin-right: auto; margin-left: calc(10 * var(--u)); }
  .hf-link { font-size: 14px; }
}

/* Teléfono: bloques apilados pero conservan su identidad en espejo */
@media (max-width: 609px) {
  .hero { --u: min(100vw / 390, 100vh / 780); height: auto; min-height: 100vh; min-height: 100dvh; }
  @supports (height: 100dvh) { .hero { --u: min(100vw / 390, 100dvh / 780); } }
  .hero__stage {
    position: relative; left: auto; top: auto; inset: auto; width: auto; height: auto; min-height: inherit; transform: none;
    display: grid; grid-template-columns: 100%;
    grid-template-rows: auto minmax(calc(70 * var(--u)), 1fr) auto auto auto minmax(0, .3fr);
    padding: calc(var(--header-h) + 22 * var(--u)) max(calc(22 * var(--u)), env(safe-area-inset-right)) max(calc(32 * var(--u)), env(safe-area-inset-bottom)) max(calc(22 * var(--u)), env(safe-area-inset-left));
  }
  .hero__top, .hero-feature, .hero__mark { position: static; }
  .hero__top { grid-row: 1; }
  .hero__eyebrow { font-size: clamp(8px, calc(9.5 * var(--u)), 11px); margin-bottom: calc(16 * var(--u)); }
  .hero__title { font-size: clamp(26px, min(9.6vw, calc(52 * var(--u))), 64px); }
  .hero__text { font-size: 15px; max-width: 34ch; margin-top: calc(16 * var(--u)); }
  .hero__ctas { margin-top: calc(20 * var(--u)); gap: 8px; }
  .hero__ctas .btn { min-height: 50px; padding: 0 1.1rem; font-size: 14.5px; flex: 1 1 100%; }
  .hero__mark { grid-row: 3; justify-self: center; width: clamp(38px, calc(46 * var(--u)), 54px); height: clamp(38px, calc(46 * var(--u)), 54px); margin-bottom: calc(18 * var(--u)); }
  .hero-feature { width: auto; }
  .hf-left { grid-row: 4; margin-bottom: calc(26 * var(--u)); }
  .hf-right { grid-row: 5; }
  .hf-icon { width: clamp(26px, calc(34 * var(--u)), 40px); height: clamp(28px, calc(37 * var(--u)), 43px); }
  .hf-left .hf-icon { margin-right: calc(-4 * var(--u)); }
  .hf-right .hf-icon { margin-left: calc(-3 * var(--u)); }
  .hero-feature h2 { font-size: clamp(15px, calc(17 * var(--u)), 20px); line-height: 1.08; margin: calc(12 * var(--u)) 0 calc(8 * var(--u)); }
  .hero-feature p { font-size: clamp(11.5px, calc(13.5 * var(--u)), 14.5px); line-height: 1.36; max-width: calc(320 * var(--u)); }
  .hero-feature p span { display: inline; white-space: normal; }
  .hf-left p { margin-left: auto; margin-right: 0; }
  .hf-right p { margin-right: auto; margin-left: 0; }
  .hf-left .hf-link { margin-right: 0; }
  .hf-right .hf-link { margin-left: 0; }
  .hf-link { font-size: 13px; min-height: 44px; padding-bottom: 0; align-items: center; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; margin-top: 4px; }
  .hf-right .hf-link { text-decoration-color: var(--blue); }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--hielo); color: var(--text-ink); }
.section--light .lead, .section--light .muted { color: var(--text-ink-2); }
.section--light .eyebrow { color: var(--text-ink-2); }
.section--light .accent { color: var(--accent-ink); }
.section--graphite { background: var(--grafito); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__head h2 { font-size: var(--fs-h2); margin-top: 1.1rem; }
.section__head .lead { justify-self: end; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } .section__head .lead { justify-self: start; } }

/* Línea técnica decorativa */
.tech-rule { display: flex; align-items: center; gap: 1rem; color: var(--text-2); }
.tech-rule::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-dark) 0 6px, transparent 6px 10px); }

/* ---------- Unidades de negocio ---------- */
.units { display: grid; grid-template-columns: 1fr 1fr; min-height: min(92vh, 860px); border-top: 1px solid var(--line-dark); }
.unit { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.75rem, 3.5vw, 3.5rem); min-height: 620px; color: var(--text); text-decoration: none; }
.unit + .unit { border-left: 1px solid var(--line-dark); }
.unit__media { position: absolute; inset: 0; z-index: -2; }
.unit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); filter: saturate(.85) brightness(.82); }
.unit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,25,29,.55) 0%, rgba(21,25,29,.05) 40%, rgba(21,25,29,.92) 100%); }
.unit:hover .unit__media img { transform: scale(1.04); filter: saturate(1) brightness(.9); }
.unit__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.unit__index { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 200; line-height: .8; color: rgba(242,243,241,.9); letter-spacing: -0.05em; }
.unit__tag { font-size: var(--fs-micro); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: .45rem .7rem; border: 1px solid rgba(242,243,241,.35); border-radius: 999px; background: rgba(21,25,29,.35); backdrop-filter: blur(6px); }
.unit h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); max-width: 13ch; }
.unit p { color: rgba(242,243,241,.84); max-width: 42ch; margin-top: 1rem; font-size: 1.05rem; }
.unit__list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: 1.4rem; }
.unit__list li { font-size: .8rem; color: var(--text-2); padding: .3rem .65rem; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(21,25,29,.45); }
.unit .btn { margin-top: 1.75rem; }
.unit--supply .unit__index { color: transparent; -webkit-text-stroke: 1px rgba(242,243,241,.85); }
.unit--lub .unit__index { color: transparent; -webkit-text-stroke: 1px rgba(242,243,241,.85); }
.unit__accent { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(.18); transform-origin: left; transition: transform .8s var(--ease); }
.unit--supply .unit__accent { background: var(--blue); }
.unit:hover .unit__accent { transform: scaleX(1); }
@media (max-width: 900px) {
  .units { grid-template-columns: 1fr; min-height: 0; }
  .unit { min-height: 560px; }
  .unit + .unit { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- Lubricantes (home, claro) ---------- */
.lub-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); }
.lub-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.lub-aside figure { margin: 0 0 1.75rem; position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.lub-aside figure img { width: 100%; height: 100%; object-fit: cover; }
.lub-aside figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; color: var(--hielo); font-size: .8rem; display: flex; justify-content: space-between; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.cat-list { list-style: none; border-top: 1px solid var(--line-light); counter-reset: cat; }
.cat-item { border-bottom: 1px solid var(--line-light); }
.cat-item > a, .cat-item > div { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: start; padding: 1.6rem 0; text-decoration: none; color: inherit; }
.cat-item .n { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; color: var(--accent-ink); padding-top: .45rem; }
.cat-item h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.cat-item p { color: var(--text-ink-2); margin-top: .45rem; max-width: 52ch; }
.cat-item .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; list-style: none; }
.cat-item .tags li { font-size: .75rem; padding: .2rem .55rem; border: 1px solid var(--line-light); border-radius: 999px; color: var(--text-ink-2); }
.cat-item .go { width: 44px; height: 44px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.cat-item .go svg { width: 18px; height: 18px; }
.cat-item > a:hover .go { background: var(--carbon); color: var(--hielo); border-color: var(--carbon); }
.cat-item > a:hover h3 { color: var(--accent-ink); }
@media (max-width: 960px) { .lub-layout { grid-template-columns: 1fr; } .lub-aside { position: static; } .lub-aside figure { aspect-ratio: 16/10; } }
@media (max-width: 520px) { .cat-item > a, .cat-item > div { grid-template-columns: 2.25rem minmax(0,1fr); } .cat-item .go { display: none; } }

/* Marcas */
.brands { display: grid; grid-template-columns: 1fr; gap: 1.1rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); margin-top: clamp(3rem, 6vw, 5rem); }
.brands__list { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; }
.brand-chip { display: inline-flex; align-items: baseline; gap: .7rem; padding: .9rem 1.4rem; border: 1px solid var(--line-light); border-radius: var(--radius); background: #fff; }
.brand-chip b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-stretch: 115%; font-variation-settings: "wdth" 115; }
.brand-chip small { font-size: .75rem; color: var(--text-ink-2); }
.brand-chip a { display: inline-flex; align-items: baseline; gap: .7rem; text-decoration: none; color: inherit; }
.brand-chip a small { color: var(--accent-ink); font-weight: 600; }
.brand-chip:has(a):hover { border-color: currentColor; }
.section:not(.section--light) .brands { border-color: var(--line-dark); }
.section:not(.section--light) .brand-chip { background: var(--carbon-2); border-color: var(--line-dark); }
.section:not(.section--light) .brand-chip small { color: var(--text-2); }
@media (max-width: 700px) { .brands { grid-template-columns: 1fr; } }

/* Servicios técnicos (fila editorial) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.pillar { padding: 2rem 2rem 2rem 0; }
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line-light); }
.pillar h3 { font-size: 1.25rem; font-weight: 600; margin: 1.1rem 0 .5rem; letter-spacing: -0.01em; }
.pillar p { color: var(--text-ink-2); font-size: .95rem; }
.icon { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.section--light .pillar .icon { color: var(--accent-ink); }
.section:not(.section--light) .pillars { border-color: var(--line-dark); }
.section:not(.section--light) .pillar + .pillar { border-color: var(--line-dark); }
.section:not(.section--light) .pillar p { color: var(--text-2); }
.section:not(.section--light) .pillar .icon { color: var(--accent); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding: 1.75rem 0; border-left: 0; } .pillar + .pillar { border-top: 1px solid var(--line-light); } .section:not(.section--light) .pillar + .pillar { border-top-color: var(--line-dark); } }

/* ---------- Abastecimiento ---------- */
.supply-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.supply-hero h2 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: .95; }
.supply-hero h2 .soft { display: block; font-weight: 300; color: var(--text-2); }
@media (max-width: 860px) { .supply-hero { grid-template-columns: 1fr; } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-dark) 0 6px, transparent 6px 10px); }
.step { position: relative; padding-right: 2rem; }
.step__dot { width: 47px; height: 47px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--carbon); display: grid; place-items: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--blue); position: relative; z-index: 1; transition: border-color .3s, background .3s, color .3s; }
.step:hover .step__dot { border-color: var(--blue); background: var(--blue); color: var(--carbon); }
.step h3 { font-size: 1.3rem; font-weight: 600; margin: 1.6rem 0 .6rem; letter-spacing: -0.01em; }
.step p { color: var(--text-2); font-size: .95rem; max-width: 32ch; }
.section--graphite .step__dot { background: var(--grafito); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 47px 1fr; gap: 0 1.25rem; padding: 0 0 2rem; }
  .step::before { content: ""; position: absolute; left: 23px; top: 47px; bottom: 0; width: 1px; background: var(--line-dark); }
  .step:last-child::before { display: none; }
  .step h3 { margin-top: .6rem; }
  .step p { grid-column: 2; }
}

.examples { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: 2.5rem; border-top: 1px solid var(--line-dark); }
.examples__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.example { background: var(--carbon); padding: 1.6rem; position: relative; }
.section--graphite .example { background: var(--grafito); }
.example .label { position: absolute; top: 1rem; right: 1rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); border: 1px dashed var(--line-dark); padding: .15rem .45rem; border-radius: 2px; }
.example h4 { font-size: 1.15rem; font-weight: 600; margin: 1rem 0 .4rem; letter-spacing: -0.01em; }
.example p { font-size: .9rem; color: var(--text-2); }
.example .icon { color: var(--blue); width: 34px; height: 34px; }
@media (max-width: 860px) { .examples { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .examples__grid { grid-template-columns: 1fr; } }

/* Bloque de conversión — abastecimiento */
.convert { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(3.5rem, 7vw, 6rem); border-radius: var(--radius); border: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.convert__body { padding: clamp(2rem, 5vw, 4.5rem); background: linear-gradient(135deg, #1d2f44 0%, var(--grafito) 70%); }
.convert__body h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: .98; }
.convert__body p { color: rgba(242,243,241,.8); margin: 1.25rem 0 2rem; max-width: 46ch; font-size: 1.05rem; }
.convert__media { position: relative; min-height: 320px; }
.convert__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.convert__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #233041 0%, rgba(35,48,65,0) 45%); }
.convert .btn--supply { --bg: var(--hielo); --fg: var(--carbon); --bd: var(--hielo); }
.convert .btn--supply:hover { --bg: #fff; }
@media (max-width: 520px) { .convert__body .btn { width: 100%; white-space: nowrap; padding-inline: 1.25rem; } }
.convert__alt { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font-size: .9rem; color: var(--text-2); }
.convert__alt a { color: var(--text); }
@media (max-width: 860px) { .convert { grid-template-columns: 1fr; } .convert__media { min-height: 240px; order: -1; } .convert__media::after { background: linear-gradient(0deg, #1f2c3c 0%, rgba(31,44,60,0) 60%); } }

/* ---------- Industrias (mosaico) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 24vw, 340px); gap: 2px; }
.tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: var(--text); text-decoration: none; background: var(--grafito); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); filter: saturate(.8); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,25,29,0) 30%, rgba(21,25,29,.9) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile .k { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; color: var(--accent); margin-bottom: .35rem; }
.tile h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 600; letter-spacing: -0.015em; }
.tile p { font-size: .9rem; color: rgba(242,243,241,.8); margin-top: .35rem; max-width: 36ch; }
.tile--a { grid-column: span 7; grid-row: span 2; }
.tile--b { grid-column: span 5; }
.tile--c { grid-column: span 5; }
.tile--d { grid-column: span 4; }
.tile--e { grid-column: span 4; }
.tile--f { grid-column: span 4; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .tile--a { grid-column: span 2; grid-row: span 1; }
  .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: span 1; }
  .tile--f { grid-column: span 2; }
}
@media (max-width: 520px) { .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; } .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: span 1; } .tile p { display: none; } }

/* ---------- Proveedores ---------- */
.partners { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.partner { position: relative; min-height: 190px; padding: 1.5rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .3s var(--ease); }
.partner:hover { background: var(--carbon-2); }
.partner__k { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.partner__name { font-family: var(--font-display); font-size: clamp(1.2rem, .75rem + .9vw, 1.45rem); font-weight: 800; line-height: 1.05; letter-spacing: 0; text-transform: uppercase; font-stretch: 104%; font-variation-settings: "wdth" 104; margin-top: auto; }
.partner small { color: var(--text-2); font-size: .8rem; line-height: 1.4; }
.partner--cta { padding: 0; background: rgba(74,159,240,.06); }
.partner--cta a { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; height: 100%; padding: 1.5rem 1.4rem; text-decoration: none; color: var(--text); }
.partner--cta .partner__k { color: var(--blue); }
.partner--cta b { font-size: 1.1rem; font-weight: 600; max-width: 18ch; }
.partner--cta svg { width: 22px; height: 22px; color: var(--blue); transition: transform .3s var(--ease); }
.partner--cta a:hover svg { transform: translateX(4px); }
.partner--cta:hover { background: rgba(74,159,240,.12); }
@media (max-width: 960px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partner { min-width: 0; }
.partner__name { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .partner { min-height: 150px; padding: 1.2rem 1rem; }
  .partner--cta a { padding: 1.2rem 1rem; }
  .partner__name { font-size: clamp(.85rem, 3.8vw, 1.2rem); letter-spacing: 0; font-stretch: 100%; font-variation-settings: "wdth" 100; }
  .partner--cta b { font-size: .98rem; }
}
.brands .link-arrow { justify-self: start; font-size: .9rem; }
/* El nombre de la marca se ajusta al ancho de su tarjeta: "TOTALENERGIES" nunca se corta */
@supports (font-size: 1cqi) {
  .partner, .partner--link a { container-type: inline-size; }
  .partner .partner__name { font-size: min(1.45rem, 10cqi); overflow-wrap: normal; }
}

/* ---------- Página de proveedor (LAAPSA) ---------- */
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stats li { padding: 1.75rem 1.5rem 1.75rem 0; display: flex; flex-direction: column; gap: .4rem; }
.stats li + li { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.stats b { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.stats span { color: var(--text-2); font-size: .92rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { padding-left: 0; border-left: 0; } .stats li:nth-child(n+3) { border-top: 1px solid var(--line-dark); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .stats li, .stats li + li { padding: 1.25rem 0; border-left: 0; } .stats li + li { border-top: 1px solid var(--line-dark); } }

.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.line { background: var(--hielo); display: flex; flex-direction: column; }
.line > img { width: 100%; height: 96px; object-fit: cover; }
.line__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.line h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.line p { color: var(--text-ink-2); font-size: .94rem; }
.line .link-arrow { margin-top: auto; align-self: flex-start; color: var(--text-ink); }
.line--cta { background: var(--hielo-2); justify-content: center; }
.line--cta .btn { align-self: flex-start; margin-top: .5rem; }
@media (max-width: 960px) { .lines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lines { grid-template-columns: 1fr; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips li { padding: .45rem .9rem; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .9rem; color: var(--text); background: var(--carbon-2); }
.partner--link { padding: 0; }
.partner--link a { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; height: 100%; padding: 1.5rem 1.4rem; text-decoration: none; color: inherit; }
.partner--link .partner__more { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--accent); }
.partner--link .partner__more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.partner--link:hover .partner__more svg { transform: translateX(4px); }
@media (max-width: 520px) { .partner--link a { padding: 1.2rem 1rem; } }

/* ---------- Página de proveedor (Química 10) ---------- */
.feature-product { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.feature-product__img { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.5rem; }
.feature-product__img img { width: 100%; height: auto; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .85rem 0; border-bottom: 1px solid var(--line-light); }
.spec th { width: 9.5rem; padding-right: 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-ink-2); font-weight: 600; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line-light); }
.notice--warn { border-left-color: #c2410c; background: rgba(194, 65, 12, .07); color: var(--text-ink) !important; }
.doc-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.doc-buttons .btn { min-height: 48px; padding: .6rem 1.1rem; font-size: .9rem; }
@media (max-width: 860px) { .feature-product { grid-template-columns: 1fr; } .feature-product__img { max-width: 360px; } }
@media (max-width: 480px) { .spec th { width: 6.5rem; } .doc-buttons .btn { width: 100%; } }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); max-width: 980px; }
.video-card { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.video-card video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: #0a0b0c; border-radius: var(--radius); border: 1px solid var(--line-dark); }
.video-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: .5rem; }
.video-card p { color: var(--text-2); font-size: .94rem; margin-bottom: .8rem; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .video-card { grid-template-columns: 1fr; } .video-card video { max-width: 280px; } }

.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.prod { background: var(--hielo); display: flex; flex-direction: column; }
.prod > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 1rem; }
.prod__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.prod h3 { font-size: 1.3rem; font-weight: 600; }
.prod p { color: var(--text-ink-2); font-size: .92rem; }
.prod .link-arrow { margin-top: auto; align-self: flex-start; color: var(--text-ink); padding-top: .4rem; }
@media (max-width: 960px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }

.cb-logo { width: 180px; height: auto; border-radius: var(--radius); }
.cb-products { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cb-products img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }

/* ---------- Nosotros / split editorial ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); }
.split__media .stamp { position: absolute; left: -1px; bottom: -1px; background: var(--carbon); padding: 1.1rem 1.4rem 0 0; display: flex; flex-direction: column; gap: .15rem; }
.section--light .split__media .stamp { background: var(--hielo); }
.split h2 { font-size: var(--fs-h2); margin: 1.1rem 0 1.4rem; }
.facts { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line-dark); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; }
.facts li span:first-child { color: var(--text-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; padding-top: .2rem; }
.facts a { text-decoration: none; } .facts a:hover { color: var(--accent); }
.section--light .facts, .section--light .facts li { border-color: var(--line-light); }
.section--light .facts li span:first-child { color: var(--text-ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- CTA final ---------- */
.final-cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 10vw, 9rem); }
.final-cta__bg { position: absolute; inset: 0; z-index: -2; }
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,25,29,.95) 0%, rgba(21,25,29,.75) 55%, rgba(21,25,29,.55) 100%); }
.final-cta h2 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; line-height: .96; }
.final-cta__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: end; }
.choice { display: grid; gap: .75rem; }
.choice a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(21,25,29,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; transition: border-color .25s, background .25s; }
.choice a:hover { border-color: var(--accent); background: rgba(21,25,29,.8); }
.choice b { display: block; font-size: 1.1rem; font-weight: 600; }
.choice small { color: var(--text-2); font-size: .85rem; }
.choice svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 860px) { .final-cta__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #101316; border-top: 1px solid var(--line-dark); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h2 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-grid a { text-decoration: none; color: var(--text); opacity: .86; }
.footer-grid a:hover { opacity: 1; color: var(--accent); }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--text-2); max-width: 34ch; }
.socials { display: flex; gap: .5rem; margin-top: 1.5rem; }
.socials a { width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; opacity: 1; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--text-2); font-size: .82rem; }
.footer-bottom a { color: var(--text-2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #0b2614; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-float { transition: transform .25s var(--ease), opacity .3s, visibility .3s; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(3rem, 6vw, 5rem); min-height: 70svh; display: flex; align-items: flex-end; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,25,29,.7) 0%, rgba(21,25,29,.35) 40%, rgba(21,25,29,.97) 100%); }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: .95; max-width: 16ch; margin: 1.25rem 0 1.5rem; }
.page-hero h1 .soft { display: block; font-weight: 300; color: rgba(242,243,241,.78); }
.page-hero .lead { color: rgba(242,243,241,.85); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.page-hero--compact { min-height: 0; }
.crumbs { list-style: none; display: flex; gap: .5rem; font-size: .8rem; color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); }

/* Catálogo */
.catalog-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter { min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--text-ink); transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--text-ink); }
.filter[aria-pressed="true"] { background: var(--carbon); color: var(--hielo); border-color: var(--carbon); }
.search { position: relative; flex: 0 1 320px; }
.search input { width: 100%; min-height: 44px; padding: .6rem 1rem .6rem 2.6rem; border: 1px solid var(--line-light); border-radius: var(--radius); background: #fff; color: var(--text-ink); }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-ink-2); }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 1px 0 0 1px; }
.card { background: var(--hielo); padding: 1.75rem; border: 1px solid var(--line-light); margin: -1px 0 0 -1px; display: flex; flex-direction: column; gap: .9rem; min-height: 100%; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.card__type { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); font-weight: 600; }
.card__status { font-size: .7rem; color: var(--text-ink-2); border: 1px dashed var(--line-light); padding: .15rem .5rem; border-radius: 2px; }
.card__img { aspect-ratio: 4/3; background: #fff; border-radius: 2px; display: grid; place-items: center; overflow: hidden; }
.card__img img { max-height: 100%; width: auto; object-fit: contain; }
.card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--text-ink-2); font-size: .92rem; }
.card .tags { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; }
.card .tags li { font-size: .72rem; padding: .15rem .5rem; border: 1px solid var(--line-light); border-radius: 999px; color: var(--text-ink-2); }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .5rem; }
.card__actions .btn { min-height: 44px; padding: .55rem 1rem; font-size: .85rem; }
.catalog-empty { padding: 3rem; text-align: center; color: var(--text-ink-2); background: var(--hielo); grid-column: 1 / -1; }
@media (max-width: 1000px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .catalog { grid-template-columns: 1fr; } .search { flex-basis: 100%; } }

.notice { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.2rem; border-left: 2px solid var(--accent); background: rgba(232,130,44,.08); font-size: .9rem; margin-top: 2rem; }
.section--light .notice { color: var(--text-ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-size: 1.15rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 1.5rem; max-width: 70ch; }
.section--light .faq, .section--light .faq details { border-color: var(--line-light); }
.section--light .faq details p { color: var(--text-ink-2); }

/* ---------- Formularios ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 960px) { .contact-aside { position: static; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 4px; margin-bottom: 2rem; background: var(--carbon); }
.tab { min-height: 56px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; border-radius: 2px; padding: .6rem 1rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; transition: background .25s, color .25s; }
.tab small { font-weight: 400; font-size: .78rem; opacity: .8; }
.tab[aria-selected="true"] { background: var(--grafito-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tab[data-tab="requerimiento"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--blue); }
.form-panel[hidden] { display: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form legend { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; padding: 0; margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; width: 100%; }
.form legend::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.form legend .mono { color: var(--accent); }
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; background: var(--carbon); color: var(--text);
  border: 1px solid rgba(242,243,241,.22); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a9b0b6' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #8a9299; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242,243,241,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,130,44,.25); }
.field .hint { font-size: .78rem; color: var(--text-2); }
.field .error { font-size: .8rem; color: #ff8a7a; min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff8a7a; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--text-2); grid-column: 1 / -1; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check input[aria-invalid="true"] { outline: 2px solid #ff8a7a; outline-offset: 2px; }
.section--graphite .split__media .stamp { background: var(--grafito); }
.stamp .mono.blue { color: var(--blue); }
.section--flush-top { padding-top: 0; }
.section--form { padding-top: clamp(1rem, 3vw, 2rem); }
.convert--first { margin-top: 0; }
.convert .eyebrow { color: rgba(242,243,241,.75); font-size: var(--fs-micro); margin: 0; }
/* Unidad 2 (abastecimiento): acento azul del isotipo */
.theme-supply .eyebrow::before { background: var(--blue); }
.theme-supply .eyebrow .num { color: var(--blue); }
.theme-supply .tile .k, .theme-supply .facts a:hover { color: var(--blue); }
.theme-supply .faq summary::after { color: var(--blue); }
.theme-supply .pillar .icon { color: var(--blue) !important; }
.urgency { display: flex; flex-wrap: wrap; gap: .5rem; }
.urgency label { position: relative; }
.urgency input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.urgency span { display: inline-flex; min-height: 44px; align-items: center; padding: .5rem 1rem; border: 1px solid rgba(242,243,241,.22); border-radius: 999px; font-size: .88rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.urgency input:checked + span { background: var(--blue); color: var(--carbon); border-color: var(--blue); }
.urgency input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone { position: relative; border: 1px dashed rgba(242,243,241,.3); border-radius: var(--radius); padding: 1.4rem; display: flex; gap: 1rem; align-items: center; background: var(--carbon); transition: border-color .2s, background .2s; }
.dropzone.is-over { border-color: var(--blue); background: rgba(74,159,240,.06); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { color: var(--blue); width: 32px; height: 32px; flex: none; }
.dropzone b { font-weight: 600; display: block; }
.dropzone small { color: var(--text-2); font-size: .8rem; }
.file-list { list-style: none; display: grid; gap: .35rem; font-size: .82rem; color: var(--text-2); margin-top: .5rem; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; padding-top: .5rem; }
.form__foot small { color: var(--text-2); max-width: 46ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 1.1rem 1.25rem; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(63,179,107,.12); border: 1px solid rgba(63,179,107,.5); }
.form-status.err { background: rgba(255,138,122,.1); border: 1px solid rgba(255,138,122,.5); }
.form-status .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.form-status .actions .btn { min-height: 44px; padding: .5rem 1rem; font-size: .88rem; }
@media (max-width: 640px) { .form, .form fieldset { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

.contact-cards { display: grid; gap: .75rem; margin-top: 2rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border: 1px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.contact-card:hover { border-color: var(--accent); }
.contact-card .icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
.contact-card small { display: block; color: var(--text-2); font-size: .78rem; }
.contact-card b { font-weight: 600; word-break: break-word; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.rise { animation: rise 1s var(--ease) both; }
.rise[data-delay="1"] { animation-delay: .1s; }
.rise[data-delay="2"] { animation-delay: .25s; }
.rise[data-delay="3"] { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Utilidades */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.row-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.photo-credit { font-size: .7rem; color: var(--text-2); }