/* =========================================================
   Temas: oscuro (por defecto) y claro
   ========================================================= */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081026;
  --bg-2: #0d1834;
  --surface-a: rgba(16, 29, 62, .9);
  --surface-b: rgba(13, 24, 52, .9);
  --inset: rgba(8, 16, 38, .75);
  --glass: rgba(16, 29, 62, .72);
  --header: rgba(8, 16, 38, .74);
  --line: #22315a;
  --text: #e9eef8;
  --muted: #9aa6c2;
  --scan: #5fe1ff;
  --violet: #8c7bff;
  --violet-soft: #c9c2ff;
  --granted: #3fdc9a;
  --amber: #ffc15e;
  --danger: #ff8b8b;
  --btn-a: #5fe1ff;
  --btn-b: #b5f3ff;
  --on-btn: #081026;
  --dim-text: rgba(233, 238, 248, .16);
  --spot: rgba(95, 225, 255, .13);
  --spot-edge: rgba(95, 225, 255, .75);
  --ai-edge: rgba(140, 123, 255, .8);
  --glow-1: rgba(95, 225, 255, .10);
  --glow-2: rgba(140, 123, 255, .14);
  --veil-a: rgba(8, 16, 38, .85);
  --veil-b: rgba(8, 16, 38, 0);
  --shadow: 0 20px 50px -30px rgba(0, 0, 0, .6);
  /* colores que leen los canvas */
  --c-ridge: rgba(170, 190, 230, .34);
  --c-lit: 95, 225, 255;
  --c-edge: 140, 160, 220;
  --c-node: #0d1834;
  --c-node-line: rgba(154, 166, 194, .7);
  --c-out: #8c7bff;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fc;
  --bg-2: #eaeef8;
  --surface-a: rgba(255, 255, 255, .96);
  --surface-b: rgba(250, 251, 255, .96);
  --inset: #f1f4fa;
  --glass: rgba(255, 255, 255, .82);
  --header: rgba(245, 247, 252, .82);
  --line: #d5dcea;
  --text: #0e1a35;
  --muted: #55617a;
  --scan: #0a87b0;
  --violet: #5b4bd6;
  --violet-soft: #5b4bd6;
  --granted: #0f8455;
  --amber: #b27408;
  --danger: #c0392b;
  --btn-a: #0a87b0;
  --btn-b: #1aa3cf;
  --on-btn: #ffffff;
  --dim-text: rgba(14, 26, 53, .15);
  --spot: rgba(10, 135, 176, .09);
  --spot-edge: rgba(10, 135, 176, .6);
  --ai-edge: rgba(91, 75, 214, .6);
  --glow-1: rgba(10, 135, 176, .10);
  --glow-2: rgba(91, 75, 214, .10);
  --veil-a: rgba(245, 247, 252, .88);
  --veil-b: rgba(245, 247, 252, 0);
  --shadow: 0 18px 40px -28px rgba(14, 26, 53, .35);
  --c-ridge: rgba(30, 50, 100, .26);
  --c-lit: 10, 135, 176;
  --c-edge: 60, 80, 140;
  --c-node: #ffffff;
  --c-node-line: rgba(85, 97, 122, .75);
  --c-out: #5b4bd6;
}

:root {
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1220px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
svg, canvas, img { display: block; max-width: 100%; }
a { color: var(--scan); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--scan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--scan); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--scan); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* Logos según tema */
[data-theme="dark"] .brand__logo--light, [data-theme="dark"] .foot__logo--light,
[data-theme="light"] .brand__logo--dark, [data-theme="light"] .foot__logo--dark { display: none; }

/* =========================================================
   Encabezado
   ========================================================= */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.is-open { background: var(--bg); }
.top.is-scrolled, .top.is-open {
  background: var(--header);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 58px; width: auto; }
