/* ==========================================================================
   TeknorV Systems · Hoja de estilos principal
   Dirección artística: "Ingeniería que acompaña"
   - Azul corporativo del logotipo + papel cálido + planos técnicos.
   - Tipografías autoalojadas: Lexend (lectura) y Michroma (detalles técnicos).
   ========================================================================== */

@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Michroma";
  src: url("/assets/fonts/michroma-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores de marca (extraídos del logotipo) */
  --navy-950: #07121F;
  --navy-900: #0B1B2D;
  --navy-800: #12283F;
  --blue-800: #0E4D90;
  --blue-700: #155A9E;
  --blue-600: #1F64AA;
  --blue-500: #2C71B2;
  --blue-400: #4A8FCB;
  --blue-300: #8FBBE0;
  --blue-200: #BCD7EE;
  --blue-100: #DCEAF6;
  --blue-50:  #EEF5FB;

  /* Neutros cálidos */
  --paper: #F6F4EF;
  --paper-2: #EEEBE4;
  --white: #FFFFFF;
  --ink: #0F1B2B;
  --ink-2: #3D4959;
  --ink-3: #5D6979;
  --line: rgba(15, 27, 43, .10);
  --line-strong: rgba(15, 27, 43, .18);
  --warm: #E2A257;

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-tech: "Michroma", "Lexend", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 148px);
  --header-h: 80px;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 27, 45, .06), 0 3px 10px rgba(11, 27, 45, .05);
  --shadow: 0 2px 6px rgba(11, 27, 45, .05), 0 22px 44px -18px rgba(11, 27, 45, .22);
  --shadow-lg: 0 40px 90px -30px rgba(7, 18, 31, .45);

  --ease: cubic-bezier(.22, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 330;
  font-size: clamp(16px, .25vw + 15.2px, 18px);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.1; letter-spacing: -.022em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; color: var(--ink); }
[hidden] { display: none !important; }
::selection { background: var(--blue-200); color: var(--navy-900); }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-tech);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-600));
  box-shadow: 30px 0 0 -0px transparent;
}
.eyebrow.on-dark { color: var(--blue-300); }
.eyebrow.on-dark::before { background: linear-gradient(90deg, rgba(143,187,224,.3), var(--blue-300)); }

h2 { font-size: clamp(32px, 3.6vw + 12px, 58px); }
h3 { font-size: clamp(19px, .4vw + 17px, 22px); letter-spacing: -.012em; line-height: 1.25; }

