/* Knowledge Systems — estilos del sitio */

/* Fuente Outfit alojada en el sitio (licencia OFL) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/outfit-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/outfit-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --bg: #050A13;
  --panel: #0A1220;
  --panel-2: #0F1A2D;
  --glass: rgba(255, 255, 255, .055);
  --glass-line: rgba(255, 255, 255, .1);
  --text: #EAF0F8;
  --muted: #93A1B6;
  --blue: #3D7FE0;
  --blue-bright: #6BA3F5;
  --blue-deep: #1E4FA3;
  --led: #4ED79A;

  --white: #FFFFFF;
  --paper: #F3F5F9;
  --ink: #0A1220;
  --steel: #5A6577;
  --line: #E1E6EE;

  --c-infra: #3D7FE0;
  --c-net: #22C3D6;
  --c-desk: #8B7CF6;
  --c-consult: #F2A93B;
  --c-soft: #E8649E;
  --c-iso: #4ED79A;
  --c-iot: #F07A3A;
  --c-help: #5FA8F5;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --r-panel: clamp(20px, 2.4vw, 32px);
  --r-card: 22px;
  --edge: clamp(0px, .7vw, 10px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1, h2 { font-weight: 300; }
h1 b, h2 b { font-weight: 650; }
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; }

p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--steel); }
.dark .lead, .dark p { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* Paneles */
.dark { background: var(--bg); color: var(--text); }
.panel { margin: 0 var(--edge); border-radius: var(--r-panel); position: relative; overflow: clip; isolation: isolate; }
.panel + .panel { margin-top: var(--edge); }
.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .lead { margin-top: 20px; }