.top__actions { display: flex; align-items: center; gap: 10px; }
.nav { display: flex; align-items: center; gap: 26px; margin-right: 8px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .98rem; transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav .nav__cta { color: var(--bg); background: var(--text); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.nav .nav__cta:hover { background: var(--scan); color: var(--on-btn); }

.iconbtn {
  width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.iconbtn:hover { border-color: var(--scan); color: var(--scan); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.menu-toggle { display: none; }
.menu-toggle path { transition: transform .25s var(--ease), opacity .2s; transform-origin: 12px 12px; }
.top.is-open .menu-toggle .m1 { transform: translateY(5px) rotate(45deg); }
.top.is-open .menu-toggle .m2 { opacity: 0; }
.top.is-open .menu-toggle .m3 { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   Botones
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1.02rem; padding: 15px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 0; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), background-position .6s var(--ease), box-shadow .2s;
}
.btn span { position: relative; z-index: 1; }
.btn--primary { color: var(--on-btn); background: linear-gradient(100deg, var(--btn-a), var(--btn-b) 50%, var(--btn-a)); background-size: 200% 100%; }
.btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); color: var(--on-btn); box-shadow: 0 10px 30px -10px var(--btn-a); }
.btn--ghost { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); transform: translateY(-2px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 50%, var(--glow-1), transparent 70%),
    radial-gradient(50% 60% at 95% 10%, var(--glow-2), transparent 70%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--veil-a) 32%, var(--veil-b) 62%),
              linear-gradient(0deg, var(--bg) 0%, var(--veil-b) 22%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 90px; width: 100%; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__title {
  margin: 0 0 30px;
  font-size: clamp(2.7rem, 8.2vw, 7.4rem);
  line-height: .95; font-weight: 780; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 125;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(3) > span {
  background: linear-gradient(90deg, var(--text) 0%, var(--scan) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); margin: 0 0 40px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.scanchip {
  position: absolute; z-index: 3; right: 32px; bottom: 36px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 600; font-size: .95rem;
}
.scanchip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s infinite; }
.scanchip__id { color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 12px; border-left: 1px solid var(--line); }
.scanchip.is-granted .scanchip__dot { background: var(--granted); animation: none; box-shadow: 0 0 14px var(--granted); }
.scanchip.is-granted .scanchip__text { color: var(--granted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 193, 94, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 193, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 193, 94, 0); } }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
  .js .hero__title .line:nth-child(3) > span { animation-delay: .24s; }
  .js .hero__lead, .js .hero__actions, .js .scanchip { opacity: 0; animation: fade .9s var(--ease) .6s forwards; }
  .js .hero__actions { animation-delay: .75s; }
  .js .scanchip { animation-delay: 1s; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Títulos de sección
   ========================================================= */
.section-title {
  margin: 0 0 48px; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02;
  font-weight: 760; letter-spacing: -0.03em; font-variation-settings: "wdth" 120; max-width: 18ch;
}

/* =========================================================
   Manifiesto
   ========================================================= */
.manifesto { padding: 150px 0 120px; }
.manifesto__text {
  margin: 0 0 90px; max-width: 26ch;
  font-size: clamp(1.7rem, 4vw, 3.3rem); line-height: 1.14; font-weight: 600;
  letter-spacing: -0.02em; font-variation-settings: "wdth" 108;
}
.manifesto__text .w { color: var(--dim-text); transition: color .35s; }
.manifesto__text .w.on { color: var(--text); }
.reduce .manifesto__text .w { color: var(--text); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts div { border-top: 1px solid var(--line); padding-top: 22px; }
.facts dt { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 720; font-variation-settings: "wdth" 118; letter-spacing: -0.02em; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--muted); max-width: 28ch; }

/* =========================================================
   Superficies con luz que sigue al cursor
   ========================================================= */
.spot {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--surface-a), var(--surface-b));
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--x) var(--y), var(--spot), transparent 60%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(320px circle at var(--x) var(--y), var(--spot-edge), var(--line) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before { opacity: 1; }

/* =========================================================
   Sectores
   ========================================================= */
.sectors { padding: 110px 0 120px; }
.sectors__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 52px; }
.sectors__head .section-title { margin: 0; }
.sectors__head p { margin: 0; color: var(--muted); max-width: 46ch; }
.sectors__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector { padding: 30px 28px 32px; display: flex; flex-direction: column; }
.sector__icon { width: 52px; height: 52px; margin-bottom: 24px; fill: none; stroke: var(--scan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sector:hover .sector__icon { stroke: var(--violet); }
.sector h3 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 720; line-height: 1.15; font-variation-settings: "wdth" 114; }
.sector__who { margin: 0 0 18px; color: var(--muted); font-size: .98rem; }
.sector ul { list-style: none; margin: auto 0 0; padding: 0; }
.sector li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--line); font-size: .97rem; }
.sector li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 11px; height: 6px;
  border-left: 2px solid var(--granted); border-bottom: 2px solid var(--granted); transform: rotate(-45deg);
}

/* =========================================================
   Inteligencia artificial
   ========================================================= */