.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split {
  max-width: none; display: grid; gap: 24px 64px; align-items: end;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.section-head h2 { max-width: 18ch; }
.section-head.center h2 { max-width: 20ch; margin-inline: auto; }
.section-intro { color: var(--ink-3); font-size: clamp(16px, .3vw + 15px, 19px); max-width: 52ch; }
.section-head.center .section-intro { margin: 22px auto 0; }

.lead { font-size: clamp(17px, .5vw + 15px, 20px); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.lead-sm { font-size: clamp(17px, .3vw + 16px, 19px); color: var(--ink-2); line-height: 1.6; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary {
  --btn-bg: var(--blue-600); --btn-fg: #fff;
  background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 55%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(31, 100, 170, .65);
}
.btn-primary:hover { --btn-bg: var(--blue-700); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 30px -12px rgba(31, 100, 170, .75); transform: translateY(-2px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bd: var(--ink); --btn-bg: rgba(255,255,255,.6); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--blue-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn-outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,.08); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--blue-600); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 3px; transition: background-size .4s var(--ease), color .2s;
}
.link-arrow:hover { background-size: 100% 1.5px; color: var(--blue-800); }
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(246, 244, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { height: 52px; width: auto; transition: height .35s var(--ease); }
.is-scrolled .brand img { height: 44px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 400; color: var(--ink-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(15, 27, 43, .05); }
.nav a.is-active { color: var(--blue-700); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor;
}
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: rgba(255,255,255,.6);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.8px; border-radius: 2px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
  animation: menu-in .4s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-menu ul { display: grid; }
.mobile-menu nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 6vw, 32px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.mobile-menu-foot { display: grid; gap: 18px; justify-items: center; }
.mobile-menu-mail { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-700); text-decoration: none; font-weight: 500; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--paper); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 84px)) 0 clamp(72px, 9vw, 128px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 100, 170, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 100, 170, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 75% 35%, #000 10%, transparent 75%);
}
.hero-swoosh {
  position: absolute; width: min(1300px, 120vw); right: -18vw; top: 90px;
  fill: var(--blue-100); opacity: .8;
}
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin-bottom: 26px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font-size: 13.5px; font-weight: 400; color: var(--ink-2);
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--warm); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--warm); opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.hero-copy .eyebrow { display: flex; }
.hero-title {
  font-size: clamp(40px, 3.9vw + 14px, 74px);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 600;
  margin-bottom: 26px; max-width: 15ch; text-wrap: balance;
}
.hl {
  position: relative; white-space: nowrap;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-700) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl::after {
  content: ""; position: absolute; left: 2%; right: -2%; bottom: .02em; height: .14em; z-index: -1;
  border-radius: 99px; background: linear-gradient(90deg, var(--blue-100), rgba(143, 187, 224, .55));
  transform-origin: left; animation: underline 1.2s .9s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.hero-proof .icon { color: var(--blue-600); width: 18px; height: 18px; }

/* Entrada del hero */
.js .hero-copy > * { animation: rise 1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .12s; }
.js .hero-copy > :nth-child(4) { animation-delay: .2s; }
.js .hero-copy > :nth-child(5) { animation-delay: .28s; }
.js .hero-copy > :nth-child(6) { animation-delay: .36s; }
.js .hero-visual { animation: rise 1.2s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; padding: 0 0 clamp(120px, 15vw, 190px) clamp(0px, 3vw, 40px); }
.hero-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.3; background: var(--blue-100);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 18, 31, .25));
}