/* Botones píldora */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  background: var(--blue); color: var(--white);
  transition: background-color .2s, color .2s, transform .2s;
}
.btn::after {
  content: ""; width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .2s;
}
.btn:hover { background: var(--blue-deep); color: var(--white); }
.btn:hover::after { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light::after { background-color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }

.btn-ghost { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }

.btn-plain { padding: 14px 24px; }
.btn-plain::after { display: none; }

/* Menú flotante */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.header-in {
  pointer-events: auto;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px 8px 8px 22px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(5,10,19,.18);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled .header-in { box-shadow: 0 10px 40px rgba(5,10,19,.28); background: rgba(255,255,255,.98); }
.brand img { width: 118px; height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { background: var(--ink); padding: 6px 6px 6px 20px; font-size: .95rem; }
.nav .btn::after { width: 34px; height: 34px; background-color: rgba(255,255,255,.14); }
.nav .btn:hover { background: var(--blue); }

.nav-toggle {
  display: none; background: var(--ink); color: var(--white); border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; padding: 10px 18px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-radius: 22px; padding: 10px 20px 20px;
    box-shadow: 0 20px 50px rgba(5,10,19,.25);
    display: none; pointer-events: auto;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--blue); }
  .nav .btn { margin-top: 16px; justify-content: space-between; }
}

/* Hero */
.hero {
  margin: 0 var(--edge);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  padding: clamp(140px, 17vw, 190px) 0 clamp(56px, 7vw, 88px);
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: center;
}
.glow {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 42%;
  width: 1100px; height: 900px; max-width: 160vw;
  translate: -50% -50%;
  scale: calc(1 + var(--p, 0) * .9);
  background: radial-gradient(closest-side, rgba(61,127,224,.55), rgba(30,79,163,.22) 45%, transparent 75%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lead { margin-top: 26px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* Rack en vidrio */
.rack { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 0 14px; }
.rack-units {
  list-style: none; margin: 0; padding: 14px;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--r-card);
  backdrop-filter: blur(12px);
  display: grid; gap: 10px;
}
.rack-unit a {
  display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 16px; align-items: center;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  color: var(--white); text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.rack-unit a:hover { border-color: rgba(107,163,245,.6); }
.led {
  width: 10px; height: 10px; border-radius: 50%; grid-row: span 2;
  background: var(--led); box-shadow: 0 0 0 3px rgba(78,215,154,.15), 0 0 12px rgba(78,215,154,.7);
}
.rack-unit strong { font-weight: 600; font-size: 1.05rem; }
.rack-unit span { color: var(--muted); font-size: .9rem; }
.rack-bracket { position: relative; display: flex; align-items: center; }
.rack-bracket::before {
  content: ""; position: absolute; top: 18px; bottom: 18px; left: 0; width: 12px;
  border: 2px solid rgba(107,163,245,.7); border-left: 0; border-radius: 0 8px 8px 0;
}
.rack-bracket span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  margin-left: 20px; color: var(--blue-bright); font-weight: 500; font-size: .92rem; white-space: nowrap;
}

/* ¿Qué necesitás resolver? */
.needs { margin-top: clamp(56px, 8vw, 96px); }
.needs h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--white); margin-bottom: 22px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.18);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chips a:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Cinta de logos */
.marquee-band { padding: clamp(44px, 6vw, 72px) 0; }
.marquee-band p { text-align: center; color: var(--steel); margin: 0 auto 28px; font-size: 1rem; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.marquee li { flex: 0 0 auto; width: 170px; margin: 0 14px; }
.marquee img { width: 100%; filter: grayscale(1) contrast(1.1); opacity: .7; mix-blend-mode: multiply; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tarjetas apiladas */
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky; top: calc(96px + var(--n, 0) * 14px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: 460px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at var(--gx, 0%) 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 55%),
    linear-gradient(180deg, #0E1829, #0A1220);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -20px 60px rgba(0,0,0,.45);
  transform-origin: 50% 0;
  transform: scale(var(--shrink, 1));
  transition: transform .1s linear;
}
.stack-card:nth-child(even) { --gx: 100%; }
.stack-card:nth-child(even) .stack-visual { order: -1; }
.stack-card h3, .stack-card .h3-like { font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 14px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--white); margin-bottom: 16px; }
.stack-card p { color: #B4C0D2; }
.stack-card .btn { margin-top: 10px; }

.mark { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 4px; flex: 0 0 auto; }
.mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.mark i:nth-child(2) { opacity: .6; }
.mark i:nth-child(3) { opacity: .35; }
.mark i:nth-child(4) { opacity: .8; }

.stack-visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(80% 80% at 70% 20%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
    linear-gradient(160deg, #142238, #0B1424);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; padding: 8%;
}

@media (max-width: 900px) {
  .stack-card { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; transform: none; }
  .stack-card:nth-child(even) .stack-visual { order: 0; }
}

/* Maquetas dentro de las tarjetas */
.mock {
  width: 100%; max-width: 380px;
  background: rgba(8,14,26,.82); border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  padding: 16px; color: var(--text); font-size: .85rem; line-height: 1.4;
  backdrop-filter: blur(8px);
}
.mock-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 12px; }
.mock-title small { color: var(--muted); font-weight: 400; }
.mock-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 10px;
}
.mock-row .led { width: 8px; height: 8px; grid-row: auto; flex: 0 0 auto; }
.mock-row span { flex: 1; }
.mock-row em { font-style: normal; color: var(--muted); font-size: .8rem; }
.pill-tag { font-style: normal; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(78,215,154,.15); color: var(--led); }
.pill-tag.is-progress { background: rgba(242,169,59,.15); color: var(--c-consult); }
.pill-tag.is-new { background: rgba(139,124,246,.18); color: #B7ADFF; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: color-mix(in srgb, var(--c) 40%, #1A2740); flex: 0 0 auto; }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); flex: 1; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--c); }
.mock-label { width: 92px; flex: 0 0 auto; color: var(--muted); }
.float-chip {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: rgba(10,18,32,.85); border: 1px solid rgba(255,255,255,.14); color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap;
}
.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .78rem; color: #9FB3CB; white-space: pre; line-height: 1.7; }
.code b { color: var(--c-soft); font-weight: 400; }
.code i { color: var(--blue-bright); font-style: normal; }
.shield {
  width: 120px; height: 136px; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff 0%), color-mix(in srgb, var(--c) 35%, #0A1220));
  clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%);
  box-shadow: 0 0 60px var(--c);
}
.shield svg { width: 46px; height: 46px; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Metodología (panel azul) */
.blue-panel {
  background:
    radial-gradient(90% 70% at 50% 0%, #6BA3F5, transparent 70%),
    linear-gradient(180deg, #3D7FE0, #1E4FA3);
  color: var(--white);
}
.blue-panel .section-head h2 { color: var(--white); }
.blue-panel .section-head .lead { color: #DCE8FB; }
.process-card {
  background: var(--bg); border-radius: 28px; color: var(--text);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 40px 80px rgba(5,10,19,.35);
}
.process { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); }
.process-aside { position: sticky; top: 130px; align-self: start; }
.process-aside h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; color: var(--white); }
.process-aside h3 b { font-weight: 650; }
.process-aside p { margin-top: 16px; }
.meter { margin-top: 36px; }
.meter-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); transform-origin: left; transform: scaleX(var(--progress, .25)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.meter-labels { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: .86rem; line-height: 1.3; color: var(--muted); }
.meter-labels li { transition: color .3s; }
.meter-labels li.is-active { color: var(--white); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  min-height: 38vh; padding: 0 0 40px 76px;
  display: flex; flex-direction: column; justify-content: center;
  transition: opacity .4s;
}
.steps li::before {
  content: counter(step);
  position: absolute; top: 50%; left: 0; translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); color: var(--muted); font-weight: 600; font-size: 1.1rem;
  transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s;
}
.steps h4 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; color: var(--white); }
.steps p { margin: 0; font-size: 1.08rem; max-width: 44ch; }
.js .steps li { opacity: .3; }
.js .steps li.is-active { opacity: 1; }
.steps li.is-active::before { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 0 30px rgba(61,127,224,.7); }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process-aside { position: static; }
  .meter { display: none; }
  .steps li { min-height: 0; padding: 2px 0 30px 66px; }
  .steps li::before { top: 0; translate: none; width: 44px; height: 44px; font-size: 1rem; }
  .js .steps li { opacity: 1; }
}

/* Cifras con brillo */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stats li {
  padding: 32px 28px; border-radius: var(--r-card); text-align: center;
  background: linear-gradient(180deg, rgba(61,127,224,.08), rgba(61,127,224,.02));
  border: 1px solid rgba(61,127,224,.35);
  box-shadow: inset 0 0 40px rgba(61,127,224,.08);
}
.stats span { display: block; color: var(--muted); font-weight: 500; }
.stats b {
  display: block; margin-top: 8px;
  font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  color: var(--blue-bright);
  text-shadow: 0 0 24px rgba(61,127,224,.75), 0 0 60px rgba(61,127,224,.35);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* Partners con pestañas */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab {
  font: inherit; font-weight: 500; font-size: .98rem; cursor: pointer;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(255,255,255,.04); color: var(--text); border: 1px solid rgba(255,255,255,.14);
  transition: background-color .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.tile-grid { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 980px; }
.tile-grid[hidden] { display: none; }
.tile {
  width: 220px; height: 120px; border-radius: 20px;
  display: grid; place-items: center; padding: 18px 26px;
  background: radial-gradient(120% 120% at 100% 100%, rgba(61,127,224,.28), transparent 60%), #0B1424;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 30px rgba(61,127,224,.12);
}
.tile img { max-height: 64px; width: auto; filter: grayscale(1) invert(1) brightness(1.3); mix-blend-mode: screen; }
@media (max-width: 520px) { .tile { width: calc(50% - 8px); height: 100px; } }

/* CTA final */
.cta-panel { text-align: center; }
.cta-panel .glow { top: 100%; width: 1200px; height: 800px; scale: 1; }
.cta-panel h2 { color: var(--white); }
.cta-panel .lead { margin: 22px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.cta-actions a:not(.btn) { color: var(--text); }

/* Cabecera de páginas internas */
.page-hero {
  margin: 0 var(--edge); border-radius: 0 0 var(--r-panel) var(--r-panel);
  padding: clamp(150px, 18vw, 200px) 0 clamp(64px, 8vw, 104px);
}
.page-hero .glow { top: 30%; width: 900px; height: 700px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }

/* Soluciones */
.solutions { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
.rack-index { position: sticky; top: 110px; align-self: start; background: var(--bg); border-radius: 20px; padding: 12px; }
.rack-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rack-index a {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  color: #7F8EA5; text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.3;
  transition: color .3s, border-color .3s;
}
.rack-index a::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #2B3A52; transition: background-color .3s, box-shadow .3s; }
.rack-index a:hover { color: var(--white); }
.rack-index a.is-active { color: var(--white); border-color: rgba(107,163,245,.4); }
.rack-index a.is-active::before { background: var(--led); box-shadow: 0 0 10px rgba(78,215,154,.8); }

.layer { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.layer:first-child { padding-top: 0; }
.layer:last-child { border-bottom: 0; }
.layer h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.layer p { color: var(--steel); }
.brand-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brand-grid li { border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.brand-grid li:hover { border-color: #C9D4E4; box-shadow: 0 10px 30px rgba(10,18,32,.08); }
.brand-grid a { display: block; padding: 12px; }
.brand-grid img { width: 100%; aspect-ratio: 7 / 4; object-fit: contain; }
@media (max-width: 900px) {
  .solutions { grid-template-columns: 1fr; }
  .rack-index { display: none; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Servicios: puntos dentro de las tarjetas */
.points { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; gap: 16px; }
.points li { padding-left: 18px; border-left: 2px solid var(--c); }
.points b { display: block; color: var(--white); font-weight: 600; margin-bottom: 2px; }
.points span { color: #A9B6C9; font-size: .98rem; }

/* Nosotros */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value { padding: 34px 30px; border-radius: var(--r-card); background: var(--paper); }
.value h3 { font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.value h3 b { font-weight: 650; }
.value p { color: var(--steel); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid #CDD5E1; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61,127,224,.18); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 14px; max-width: none; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FDECEC; color: #8A1C1C; }
.form-status.is-ok { background: #E7F7EF; color: #145A38; }

.contact-card { border-radius: 26px; padding: clamp(28px, 4vw, 40px); display: grid; gap: 28px; }
.contact-card .glow { top: 0; left: 100%; width: 600px; height: 600px; scale: 1; }
.contact-card h2 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 6px; letter-spacing: 0; }
.contact-card p, .contact-card address { margin: 0; color: var(--muted); font-style: normal; }
.contact-card a { color: var(--text); }

.map { margin: 0 var(--edge); border-radius: var(--r-panel); overflow: hidden; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.5); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Pie */
.site-footer { padding: clamp(64px, 8vw, 96px) 0 28px; margin-top: var(--edge); border-radius: var(--r-panel) var(--r-panel) 0 0; margin-left: var(--edge); margin-right: var(--edge); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 120px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 30ch; }
.site-footer h2 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C9D3E0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--muted); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: var(--muted); }
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cifras de respaldo en el hero */
.proof { list-style: none; margin: 44px 0 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 20px 44px; border-top: 1px solid rgba(255,255,255,.1); }
.proof li { display: grid; gap: 2px; }
.proof b {
  font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; line-height: 1; color: var(--white);
  text-shadow: 0 0 22px rgba(61,127,224,.7); font-variant-numeric: tabular-nums;
}
.proof span { color: var(--muted); font-size: .92rem; }

/* ¿Te suena familiar? */
.pains-section { padding-top: clamp(24px, 4vw, 48px); }
.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pains li { padding: 28px 24px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); }
.pains svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 20px;
  background: var(--white); border: 1px solid var(--line);
  fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.pains h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.pains p { margin: 0; color: var(--steel); font-size: .98rem; }
.pains-answer { text-align: center; margin: clamp(36px, 5vw, 56px) auto 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 300; max-width: none; }
.pains-answer b { font-weight: 650; color: var(--blue); }
@media (max-width: 960px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pains { grid-template-columns: 1fr; } }

/* Qué incluye cada servicio */
.checks { list-style: none; margin: 6px 0 22px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: #D3DBE7; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent);
}

/* IT gestionado: servicio destacado */
.managed {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 30px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(61,127,224,.35), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(34,195,214,.18), transparent 60%),
    linear-gradient(180deg, #0F1C31, #0A1220);
  border: 1px solid rgba(107,163,245,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 30px 80px rgba(0,0,0,.45), 0 0 80px rgba(61,127,224,.15);
}
.badge {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(78,215,154,.12); color: var(--led); font-size: .88rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(78,215,154,.3);
}
.managed h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 300; color: var(--white); letter-spacing: -0.02em; margin-bottom: 16px; }
.managed h3 b { font-weight: 650; }
.managed-copy > p { color: #B4C0D2; }
.managed-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.managed-list li { padding-left: 16px; border-left: 2px solid var(--blue); }
.managed-list b { display: block; color: var(--white); font-weight: 600; }
.managed-list span { color: var(--muted); font-size: .93rem; line-height: 1.4; }
.managed-visual { aspect-ratio: 4 / 4.2; }
.stack-intro { text-align: center; margin: clamp(56px, 7vw, 88px) auto 32px; color: var(--muted); font-size: 1.15rem; }
@media (max-width: 960px) { .managed { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .managed-list { grid-template-columns: 1fr; } }

/* Industrias */
.industries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industries li {
  display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--white), var(--paper)); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.industries li:hover { border-color: #BCD0EE; box-shadow: 0 18px 40px rgba(10,18,32,.08); transform: translateY(-3px); }
.industries svg {
  width: 52px; height: 52px; padding: 12px; border-radius: 16px; margin-bottom: 22px;
  background: rgba(61,127,224,.1); fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.industries h3 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.industries p { color: var(--steel); font-size: .98rem; margin: 0 0 18px; }
.industries small { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--steel); font-size: .86rem; }
@media (max-width: 960px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

/* Formulario dentro del panel oscuro del inicio */
.home-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; text-align: left; }
.home-contact h2 { color: var(--white); }
.home-contact .lead { margin-top: 20px; }
.home-contact .contact-lines { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.home-contact .contact-lines a { color: var(--text); }
.form-dark {
  padding: clamp(24px, 3.5vw, 40px); border-radius: 26px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px);
}
.form-dark .field label { color: var(--text); }
.form-dark .field label small { color: var(--muted); }
.form-dark .field input, .form-dark .field select, .form-dark .field textarea {
  background: rgba(5,10,19,.6); border-color: rgba(255,255,255,.14); color: var(--white);
}
.form-dark .field select option { color: var(--ink); }
.form-dark .field input::placeholder, .form-dark .field textarea::placeholder { color: #66758C; }
@media (max-width: 900px) { .home-contact { grid-template-columns: 1fr; } }

/* Movimiento ligado al scroll */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { transform: translateY(calc(var(--p, 0) * -80px)); opacity: calc(1 - var(--p, 0) * .9); }
  .rack { transform: translateY(calc(var(--p, 0) * 50px)); }
  .rack-unit { translate: 0 calc(var(--p, 0) * (var(--i) - 1.5) * 32px); }

  .js .rack-unit { opacity: 0; transform: translateX(-16px); }
  .js .rack-unit .led { background: #2B3A52; box-shadow: none; }
  .rack.is-on .rack-unit { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 140ms + 200ms); }
  .rack.is-on .rack-unit .led {
    background: var(--led); box-shadow: 0 0 0 3px rgba(78,215,154,.15), 0 0 12px rgba(78,215,154,.7);
    transition: background-color .2s, box-shadow .2s; transition-delay: calc(var(--i) * 140ms + 600ms);
  }

  .js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track ul[aria-hidden] { display: none; }
  .marquee { mask-image: none; }
}
.contact-card { margin: 0; }
.mock-row .avatar, .mock-row .mock-label, .mock-row .bar { flex: 0 0 auto; }
.mock-row .bar { flex: 1 1 auto; }
.meter-labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: .82rem; }
.tile { width: 150px; height: 96px; padding: 16px 20px; }
.tile img { max-height: 52px; }
@media (max-width: 520px) { .tile { width: calc(50% - 8px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#contacto, #industrias, [id] { scroll-margin-top: 90px; }

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* Preguntas frecuentes */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.12rem; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D7FE0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s, background-color .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: #E3ECFA; }
.faq-item summary:hover { color: var(--blue); }
.faq-item p { margin: 0 0 22px; color: var(--steel); padding-right: 48px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { position: static; } }

/* Equipo */
.person {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--paper); border: 1px solid var(--line);
  max-width: 920px; margin: 0 auto;
}
.person-photo {
  width: clamp(120px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--white);
  background: radial-gradient(circle at 30% 25%, #6BA3F5, #1E4FA3 70%);
  box-shadow: 0 20px 40px rgba(30,79,163,.3);
  object-fit: cover;
}
.person h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.person .role { color: var(--blue); font-weight: 500; margin-bottom: 16px; }
.person p { color: var(--steel); }
.person a { font-weight: 500; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Etiquetas de tecnologías */
.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .93rem; font-weight: 500; color: var(--ink); }
.tile-text { color: var(--white); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; text-align: center; line-height: 1.2; }

/* Selector de idioma */
.lang-switch {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .85rem;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue); }
.nav .lang-switch::after { display: none; }
@media (max-width: 900px) { .nav .lang-switch { align-self: flex-start; margin-top: 14px; border-bottom: 1px solid var(--line); } }
img.person-photo { padding: 0; border: 4px solid var(--white); box-shadow: 0 0 0 2px rgba(61,127,224,.35), 0 20px 40px rgba(30,79,163,.25); background: var(--paper); }

/* Ecosistema de tecnología (inicio) */
.eco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.eco-card {
  display: flex; flex-direction: column;
  padding: 26px 22px 22px; border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09);
}
.eco-card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 6px; letter-spacing: -0.01em; }
.eco-card p { font-size: .93rem; line-height: 1.45; margin: 0 0 20px; }
.eco-logos { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eco-logos li {
  height: 64px; display: grid; place-items: center; padding: 0 14px;
  border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.eco-logos img { max-height: 24px; max-width: 100%; width: auto; filter: brightness(0) invert(1); opacity: .88; }
.creds {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08);
}
.creds > span { color: var(--muted); font-size: .95rem; }
.creds .tags { margin: 0; }
.tags-dark li { background: rgba(78,215,154,.08); border-color: rgba(78,215,154,.28); color: #CFF3E1; }
@media (max-width: 1000px) { .eco { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eco { grid-template-columns: 1fr; } }

/* Logos centrados en la página de Tecnología */
.brand-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.brand-grid a { display: grid; place-items: center; height: 96px; padding: 0 22px; }
.brand-grid img { width: auto; max-width: 100%; max-height: 36px; aspect-ratio: auto; object-fit: contain; }

/* Metodología: los pasos se apilan al bajar */
@media (min-width: 901px) {
  .steps { padding-bottom: 8vh; }
  .steps li {
    position: sticky; top: calc(130px + var(--k, 0) * 22px);
    min-height: 0; display: block;
    padding: 34px 34px 34px 108px; margin-bottom: 28px;
    background: linear-gradient(180deg, #111D31, #0C1626);
    border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
    box-shadow: 0 -18px 40px rgba(0,0,0,.45);
  }
  .steps li:nth-child(2) { --k: 1; }
  .steps li:nth-child(3) { --k: 2; }
  .steps li:nth-child(4) { --k: 3; }
  .steps li::before { top: 32px; left: 34px; translate: none; }
  .js .steps li { opacity: 1; }
}

/* Ecosistema en filas (reemplaza la grilla de 4 columnas) */
.eco { grid-template-columns: 1fr; gap: 12px; max-width: 1040px; margin: 0 auto; }
.eco-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; gap: 24px 40px; padding: 22px 26px; }
.eco-card p { margin: 0; }
.eco-logos { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.eco-logos li { width: 150px; height: 70px; padding: 0 18px; }
.eco-logos img { max-height: 30px; }
@media (max-width: 860px) {
  .eco-card { grid-template-columns: 1fr; }
  .eco-logos li { width: calc(50% - 5px); }
}
.eco-card { grid-template-rows: auto auto; row-gap: 4px; }
.eco-card h3 { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
.eco-card p { grid-column: 1; grid-row: 2; align-self: start; }
.eco-logos { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 860px) { .eco-logos { grid-column: 1; grid-row: auto; margin-top: 16px; } }
.eco-card { grid-template-columns: 260px minmax(0, 1fr); }
.eco-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.eco-logos li { width: auto; height: 64px; padding: 0 12px; }
.eco-logos li.wide { grid-column: span 2; }
.eco-logos img { max-height: 26px; }
@media (max-width: 860px) { .eco-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .eco-logos li { width: auto; } }
.eco-logos img[src*="hpe"] { max-height: 38px; }


/* Tarjetas de logos todas del mismo tamaño */
.eco-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.eco-logos li, .eco-logos li.wide { grid-column: auto; }
.eco-logos img, .eco-logos img[src*="hpe"] { max-height: 28px; }
@media (max-width: 860px) { .eco-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pains-section { padding-top: var(--section); }
.person .degree { color: var(--ink); font-weight: 500; margin: -8px 0 14px; }
.person .degree { font-size: .95rem; text-wrap: balance; }

/* Grilla compacta de servicios (inicio) */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc-grid li:last-child:nth-child(3n + 1) { grid-column: 2; }
.svc-grid a {
  display: flex; flex-direction: column; height: 100%;
  padding: 26px 24px; border-radius: var(--r-card); text-decoration: none; color: var(--text);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%),
    linear-gradient(180deg, #0E1829, #0A1220);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.svc-grid a:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.svc-grid .mark { margin-bottom: 18px; }
.svc-grid h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 8px; letter-spacing: -0.01em; }
.svc-grid p { font-size: .97rem; line-height: 1.5; margin: 0 0 18px; color: #A9B6C9; }
.svc-more { margin-top: auto; font-weight: 600; font-size: .95rem; color: color-mix(in srgb, var(--c) 70%, white); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-grid li:last-child:nth-child(3n + 1) { grid-column: auto; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.section-more { text-align: center; margin: clamp(36px, 5vw, 56px) auto 0; max-width: none; }
.btn-light-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #C9D3E1; }
.btn-light-outline::after { background-color: var(--ink); }
.btn-light-outline:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.btn-light-outline:hover::after { background-color: rgba(255,255,255,.18); }

/* Nosotros en el inicio */
.about-home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-home .lead { margin: 20px 0 0; }
.about-values { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: 16px; }
.about-values li { padding-left: 18px; border-left: 2px solid var(--blue); }
.about-values b { display: block; font-weight: 600; }
.about-values span { color: var(--steel); }
.founder-card { padding: 30px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.founder-card img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 4px solid var(--white); box-shadow: 0 0 0 2px rgba(61,127,224,.35), 0 16px 32px rgba(30,79,163,.22); }
.founder-card h3 { font-size: 1.35rem; }
.founder-card .role { color: var(--blue); font-weight: 500; margin: 2px 0 10px; }
.founder-card p { color: var(--steel); font-size: .97rem; margin-left: auto; margin-right: auto; }
.founder-card .tags { justify-content: center; margin-top: 14px; }
.founder-card .tags li { background: var(--white); font-size: .85rem; }
@media (max-width: 900px) { .about-home { grid-template-columns: 1fr; } }

.faq-paper { background: var(--paper); }
.faq-paper .faq-item summary::after { background-color: var(--white); }

/* Página de industrias */
.ind-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(40px, 6vw, 72px); }
.ind-nav a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.ind-nav a:hover { border-color: var(--blue); color: var(--blue); }
.ind-block {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 5vw, 64px);
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px;
}
.ind-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; }
.ind-lead { color: var(--blue); font-weight: 500; margin: 8px 0 14px; }
.ind-head p:not(.ind-lead) { color: var(--steel); }
.ind-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.ind-card { padding: 24px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); }
.ind-card-help { background: var(--bg); border-color: transparent; }
.ind-card h3 { font-size: 1.05rem; margin-bottom: 14px; letter-spacing: 0; }
.ind-card-help h3 { color: var(--white); }
.ind-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ind-list li { position: relative; padding-left: 22px; font-size: .97rem; line-height: 1.45; }
.ind-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px rgba(78,215,154,.6); }
.ind-pains li { color: var(--steel); }
.ind-pains li::before { background: var(--c-consult); box-shadow: none; }
.ind-list a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.ind-list a:hover { color: var(--white); border-bottom-color: var(--blue-bright); }
@media (max-width: 960px) { .ind-block { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ind-cols { grid-template-columns: 1fr; } }

/* Tarjetas de industria del inicio como links */
.industries li { padding: 0; }
.industries li > a { display: flex; flex-direction: column; height: 100%; padding: 30px 26px; color: inherit; text-decoration: none; }

/* Página legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p { color: var(--steel); }
.legal-date { font-size: .92rem; }

/* Aviso bajo los formularios */
.form-note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--steel); max-width: none; }
.form-dark .form-note { color: var(--muted); }
.form-dark .form-note a { color: var(--blue-bright); }
.form-legal { font-size: .78rem; }
/* reCAPTCHA v3: el badge flotante se oculta (se muestra el aviso legal bajo el formulario) */
.grecaptcha-badge { visibility: hidden; }
.footer-legal a { color: inherit; text-decoration: underline; margin-left: 10px; }

/* Menú: sección activa en el inicio */
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--blue); }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Capacidades (inicio) */
.cap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cap-grid li { padding: 26px 24px; border-radius: var(--r-card); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); }
.cap-grid svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; margin-bottom: 18px; background: rgba(61,127,224,.14); fill: none; stroke: var(--blue-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap-grid h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 6px; letter-spacing: -0.01em; }
.cap-grid p { margin: 0; font-size: .96rem; line-height: 1.5; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* Partners autorizados */
.logo-cloud { margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.logo-cloud p { color: var(--muted); font-size: .95rem; margin: 0 auto 22px; }
.logo-cloud ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 44px; }
.logo-cloud img { height: 26px; width: auto; max-width: 130px; object-fit: contain; filter: brightness(0) invert(1); opacity: .72; transition: opacity .2s; }
.logo-cloud img:hover { opacity: 1; }
.logo-cloud img[src*="aruba"], .logo-cloud img[src*="vmware"] { height: 32px; }
.creds { margin-top: 36px; }
.logo-cloud ul { display: grid; grid-template-columns: repeat(8, auto); justify-content: center; gap: 22px 40px; }
@media (max-width: 1100px) { .logo-cloud ul { grid-template-columns: repeat(4, auto); } }
@media (max-width: 520px) { .logo-cloud ul { grid-template-columns: repeat(2, auto); } }
.logo-cloud li { display: grid; place-items: center; }

/* Contraste AA en botones azules */
.btn:not(.btn-light):not(.btn-ghost):not(.btn-light-outline) { background: #2A64BF; }
.btn:not(.btn-light):not(.btn-ghost):not(.btn-light-outline):hover { background: var(--blue-deep); }
.nav .btn { background: var(--ink); }
.nav .btn:hover { background: #2A64BF; }
.cta .btn { background: var(--white); }
.logo-cloud img, .eco-logos img, .brand-grid img { height: auto; }
.logo-cloud img { height: 26px; }
.logo-cloud img[src*="aruba"], .logo-cloud img[src*="vmware"] { height: 32px; }
@media (max-width: 900px) { .nav a.lang-switch { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; margin-top: 16px; align-self: flex-start; } }
.industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .industries { grid-template-columns: 1fr; } }

/* Boutique vs. integrador tradicional */
.compare { margin: 30px 0 34px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; }
.compare-row > * { padding: 14px 18px; font-size: .95rem; line-height: 1.4; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row > b { font-weight: 600; }
.compare-row > span:nth-child(2) { color: var(--steel); }
.compare-row > span:nth-child(3) { background: rgba(61,127,224,.06); color: var(--ink); font-weight: 500; }
.compare-head > span { font-size: .82rem; font-weight: 600; color: var(--steel); }
.compare-head > span:nth-child(3) { color: var(--blue); }
@media (max-width: 600px) {
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > b { grid-column: 1 / -1; padding-bottom: 0; }
  .compare-head > span:first-child { display: none; }
}

/* Catálogo de 8 servicios: grilla de 4 columnas */
.svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-grid li:last-child:nth-child(3n + 1) { grid-column: auto; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.addon-tag {
  display: inline-block; align-self: flex-start; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: #BFDCFB; background: rgba(95,168,245,.14); box-shadow: inset 0 0 0 1px rgba(95,168,245,.35);
}
.stack-card .addon-tag { margin-bottom: 14px; }

/* 6 industrias en el inicio: 3 x 2 */
.industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } }

/* Inicio simplificado */
.logo-cloud-first { margin-top: 0; }
.needs-inline { margin-top: 30px; }
.needs-inline p { color: var(--white); font-weight: 600; margin: 0 0 12px; }
.needs-inline .chips a { font-size: .92rem; padding: 9px 16px; }
.needs-inline .chips a.is-selected { background: var(--white); border-color: var(--white); color: var(--ink); }
.home-contact .contact-lines { margin-top: 28px; }
.industries li > a { padding: 24px 22px; }
.industries svg { margin-bottom: 16px; }

/* Maquetas en pantallas chicas: alto libre y etiqueta debajo */
@media (max-width: 600px) {
  .stack-visual, .managed-visual { aspect-ratio: auto; padding: 22px 14px 64px; }
  .stack-visual .float-chip { right: 14px !important; left: auto !important; top: auto !important; bottom: 16px !important; }
  .stack-visual .shield + .float-chip, .stack-visual .shield ~ .float-chip { position: static; display: inline-block; margin: 6px 4px 0; }
  .mock { font-size: .8rem; }
}
@media (max-width: 600px) { .mock .code { white-space: pre-wrap; word-break: break-word; font-size: .72rem; } }