.ai {
  position: relative; padding: 130px 0 120px; overflow: hidden;
  background:
    radial-gradient(55% 60% at 80% 30%, var(--glow-2), transparent 70%),
    radial-gradient(45% 50% at 10% 90%, var(--glow-1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ai__top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.ai__title {
  margin: 0 0 26px; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: .98; font-weight: 780;
  letter-spacing: -0.035em; font-variation-settings: "wdth" 124; max-width: 13ch;
  background: linear-gradient(100deg, var(--text) 10%, var(--violet-soft) 55%, var(--scan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai__intro p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 50ch; }
.ai__net {
  position: relative; height: 420px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 50%, var(--glow-2), var(--inset));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ai__net canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai__readout {
  position: absolute; left: 18px; bottom: 16px; display: grid; grid-template-columns: auto auto; gap: 2px 14px;
  padding: 12px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .9rem;
}
.ai__readout span { color: var(--muted); }
.ai__readout b { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.ai__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai__card { padding: 30px; }
.ai__card::after { background: radial-gradient(320px circle at var(--x) var(--y), var(--ai-edge), var(--line) 70%); }
.ai__card h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; line-height: 1.2; font-variation-settings: "wdth" 112; }
.ai__card p { margin: 0; color: var(--muted); }

/* =========================================================
   Servicios
   ========================================================= */
.services { padding: 120px 0; }
.bento { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.card { padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.card h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.08; font-weight: 720; letter-spacing: -0.02em; font-variation-settings: "wdth" 114; }
.card p { margin: 0; color: var(--muted); max-width: 52ch; }
.card--access { grid-row: span 2; justify-content: space-between; }
.card__art { width: 100%; height: auto; }

.log { background: var(--inset); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.card--access .log { flex: 1; display: flex; flex-direction: column; }
.log__head { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.log__live { width: 8px; height: 8px; border-radius: 50%; background: var(--granted); box-shadow: 0 0 10px var(--granted); }
.log__rows { list-style: none; margin: 0; padding: 0; height: 236px; overflow: hidden; position: relative; }
.card--access .log__rows { flex: 1; min-height: 236px; height: auto; }
.log__rows::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, var(--inset)); }
.log__rows li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.log__rows li.new { animation: logIn .6s var(--ease); }
.log__time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log__who b { font-weight: 600; }
.log__who span { color: var(--muted); }
.tag { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag--ok { color: var(--granted); background: color-mix(in srgb, var(--granted) 14%, transparent); }
.tag--no { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
@keyframes logIn { from { opacity: 0; transform: translateY(-10px); background: var(--spot); } to { opacity: 1; transform: none; } }

.face { max-width: 190px; }
.face__mesh ellipse { fill: none; stroke: var(--muted); stroke-opacity: .6; stroke-width: 1.4; }
.face__tri { fill: none; stroke: var(--scan); stroke-opacity: .4; stroke-width: 1; stroke-linejoin: round; }
.face__mesh circle { fill: var(--scan); }
.face__corners path { fill: none; stroke: var(--scan); stroke-width: 3; stroke-linecap: round; }
.face__beam { stroke: var(--scan); stroke-width: 2; filter: drop-shadow(0 0 6px var(--scan)); }
@media (prefers-reduced-motion: no-preference) {
  .face__beam { animation: beam 3.2s ease-in-out infinite; }
}
@keyframes beam { 0%, 100% { transform: translateY(0); opacity: .25; } 50% { transform: translateY(140px); opacity: 1; } }

.flow { max-width: 340px; }
.flow__nodes rect { fill: var(--inset); stroke: var(--line); stroke-width: 1.5; }
.flow__nodes text { fill: var(--text); font: 600 12px var(--font); text-anchor: middle; }
.flow__links path { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-dasharray: 4 8; }
@media (prefers-reduced-motion: no-preference) {
  .flow__links path { animation: dataflow 1.6s linear infinite; }
}
@keyframes dataflow { to { stroke-dashoffset: -24; } }

/* =========================================================
   Tecnologías
   ========================================================= */
.tech { padding: 120px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tech__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.tech__head .section-title { margin: 0; }
.tech__head p { margin: 0; color: var(--muted); max-width: 44ch; }
.rows { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: minmax(200px, calc((100vw - var(--wrap)) / 2 + 240px)) 1fr; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.row__label { margin: 0; padding-left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); font-size: 1rem; font-weight: 600; color: var(--muted); }
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; }
.marquee li {
  white-space: nowrap; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-a); font-weight: 600; font-size: 1.05rem; font-variation-settings: "wdth" 108;
  transition: border-color .2s, color .2s, background-color .2s;
}
.marquee li:hover { border-color: var(--scan); color: var(--scan); }
@media (prefers-reduced-motion: no-preference) {
  .js .marquee ul { animation: slide var(--dur, 40s) linear infinite; }
  .js .row[data-dir="right"] .marquee ul { animation-direction: reverse; }
  .marquee:hover ul { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-50%); } }
.reduce .marquee ul { flex-wrap: wrap; width: auto; }
.reduce .marquee { -webkit-mask: none; mask: none; }

/* =========================================================
   Valores
   ========================================================= */
.values { padding: 120px 0; }
.values__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.values__grid .section-title { position: sticky; top: 120px; }
.values__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value { padding: 30px; }
.value h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 700; font-variation-settings: "wdth" 112; }
.value p { margin: 0; color: var(--muted); }

/* =========================================================
   Proceso
   ========================================================= */
.process { padding: 120px 0; }
.steps {
  --progress: 0;
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step;
}
.steps::before, .steps::after { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--scan), var(--violet)); transform-origin: left; transform: scaleX(var(--progress)); }
.steps li { counter-increment: step; position: relative; z-index: 1; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 24px;
  background: var(--bg); border: 2px solid var(--line); font-weight: 700; color: var(--muted);
  transition: border-color .4s, color .4s, box-shadow .4s;
}
.steps li.is-on::before { border-color: var(--scan); color: var(--text); box-shadow: 0 0 20px var(--spot); }
.steps h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 110; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* =========================================================
   Contacto
   ========================================================= */
.contact { position: relative; padding: 140px 0; overflow: hidden; border-top: 1px solid var(--line); }
.contact__glow {
  position: absolute; width: 900px; height: 900px; left: -300px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-1), var(--glow-2) 40%, transparent 70%);
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.contact__title { margin: 0 0 22px; font-size: clamp(2.1rem, 4.8vw, 4rem); line-height: 1; font-weight: 780; letter-spacing: -0.03em; font-variation-settings: "wdth" 122; max-width: 14ch; }
.contact__grid > div p { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
.form { display: grid; gap: 16px; padding: 32px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--inset); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--scan); box-shadow: 0 0 0 4px var(--spot); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__error { margin: 0; color: var(--danger); font-weight: 600; font-size: .95rem; }
.form__alt { margin: 0; font-size: .92rem; color: var(--muted); }

/* =========================================================
   Pie
   ========================================================= */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.foot__brand { display: grid; gap: 10px; }
.foot__logo { height: 64px; width: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .sectors__grid { grid-template-columns: 1fr 1fr; }
}

/* Menú desplegable en tablet y móvil */
@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: var(--bg); box-shadow: var(--shadow);
    max-height: calc(100vh - 68px); overflow-y: auto;
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .top.is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav a { padding: 14px 4px; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin-top: 14px; text-align: center; border-bottom: 0; padding: 14px; }
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr; }
  .card--access { grid-row: auto; }
  .card--access .log__rows { flex: none; height: 280px; }
  .sectors__head, .tech__head, .values__grid, .contact__grid, .ai__top { grid-template-columns: 1fr; gap: 28px; }
  .ai__grid { grid-template-columns: 1fr 1fr; }
  .values__grid .section-title { position: static; margin-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts div { padding: 20px 0; }
  .hero__veil { background: linear-gradient(0deg, var(--bg) 8%, var(--veil-a) 60%, var(--veil-b)); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .wrap { padding: 0 20px; }
  .top__inner { height: 68px; }
  .brand__logo { height: 46px; }
  .iconbtn { width: 40px; height: 40px; }
  .hero__inner { padding-top: 110px; padding-bottom: 130px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .scanchip { left: 20px; right: auto; bottom: 28px; }
  .manifesto { padding: 96px 0 80px; }
  .manifesto__text { margin-bottom: 56px; }
  .sectors, .services, .tech, .values, .process, .ai { padding: 84px 0; }
  .section-title { margin-bottom: 36px; }
  .contact { padding: 96px 0; }
  .card, .value, .ai__card, .sector { padding: 24px; }
  .sectors__grid, .ai__grid, .values__list, .steps { grid-template-columns: 1fr; }
  .ai__net { height: 300px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row__label { padding-left: 20px; }
  .marquee li { padding: 10px 18px; font-size: .98rem; }
  .log__rows li { grid-template-columns: 46px 1fr auto; font-size: .88rem; }
  .form { padding: 22px; }
  .form .btn { justify-self: stretch; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand__logo { height: 40px; }
  .hero__title { font-size: 2.45rem; }
  .scanchip { font-size: .85rem; padding: 10px 14px; }
}