.blueprint-card {
  position: absolute; left: clamp(-56px, -3vw, 0px); right: 16%; bottom: 0;
  padding: 16px 18px 14px;
  border-radius: var(--r);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(143, 187, 224, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 187, 224, .07) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(143, 187, 224, .16);
  color: var(--blue-200);
}
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.bp-tag, .bp-route { font-family: var(--font-tech); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; }
.bp-tag { color: #fff; }
.bp-route { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-300); }
.bp-route .icon { width: 12px; height: 12px; }
.bp-svg { width: 100%; height: auto; }
.bp-line { stroke: rgba(188, 215, 238, .55); stroke-width: 1.5; }
.bp-bracket rect { fill: var(--blue-300); opacity: .8; }
.bp-obj { fill: none; stroke: rgba(188, 215, 238, .55); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-path { fill: none; stroke: var(--warm); stroke-width: 1.6; stroke-dasharray: 4 7; opacity: .85; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.bp-strap { fill: var(--blue-200); transform-box: fill-box; transform-origin: 50% 0; animation: bp-strap 12s var(--ease-io) infinite; }
.bp-lift { animation: bp-lift 12s var(--ease-io) infinite; }
.bp-bar { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.bp-hook { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.bp-sling { fill: rgba(143, 187, 224, .22); stroke: var(--blue-300); stroke-width: 2; stroke-linejoin: round; }
.bp-trolley circle { fill: var(--navy-900); stroke: var(--blue-200); stroke-width: 2; }
.bp-trolley rect { fill: #F6F4EF; stroke: var(--blue-500); stroke-width: 2; }
.bp-trolley path { stroke: var(--blue-300); stroke-width: 2; stroke-linecap: round; }
.bp-trolley .bp-led { fill: var(--warm); stroke: none; animation: led 1.2s ease-in-out infinite alternate; }
@keyframes led { from { opacity: .35; } to { opacity: 1; } }
.bp-hoist { animation: bp-move 12s var(--ease-io) infinite; }
@keyframes bp-move {
  0%, 17% { transform: translateX(115px); }
  39%, 67% { transform: translateX(392px); }
  89%, 100% { transform: translateX(115px); }
}
@keyframes bp-strap {
  0%, 6% { transform: scaleY(1); }
  15%, 41% { transform: scaleY(.5); }
  49%, 58% { transform: scaleY(1); }
  66%, 90% { transform: scaleY(.5); }
  98%, 100% { transform: scaleY(1); }
}
@keyframes bp-lift {
  0%, 6% { transform: translateY(0); }
  15%, 41% { transform: translateY(-50px); }
  49%, 58% { transform: translateY(0); }
  66%, 90% { transform: translateY(-50px); }
  98%, 100% { transform: translateY(0); }
}
.bp-legend { display: flex; gap: 16px; margin-top: 6px; font-size: 11.5px; color: var(--blue-300); }
.bp-legend li { display: inline-flex; align-items: center; gap: 7px; }
.bp-legend i { width: 14px; height: 4px; border-radius: 2px; }
.lg-rail { background: var(--blue-400); }
.lg-unit { background: #F6F4EF; }
.lg-sling { background: var(--blue-300); }

.float-chip {
  position: absolute; right: -8px; top: clamp(24px, 6%, 48px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-chip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.float-chip strong { display: block; font-size: 14.5px; line-height: 1.2; }
.float-chip small { display: block; font-size: 12.5px; color: var(--ink-3); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Reto ---------- */
.reto { background: var(--white); }
.reto-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.statement {
  font-size: clamp(28px, 2.4vw + 14px, 46px); line-height: 1.18; letter-spacing: -.025em; font-weight: 500; max-width: 24ch;
}
.statement .muted { color: var(--blue-300); }
.reto-cards { display: grid; gap: 12px; margin-top: clamp(36px, 4vw, 52px); max-width: 640px; }
.mini-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start;
  padding: 20px 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
.mini-card:hover { border-color: rgba(31, 100, 170, .3); transform: translateX(4px); }
.mini-card .mini-icon { grid-row: span 2; }
.mini-card h3 { font-size: 18px; margin: 2px 0 4px; }
.mini-card p { font-size: 15.5px; color: var(--ink-3); line-height: 1.55; }
.mini-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--blue-600); box-shadow: var(--shadow-sm); }
.mini-icon .icon { width: 22px; height: 22px; }
.reto-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.reto-photo img { width: 100%; height: 100%; object-fit: cover; }
.reto-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: 12px;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--ink-2);
}
.reto-photo figcaption span { font-weight: 600; color: var(--blue-700); }

/* ---------- Sección oscura: el sistema ---------- */
.dark {
  background-color: var(--navy-950);
  background-image:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(44, 113, 178, .28), transparent 70%),
    linear-gradient(rgba(143, 187, 224, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 187, 224, .045) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  color: rgba(220, 234, 246, .78);
}
.dark h2, .dark h3, .dark strong { color: #fff; }
.dark .section-intro { color: rgba(220, 234, 246, .72); }

.sistema-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.diagram {
  position: relative; border-radius: var(--r-lg); padding: clamp(12px, 2vw, 24px);
  background: linear-gradient(180deg, rgba(18, 40, 63, .75), rgba(11, 27, 45, .75));
  border: 1px solid rgba(143, 187, 224, .14);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.diagram-svg { width: 100%; height: auto; }
.dg-line { stroke: rgba(188, 215, 238, .4); stroke-width: 1.5; }
.dg-obj { fill: none; stroke: rgba(188, 215, 238, .28); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dg-part { transition: opacity .4s var(--ease), filter .4s var(--ease); opacity: .5; }
.dg-part.is-active { opacity: 1; filter: drop-shadow(0 0 10px rgba(91, 155, 211, .65)); }
.dg-bracket { fill: var(--blue-300); }
.dg-strap { fill: var(--blue-200); }
.dg-sling { fill: rgba(143, 187, 224, .2); stroke: var(--blue-300); stroke-width: 2.4; stroke-linejoin: round; }
.dg-bar { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.dg-hook { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.dg-cable { fill: none; stroke: var(--blue-300); stroke-width: 2; stroke-linecap: round; }
.dg-remote { fill: #F6F4EF; stroke: var(--blue-500); stroke-width: 2; }
.dg-btn { fill: var(--blue-500); }
.dg-wheel { fill: var(--navy-900); stroke: var(--blue-200); stroke-width: 2.5; }
.dg-unit { fill: #F6F4EF; stroke: var(--blue-500); stroke-width: 2.5; }
.dg-vent { stroke: var(--blue-300); stroke-width: 3; stroke-linecap: round; }
.dg-led { fill: var(--warm); }

.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  border: 1.5px solid rgba(255,255,255,.7); background: var(--blue-600); color: #fff;
  font-family: var(--font-tech); font-size: 12px;
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(31, 100, 170, .25);
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.hotspot::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(143, 187, 224, .6);
  animation: ring 2.6s var(--ease) infinite;
}
.hotspot:hover, .hotspot.is-active { background: #fff; color: var(--blue-700); transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 8px rgba(143, 187, 224, .25); }
.hotspot.is-active::before { animation: none; opacity: 0; }
@keyframes ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.hs-1 { left: 22%; top: 18.5%; }
.hs-2 { left: 61.5%; top: 23%; }
.hs-3 { left: 43%; top: 66%; }
.hs-4 { left: 71%; top: 55%; }
.diagram-note {
  position: absolute; right: 22px; bottom: 16px;
  font-family: var(--font-tech); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(188, 215, 238, .5);
}

.parts { display: grid; gap: 10px; counter-reset: none; }
.part {
  width: 100%; display: flex; gap: 18px; align-items: flex-start; text-align: left;
  padding: 18px 20px; border-radius: var(--r);
  border: 1px solid rgba(143, 187, 224, .14);
  background: rgba(255,255,255,.02); color: inherit;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.part:hover { border-color: rgba(143, 187, 224, .35); }
.part.is-active { background: rgba(31, 100, 170, .22); border-color: rgba(143, 187, 224, .5); }
.part-num { font-family: var(--font-tech); font-size: 11px; letter-spacing: .1em; color: var(--blue-300); padding-top: 5px; }
.part-body { display: grid; gap: 4px; }
.part-body strong { font-size: 17.5px; font-weight: 500; }
.part-body > span { font-size: 15px; line-height: 1.55; color: rgba(220, 234, 246, .68); }

.usos {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid rgba(143, 187, 224, .14);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.usos-title { font-family: var(--font-tech); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-300); }
.usos-list { display: flex; flex-wrap: wrap; gap: 10px; }
.usos-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(143, 187, 224, .22); background: rgba(255,255,255,.03);
  font-size: 15px; color: #fff;
}
.usos-list .icon { width: 14px; height: 14px; color: var(--blue-300); }

/* ---------- Proceso ---------- */
.proceso { background: var(--paper); }
.steps {
  --progress: 0;
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px;
  padding-top: 48px;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; top: 13px; height: 6px; border-radius: 6px;
}
.steps::before { right: 0; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.steps::after {
  width: calc(var(--progress) * 100%);
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  transition: width .2s linear;
}
.step { position: relative; }
.step-node {
  position: absolute; top: -45px; left: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue-200);
  transition: border-color .4s, background-color .4s, box-shadow .4s;
}
.step-node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--blue-200); transition: background-color .4s; }
.step.is-reached .step-node { border-color: var(--blue-600); box-shadow: 0 0 0 6px rgba(31, 100, 170, .12); }
.step.is-reached .step-node::after { background: var(--blue-600); }
.step-num { display: block; font-family: var(--font-tech); font-size: 11px; letter-spacing: .14em; color: var(--blue-600); margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }

/* ---------- Para quién ---------- */
.para-quien { background: var(--white); }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.audience-card {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.audience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.audience-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.audience-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.audience-card:hover .audience-media img { transform: scale(1.05); }
.audience-tag {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.92);
  font-size: 13px; font-weight: 500; color: var(--blue-700);
}
.audience-tag .icon { width: 15px; height: 15px; }
.audience-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 28px; flex: 1; }
.audience-body h3 { font-size: 22px; }
.audience-body > p { font-size: 15.5px; color: var(--ink-3); }
.checks { display: grid; gap: 9px; margin: 4px 0 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.checks .icon { color: var(--blue-600); width: 18px; height: 18px; margin-top: 1px; }
.audience-body .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Por qué ---------- */
.por-que { background: var(--paper); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 18px; }
.bento-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card h3 { margin-top: auto; }
.bento-card p { font-size: 15.5px; color: var(--ink-3); }
.bento-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); }
.bento-icon .icon { width: 24px; height: 24px; }
.bento-feature {
  grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: clamp(28px, 3.5vw, 44px);
  background: linear-gradient(160deg, var(--blue-700), var(--navy-900) 85%); border: 0; color: rgba(220, 234, 246, .8);
}
.bento-feature h3 { font-size: clamp(28px, 2vw + 14px, 40px); color: #fff; letter-spacing: -.025em; line-height: 1.1; max-width: 14ch; }
.bento-feature p { color: rgba(220, 234, 246, .78); font-size: 17px; max-width: 42ch; }
.bento-feature .bento-icon { background: rgba(255,255,255,.1); color: #fff; position: absolute; top: clamp(28px, 3.5vw, 44px); left: clamp(28px, 3.5vw, 44px); }
.bento-feature .btn { align-self: flex-start; margin-top: 12px; }
.bento-swoosh { position: absolute; width: 140%; right: -50%; top: 8%; fill: rgba(143, 187, 224, .12); pointer-events: none; }
.bento-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; min-height: 0; }
.bento-wide h3 { margin: 0 0 6px; }
.bento-wide > div { flex: 1; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-chips li { padding: 9px 16px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 15px; font-weight: 500; }
.zone-chips li.soft { background: transparent; border: 1px dashed var(--blue-300); color: var(--ink-3); font-weight: 400; }

/* ---------- Proyectos / planos ---------- */
.proyectos { background: var(--white); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan-card {
  border-radius: var(--r-lg); padding: 18px 18px 22px; background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-svg {
  width: 100%; height: auto; border-radius: 14px;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(31, 100, 170, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 100, 170, .06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.pl-floor { fill: rgba(255,255,255,.6); }
.pl-wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.pl-gap { fill: #fff; }
.pl-thin { fill: none; stroke: var(--ink-3); stroke-width: 1.3; }
.pl-furn { fill: #fff; stroke: var(--ink-3); stroke-width: 1.6; }
.pl-rail { stroke: var(--blue-500); stroke-width: 7; stroke-linecap: round; }
.pl-rail-soft { stroke: var(--blue-300); }
.pl-motor { fill: var(--warm); stroke: #fff; stroke-width: 3; }
.plan-card.is-visible .pm-a { animation: pm-a 6s var(--ease-io) infinite; }
.plan-card.is-visible .pm-b { animation: pm-b 7s var(--ease-io) infinite; }
.plan-card.is-visible .pm-c-y { animation: pm-cy 8s var(--ease-io) infinite; }
.plan-card.is-visible .pm-c-x { animation: pm-cx 8s var(--ease-io) infinite; }
@keyframes pm-a { 0%, 15% { transform: translateX(0); } 45%, 65% { transform: translateX(145px); } 95%, 100% { transform: translateX(0); } }
@keyframes pm-b { 0%, 12% { transform: translateX(0); } 45%, 62% { transform: translateX(200px); } 95%, 100% { transform: translateX(0); } }
@keyframes pm-cy { 0%, 10% { transform: translateY(0); } 40%, 60% { transform: translateY(70px); } 90%, 100% { transform: translateY(0); } }
@keyframes pm-cx { 0%, 20% { transform: translateX(0); } 50% { transform: translateX(110px); } 75% { transform: translateX(170px); } 100% { transform: translateX(0); } }
.plan-card figcaption { display: flex; gap: 14px; margin-top: 18px; align-items: flex-start; }
.plan-card figcaption > span:last-child { display: grid; gap: 4px; font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.plan-card figcaption strong { font-size: 18px; font-weight: 600; }
.plan-num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff; font-family: var(--font-tech); font-size: 12px;
}

.pilot {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg);
  background: var(--blue-50); border: 1px solid rgba(31, 100, 170, .12);
}
.pilot h3 { font-size: clamp(24px, 1.4vw + 16px, 34px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.pilot-copy > p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 26px; max-width: 58ch; }
.pilot-track { position: relative; display: grid; gap: 28px; padding-left: 36px; }
.pilot-track::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, var(--blue-300) 0 6px, transparent 6px 12px); }
.pilot-track li { position: relative; display: grid; gap: 2px; }
.pilot-track strong { font-size: 17px; }
.pilot-track li > span:last-child { font-size: 14.5px; color: var(--ink-3); }
.pt-dot { position: absolute; left: -36px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-300); }
.is-done .pt-dot { background: var(--blue-600); border-color: var(--blue-600); }
.is-done .pt-dot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-current .pt-dot { border-color: var(--warm); }
.is-current .pt-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--warm); animation: led 1.2s ease-in-out infinite alternate; }

/* ---------- Nosotros ---------- */
.nosotros { background: var(--paper); }
.nosotros-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.nosotros-photo { position: relative; }
.nosotros-photo img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: var(--shadow); }
.nosotros-badge {
  position: absolute; right: clamp(-12px, -1vw, 0px); bottom: -28px; display: grid; gap: 2px;
  padding: 20px 26px; border-radius: var(--r); background: var(--navy-900); color: var(--blue-200); font-size: 14px;
  box-shadow: var(--shadow-lg);
}
.nb-year { font-family: var(--font-tech); font-size: 30px; color: #fff; letter-spacing: .04em; line-height: 1.2; }
.nosotros-copy h2 { margin-bottom: 24px; max-width: 16ch; }
.nosotros-copy > p:not(.eyebrow) { margin-bottom: 16px; max-width: 56ch; }
.values { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.values strong { font-weight: 600; color: var(--blue-700); }
.values span { font-size: 15.5px; color: var(--ink-3); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px);
  background: linear-gradient(120deg, var(--blue-600), var(--blue-800) 60%, var(--navy-900));
  color: rgba(255,255,255,.85);
}
.cta-swoosh { position: absolute; z-index: -1; width: min(1200px, 130vw); left: -10%; top: -10%; fill: rgba(255,255,255,.07); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(30px, 2.6vw + 14px, 50px); margin-bottom: 12px; }
.cta-inner p { font-size: 18px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside h2 { margin-bottom: 20px; max-width: 12ch; }
.faq-aside p { color: var(--ink-3); margin-bottom: 20px; max-width: 34ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 56px 24px 0; font-size: clamp(17px, .4vw + 16px, 20px); font-weight: 500; color: var(--ink); letter-spacing: -.01em;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-700); }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: var(--blue-600); transition: transform .35s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-answer { padding: 0 56px 26px 0; color: var(--ink-3); }
.faq-item[open] .faq-answer { animation: rise .45s var(--ease); }

/* ---------- Contacto ---------- */
.contacto { background: var(--paper); }
.contacto-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contacto-info h2 { margin-bottom: 20px; }
.contacto-info .lead-sm { margin-bottom: 36px; max-width: 42ch; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: rgba(255,255,255,.65); border: 1px solid var(--line); }
.contact-list small { display: block; font-size: 12.5px; color: var(--ink-3); letter-spacing: .01em; }
.contact-list a { color: var(--blue-700); font-weight: 500; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ci-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--white); color: var(--blue-600); box-shadow: var(--shadow-sm); flex: none; }
.ci-icon .icon { width: 21px; height: 21px; }

.form-card { padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-form { display: grid; gap: 18px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .choice-group legend { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.field label span[aria-hidden], .consent span[aria-hidden] { color: var(--blue-600); }
.opt { font-weight: 300; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white);
  font-size: 16px; font-weight: 350; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8A94A3; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231F64AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(15, 27, 43, .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(44, 113, 178, .16); }
.field.has-error input, .field.has-error textarea { border-color: #C2410C; }
.field-error { font-size: 13.5px; color: #B23A0B; min-height: 0; }
.field-error:empty { display: none; }

.choice-group { border: 0; padding: 0; margin: 0; }
.choice-group legend { margin-bottom: 10px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.choice { position: relative; display: grid; }
.choice span { justify-content: center; text-align: center; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); font-size: 15px; color: var(--ink-2); background: var(--white);
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice:hover span { border-color: var(--blue-400); }
.choice input:checked + span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 350 !important; color: var(--ink-2) !important; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--blue-600); padding: 0; }
.check a { color: var(--blue-700); }

.contact-form .btn { margin-top: 6px; }
.contact-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-status { font-size: 15px; line-height: 1.5; padding: 0; border-radius: var(--r-sm); }
.form-status:empty { display: none; }
.form-status.is-ok, .form-status.is-error, .form-status.is-info { padding: 14px 16px; }
.form-status.is-ok { background: #E8F5EE; color: #145C36; border: 1px solid #B9E0C9; }
.form-status.is-error { background: #FCEDE6; color: #8A2E0A; border: 1px solid #F2C6B2; }
.form-status.is-info { background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100); }
.form-status a { color: inherit; font-weight: 600; }
.form-note { font-size: 13px; color: var(--ink-3); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(220, 234, 246, .7); padding: clamp(64px, 8vw, 96px) 0 28px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(143, 187, 224, .14); }
.footer-brand img { height: 60px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; line-height: 1.6; }
.footer-title { font-family: var(--font-tech); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; margin-bottom: 20px; }
.footer-col a { color: rgba(220, 234, 246, .82); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .btn { color: var(--blue-800); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: rgba(220, 234, 246, .82); text-decoration: none; }
.to-top .icon { transform: rotate(-90deg); width: 16px; height: 16px; }
.to-top:hover { color: #fff; }

/* ---------- CTA fijo móvil ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: none; gap: 10px; padding: 8px; border-radius: 999px;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -12px rgba(7, 18, 31, .35); border: 1px solid var(--line);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn-ghost { width: 48px; padding: 0; flex: none; }

/* ---------- Revelado al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Páginas legales ---------- */
.legal-page { padding: calc(var(--header-h) + 64px) 0 var(--section-y); }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-size: clamp(36px, 3vw + 20px, 56px); margin-bottom: 16px; }
.legal-updated { color: var(--ink-3); margin-bottom: 48px; font-size: 15px; }
.legal-body h2 { font-size: clamp(22px, 1vw + 18px, 28px); margin: 44px 0 14px; }
.legal-body p, .legal-body li { margin-bottom: 12px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body a { color: var(--blue-700); }
.legal-data { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; }
.legal-data li { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legal-data li:last-child { border-bottom: 0; }
.legal-data ul { padding: 0; }
.todo { background: #FFF1D6; color: #7A4B00; padding: 1px 6px; border-radius: 6px; font-weight: 500; }
.simple-header { position: absolute; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.notfound .nf-code { font-family: var(--font-tech); font-size: clamp(64px, 12vw, 140px); color: var(--blue-100); line-height: 1; margin-bottom: 8px; }
.notfound h1 { font-size: clamp(30px, 3vw + 14px, 48px); margin-bottom: 16px; }
.notfound p { color: var(--ink-3); margin: 0 auto 32px; max-width: 44ch; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav a { padding: 10px 10px; font-size: 14.5px; }
  .header-inner { gap: 16px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-title { max-width: 14ch; }
  .hero-visual { max-width: 680px; padding-left: 0; }
  .blueprint-card { left: -8px; }
  .reto-layout { grid-template-columns: 1fr; }
  .reto-photo { max-width: 520px; aspect-ratio: 4 / 3.6; }
  .sistema-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .step-node { top: -40px; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-card:last-child { grid-column: span 2; flex-direction: row; }
  .audience-card:last-child .audience-media { flex: 0 0 46%; aspect-ratio: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-feature { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans .plan-card:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
  .plans .plan-card:last-child figcaption { margin-top: 0; }
  .pilot { grid-template-columns: 1fr; }
  .nosotros-layout { grid-template-columns: 1fr; }
  .nosotros-photo { max-width: 640px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .contacto-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 760px) {
  .section-head.split { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .status-pill { font-size: 13px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-proof { flex-direction: column; gap: 10px; }
  .hero-visual { padding-bottom: 0; }
  .blueprint-card { position: relative; left: auto; right: auto; margin: -64px 12px 0; }
  .float-chip { right: 8px; top: 12px; padding: 10px 14px 10px 10px; }
  .float-chip-icon { width: 34px; height: 34px; }
  .hero-swoosh { right: -60vw; width: 200vw; top: 60px; }
  .hotspot { width: 30px; height: 30px; font-size: 11px; }
  .diagram-note { position: static; text-align: right; margin-top: 6px; }
  .usos { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 44px; }
  .steps::before, .steps::after { display: block; left: 11px; top: 8px; width: 4px; height: auto; bottom: 8px; right: auto; }
  .steps::after { bottom: auto; width: 4px; height: calc(var(--progress) * (100% - 16px)); transition: height .2s linear; }
  .step { padding-bottom: 32px; }
  .step-node { top: 0; left: -44px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card:last-child { grid-column: auto; flex-direction: column; }
  .audience-card:last-child .audience-media { aspect-ratio: 4 / 3; }
  .bento { grid-template-columns: 1fr; }
  .bento-feature, .bento-wide { grid-column: auto; }
  .bento-feature { min-height: 420px; }
  .bento-card { min-height: 0; }
  .bento-card h3 { margin-top: 8px; }
  .bento-wide { flex-direction: column; align-items: flex-start; gap: 14px; }
  .plans { grid-template-columns: 1fr; }
  .plans .plan-card:last-child { grid-column: auto; display: block; }
  .plans .plan-card:last-child figcaption { margin-top: 18px; }
  .nosotros-badge { right: 12px; bottom: -24px; padding: 16px 20px; }
  .values li { grid-template-columns: 1fr; gap: 4px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .faq-item summary { padding-right: 44px; }
  .faq-answer { padding-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 100px; }
}

@media (max-width: 380px) {
  .choice span { padding: 8px 12px; font-size: 14px; }
  .bp-legend { gap: 10px; font-size: 10.5px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .bp-hoist { animation: none; transform: translateX(255px); }
  .bp-strap { animation: none; transform: scaleY(.5); }
  .bp-lift { animation: none; transform: translateY(-50px); }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .mobile-cta, .hero-bg, .float-chip, .cta-band, .form-card { display: none !important; }
  body { background: #fff; color: #000; }
  .dark { background: #fff; color: #000; }
  .dark h2, .dark h3, .dark strong { color: #000; }
}

/* Cabecera simple de páginas secundarias */
.header-back { margin-left: auto; }
.site-footer .footer-bottom nav { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Texto justificado ----------
   Solo en párrafos de lectura con anchura suficiente y a partir de tablet.
   Se excluyen titulares, textos centrados, columnas estrechas y textos cortos.
   Sin división de palabras con guiones; en móvil, alineado a la izquierda. */
@media (min-width: 761px) {
  .lead,
  .lead-sm,
  .section-head.split .section-intro,
  .mini-card p,
  .bento-feature p,
  .pilot-copy > p:not(.eyebrow),
  .nosotros-copy > p:not(.eyebrow),
  .faq-aside > p:not(.eyebrow),
  .faq-answer p,
  .legal-body p,
  .legal-body li {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: none;
    hyphens: none;
  }
}
