/* =========================================================
   SUN COMPUTER — Sistema de diseño 2026 (borrador v2, oscuro)
   Inspirado en Modal: lienzo casi negro, texto "fósforo" pálido
   y un solo color LED que brilla. En SUN ese LED es el cian del
   logo (#00e5ff). Sin sombras: la profundidad viene de cambiar
   el tono de la superficie y de líneas de 1px.
   Radios: botones 12px, tarjetas 8px, píldoras 9999px.
   ========================================================= */

:root {
  /* Superficies (negro con matiz navy de marca) */
  --void: #02050c;            /* lienzo principal */
  --ground: #0a1120;          /* tarjetas y botón relleno */
  --carbon: #111b2f;          /* superficies elevadas, nav */
  --frost: #e4f1fb;           /* única banda clara (respiro) */

  /* Líneas */
  --circuit: #2a3d5c;         /* borde interactivo */
  --hairline: #172440;        /* separadores */
  --pine: #1f2f4b;            /* borde de baja jerarquía */

  /* Texto "fósforo" (azul hielo en vez de verde) */
  --phosphor: #e2f6ff;        /* títulos, botones, íconos */
  --lead: #b3c9e2;            /* subtítulos y texto destacado */
  --body: #8ea3bf;            /* párrafos */
  --muted: #64778f;           /* ayudas y metadatos */
  --eyebrow: #8fb6d6;         /* etiquetas superiores */
  --fern: #7f97b5;            /* enlaces terciarios */

  /* LED de marca */
  --led: #00e5ff;             /* cian del logo SUN — racionado */
  --led-soft: rgba(0, 229, 255, .14);
  --brand-blue: #0036a0;      /* azul eléctrico del sun-brand.png (halo) */

  /* Tipografía */
  --display: "Space Grotesk", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Forma */
  --r-card: 8px;
  --r-btn: 12px;
  --r-pill: 9999px;

  /* Layout */
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
  --band-y: clamp(72px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ui);
  font-size: 16px; line-height: 1.5; letter-spacing: -0.022em;
  color: var(--body); background: var(--void);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button { transition: color .3s ease-out, background-color .3s ease-out, border-color .3s ease-out; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--led); color: var(--void); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--led); color: var(--void); padding: 8px 14px; border-radius: var(--r-pill); }

/* ---------- Tipografía ---------- */
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--eyebrow);
}
.display, .h2, .h3 { font-family: var(--display); color: var(--phosphor); font-weight: 500; }
.display { font-size: clamp(44px, 7vw, 84px); line-height: 1.0; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.025em; }
.h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.5; color: var(--lead); letter-spacing: -0.018em; }
.led { color: var(--led); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.022em;
}
.btn svg { width: 18px; height: 18px; }
.btn-led { background: var(--led); color: var(--void); border-radius: var(--r-pill); }
.btn-led:hover { background: #7ff2ff; }
.btn-ghost { border: 1px solid var(--phosphor); color: var(--phosphor); border-radius: var(--r-btn); }
.btn-ghost:hover { background: var(--phosphor); color: var(--void); }
.btn-ground { background: var(--ground); border: 1px solid var(--phosphor); color: var(--phosphor); border-radius: var(--r-btn); }
.btn-ground:hover { background: var(--carbon); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--circuit); color: var(--fern);
  font-size: 14px; font-weight: 500;
}
.chip:hover { color: var(--phosphor); border-color: var(--led); }
.chip svg { width: 15px; height: 15px; transition: transform .3s ease-out; }
.chip:hover svg { transform: translateX(2px); }

/* ---------- Barra superior ---------- */
.utility { background: var(--void); color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--hairline); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.utility span { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.utility svg { width: 12px; height: 12px; color: var(--led); }

/* ---------- Navegación ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 27, 47, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: rgba(0, 0, 0, .25) 0 10px 15px -3px, rgba(0, 0, 0, .2) 0 4px 6px -4px;
}
.header .wrap { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 30px; margin-inline: auto; font-size: 14px; font-weight: 500; color: var(--lead); }
.nav a { padding: 6px 0; position: relative; }
.nav a:hover { color: var(--phosphor); }
.nav a[aria-current="page"] { color: var(--phosphor); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--led);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.portal-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fern); }
.portal-link:hover { color: var(--phosphor); }
.portal-link svg { width: 14px; height: 14px; }
.quote-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--led); color: var(--void); font-size: 14px; font-weight: 500;
}
.quote-link:hover { background: #7ff2ff; }
.draft-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--void); color: var(--led); font-size: 11px; line-height: 18px; text-align: center;
}
.mobile-menu { display: none; width: 40px; height: 40px; border-radius: var(--r-btn); align-items: center; justify-content: center; color: var(--phosphor); border: 1px solid var(--circuit); }
.mobile-menu svg { width: 20px; height: 20px; }

/* ---------- Hero (pila centrada) ---------- */
.hero { position: relative; padding-top: clamp(64px, 10vw, 120px); text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: min(1200px, 140vw); aspect-ratio: 1.6;
  transform: translate(-50%, -10%);
  background: radial-gradient(closest-side, rgba(0, 229, 255, .22), rgba(0, 54, 160, .18) 45%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .display { max-width: 15ch; margin-inline: auto; }
.hero .lead { max-width: 40ch; margin: 24px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 14px; color: var(--muted);
}
.hero-note svg { width: 16px; height: 16px; color: var(--led); flex: none; }
.hero-visual {
  position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1080px;
  border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden;
  border: 1px solid var(--circuit); border-bottom: 0;
}
.hero-visual img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 60%; }
.hero-visual::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, var(--void), transparent);
}

/* ---------- Caminos ---------- */
.paths { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.path {
  display: flex; align-items: center; gap: 16px; padding: 28px 28px;
  border-left: 1px solid var(--hairline);
}
.path:last-child { border-right: 1px solid var(--hairline); }
.path:hover { background: var(--ground); }
.path .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--led); border: 1px solid var(--circuit); border-radius: var(--r-btn); }
.path .ico svg { width: 20px; height: 20px; }
.path b { display: block; color: var(--phosphor); font-weight: 500; font-size: 16px; }
.path small { display: block; font-size: 14px; color: var(--muted); }
.path .go { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .3s ease-out, color .3s ease-out; }
.path:hover .go { color: var(--led); transform: translate(2px, -2px); }

/* ---------- Bandas ---------- */
.band { padding-block: var(--band-y); }
.band.ground { background: var(--ground); }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 48px; }
.band-head .h2 { max-width: 20ch; }

/* Tarjetas de producto con foto */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--carbon); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hairline); }
.card:hover { border-color: var(--circuit); }
.card-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-visual img { transform: scale(1.04); }
.card-visual .num { z-index: 3;
  position: absolute; top: 14px; left: 14px; padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(2, 5, 12, .7); color: var(--lead); font: 500 12px/1.4 var(--mono);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-body { padding: 28px 28px 32px; }
.card-body small { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eyebrow); }
.card-body .h3 { margin-top: 10px; }
.card-body p { margin-top: 10px; font-size: 15px; color: var(--body); }

/* Banda de marca */
.brand-band { background: var(--void); }
.brand-band .wrap { display: grid; gap: 32px; }
.brand-caption { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.brand-art { position: relative; display: grid; place-items: center; padding: clamp(8px, 3vw, 32px) 0; isolation: isolate; }
.brand-art::before {
  content: ""; position: absolute; inset: -10% 5%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 80, 230, .45), rgba(0, 54, 160, .2) 55%, transparent);
  animation: halo 6s ease-in-out infinite;
}
.brand-art img { width: min(100%, 980px); height: auto; filter: drop-shadow(0 0 22px rgba(0, 120, 255, .45)); }
.brand-bottom { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.brand-bottom p { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; color: var(--muted); }
.brand-bottom p b { color: var(--phosphor); font-weight: 500; }
.brand-bottom svg { width: 48px; height: 48px; color: var(--led); flex: none; }

/* Banda clara (respiro, como Modal) */
.band.frost { background: var(--frost); color: #3d4f66; }
.band.frost .kicker { color: #3a6a8f; }
.band.frost .h2, .band.frost .h3 { color: #06122a; }
.band.frost .led { color: #0060a8; }
.band.frost .exp-grid p { color: #3d4f66; }
.band.frost .chip { border-color: #a9c0d6; color: #2f4a68; }
.band.frost .chip:hover { border-color: #06122a; color: #06122a; }

/* Banda de software con ventana de terminal */
.soft-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.soft-grid .lead { margin-top: 24px; max-width: 40ch; }
.soft-grid .btn { margin-top: 36px; }
.window { background: var(--carbon); border: 1px solid var(--circuit); border-radius: 16px; overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a66; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--muted); }
.caps { display: grid; }
.cap {
  display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 14px;
  padding: 20px 22px; border-bottom: 1px solid var(--hairline);
}
.cap:last-child { border-bottom: 0; }
.cap:hover { background: var(--ground); }
.cap .n { font: 500 13px/1 var(--mono); color: var(--led); }
.cap h3 { font: 500 18px/1.3 var(--display); color: var(--phosphor); letter-spacing: -0.01em; }
.cap p { font-size: 14px; color: var(--body); margin-top: 2px; }
.cap svg { width: 18px; height: 18px; color: var(--muted); transition: transform .3s ease-out, color .3s ease-out; }
.cap:hover svg { color: var(--led); transform: translateX(2px); }

/* Experiencia con mosaico de fotos */
.exp-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.exp-grid p { font-size: 18px; color: var(--lead); max-width: 42ch; margin-top: 24px; }
.exp-grid .chip { margin-top: 28px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.15; }
.mosaic figure { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--ground); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic figure { position: relative; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
footer { background: var(--void); border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer-main img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-main b { display: block; color: var(--eyebrow); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-main a:not(.chip) { display: block; padding: 4px 0; color: var(--fern); }
.footer-main a:not(.chip):hover { color: var(--phosphor); }
.footer-main .chip { margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--hairline); font-size: 12px; }

/* ---------- Avisos de site.js ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px;
  background: var(--carbon); border: 1px solid var(--circuit); color: var(--phosphor);
  border-radius: var(--r-btn); font-size: 14px;
}
.toast a { color: var(--led); }
.toast button { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--circuit); font-size: 13px; }

/* ---------- Animaciones (sutiles) ---------- */

/* Entradas al hacer scroll — solo si JS está activo */
.motion-ready .reveal {
  opacity: 0; transform: translateY(28px); filter: blur(4px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.motion-ready .reveal.in { opacity: 1; transform: none; filter: none; }

/* Logo SUN animado */
.power { position: relative; width: 84px; height: 84px; margin: 0 auto 28px; }
.power::before {
  content: ""; position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 229, 255, .35), rgba(0, 54, 160, .15) 55%, transparent);
  animation: halo 4.5s ease-in-out 2.4s infinite;
  opacity: 0;
}
.power svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.p-ring { fill: none; stroke: url(#metal); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 80 100; stroke-dashoffset: 80; animation: draw 1.6s var(--ease) .2s forwards; }
.p-bar { stroke: var(--phosphor); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: draw .7s var(--ease) 1.2s forwards, ignite .6s ease-out 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ignite { to { stroke: var(--led); filter: drop-shadow(0 0 6px rgba(0, 229, 255, .8)); } }
@keyframes halo { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: .85; transform: scale(1.05); } }

/* Fondo vivo: circuitos con pulsos */
.circuits { position: absolute; top: 0; left: 0; width: 100%; height: 50vw; max-height: 820px; min-height: 560px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 8%, transparent 27%, transparent 73%, #000 92%); mask-image: linear-gradient(to right, #000 8%, transparent 27%, transparent 73%, #000 92%); }
.c-lines { fill: none; stroke: #1b2b48; stroke-width: 1.2; }
.c-dots { fill: #24395e; }
.c-pulses path { fill: none; stroke: var(--led); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 60 1000; stroke-dashoffset: 1060; opacity: .9;
  animation: pulse 7s linear infinite; animation-delay: var(--t, 0s); }
@keyframes pulse { 0% { stroke-dashoffset: 60; opacity: 0; } 8% { opacity: .9; } 70% { opacity: .9; } 100% { stroke-dashoffset: -1000; opacity: 0; } }
@media (max-width: 880px) { .circuits { opacity: .55; } }

/* Brillo cian que sigue al cursor */
.glow { position: relative; isolation: isolate; }
.glow::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, .10), transparent 60%);
  opacity: 0; transition: opacity .4s ease-out;
}
.glow:hover::after { opacity: 1; }

/* Inclinación 3D */
.tilt { transform-style: preserve-3d; will-change: transform; }
.motion-ready .tilt.in { transition: opacity .9s var(--ease), transform .25s ease-out, filter .9s var(--ease), border-color .3s ease-out; }

/* Botón LED: pequeño brillo al pasar */
.btn-led, .quote-link { position: relative; overflow: hidden; }
.btn-led::before, .quote-link::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-led:hover::before, .quote-link:hover::before { left: 120%; }

/* Hero: foto entra con zoom suave */
.hero-visual img { transition: transform 1.6s var(--ease); }
.motion-ready .hero-visual:not(.in) img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .p-ring, .p-bar { stroke-dashoffset: 0; }
  .p-bar { stroke: var(--led); }
  .c-pulses { display: none; }
}


/* ---------- Hero dividido con vitrina giratoria ---------- */
.hero-split { text-align: left; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero-split .circuits { -webkit-mask-image: linear-gradient(to right, transparent 45%, #000 85%); mask-image: linear-gradient(to right, transparent 45%, #000 85%); }
.hero-split::before { left: 72%; top: 50%; width: min(900px, 120vw); transform: translate(-50%, -50%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-split .power { margin: 0 0 24px; width: 64px; height: 64px; }
.hero-split .power svg { width: 64px; height: 64px; }
.hero-split .display { margin: 0; max-width: 12ch; font-size: clamp(42px, 4.7vw, 70px); }
.hero-split .lead { margin: 24px 0 0; max-width: 34ch; }
.hero-split .hero-actions { justify-content: flex-start; margin-top: 36px; }

.showcase { position: relative; aspect-ratio: 1 / .86; width: 100%; isolation: isolate; }
.spot {
  position: absolute; inset: 0 4% 14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 229, 255, .30), rgba(0, 54, 160, .28) 45%, rgba(0, 20, 68, .15) 70%, transparent);
  animation: halo 6s ease-in-out infinite;
}
.floor {
  position: absolute; left: 14%; right: 14%; bottom: 23%; height: 7%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 229, 255, .28), rgba(0, 54, 160, .12) 60%, transparent);
  filter: blur(6px);
}
.item {
  position: absolute; left: 50%; bottom: 27%; margin: 0;
  width: 72%; height: 64%;
  display: flex; align-items: flex-end; justify-content: center;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease), filter 1.2s var(--ease);
  will-change: transform, opacity;
}
.item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.item[data-pos="center"] { z-index: 3; opacity: 1; transform: translateX(-50%) scale(1); }
.item[data-pos="center"] img { animation: float 5s ease-in-out infinite; }
.item[data-pos="left"]   { z-index: 1; opacity: .5; filter: brightness(.55) saturate(.8) blur(1px); transform: translateX(-112%) translateY(-12%) scale(.48); }
.item[data-pos="right"]  { z-index: 1; opacity: .5; filter: brightness(.55) saturate(.8) blur(1px); transform: translateX(12%) translateY(-12%) scale(.48); }
.item[data-pos="back"] { z-index: 0; opacity: 0; filter: brightness(.4) blur(3px); transform: translateX(-50%) translateY(-18%) scale(.35); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.showcase-bar { position: absolute; left: 0; right: 0; bottom: 2%; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 4; }
.showcase-label { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--circuit); background: rgba(10, 17, 32, .7); color: var(--phosphor); font-size: 14px; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.showcase-label:hover { border-color: var(--led); }
.showcase-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); }
.showcase-label span { transition: opacity .35s ease-out; }
.showcase-label.swap span { opacity: 0; }
.showcase-dots { display: flex; gap: 8px; }
.showcase-dots button { width: 28px; height: 4px; border-radius: var(--r-pill); background: var(--circuit); position: relative; overflow: hidden; }
.showcase-dots button[aria-pressed="true"] { background: rgba(0, 229, 255, .25); }
.showcase-dots button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; background: var(--led); transform-origin: left; animation: progress var(--dur, 4s) linear forwards; }
.showcase.paused .showcase-dots button::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-split .circuits { -webkit-mask-image: linear-gradient(to right, transparent 45%, #000 85%); mask-image: linear-gradient(to right, transparent 45%, #000 85%); }
.hero-split::before { left: 50%; top: 72%; }
  .hero-split .display { max-width: 13ch; }
  .showcase { max-width: 620px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .showcase { aspect-ratio: 1 / 1.05; }
  .item { width: 78%; }
  .item[data-pos="left"] { transform: translateX(-112%) translateY(-12%) scale(.42); }
  .item[data-pos="right"] { transform: translateX(12%) translateY(-12%) scale(.42); }
  .showcase-bar { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .item[data-pos="center"] img, .spot { animation: none; }
}


/* ---------- Páginas internas ---------- */
[hidden] { display: none !important; }
.page-hero { position: relative; padding-block: clamp(64px, 9vw, 112px) clamp(40px, 5vw, 64px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: min(900px, 120vw); aspect-ratio: 1; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 229, 255, .14), rgba(0, 54, 160, .16) 50%, transparent 75%);
}
.page-hero .wrap { position: relative; }
.page-hero .display { max-width: 16ch; font-size: clamp(40px, 5.6vw, 76px); }
.page-hero .lead { max-width: 52ch; margin-top: 24px; }

/* Barra de búsqueda y filtros (fija bajo la navegación) */
.catalog-toolbar {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(2, 5, 12, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--hairline);
}
.toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-block: 14px; }
.search {
  flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 44px; border-radius: var(--r-pill);
  background: var(--ground); border: 1px solid var(--circuit); color: var(--muted);
  transition: border-color .3s ease-out;
}
.search:focus-within { border-color: var(--led); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0;
  font: inherit; font-size: 15px; color: var(--phosphor);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--circuit);
  font-size: 14px; font-weight: 500; color: var(--fern);
}
.filter-chip:hover { color: var(--phosphor); border-color: var(--lead); }
.filter-chip.active, .filter-chip[aria-pressed="true"] { background: var(--led); border-color: var(--led); color: var(--void); }

.band.catalog { padding-top: 40px; }
.catalog-note { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 500 12px/1.5 var(--mono); color: var(--muted); letter-spacing: 0; }
.catalog-note i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #febc2e; }
.product-card .card-visual { flex: none; }
.product-card .card-body { display: flex; flex-direction: column; flex: 1; }
.product-card .card-body p { flex: 1; }
.add-button {
  align-self: flex-start; margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-btn);
  border: 1px solid var(--phosphor); color: var(--phosphor); font-size: 14px; font-weight: 500; position: relative; z-index: 3;
}
.add-button svg { width: 16px; height: 16px; }
.add-button:hover { background: var(--led); border-color: var(--led); color: var(--void); }
.empty-small { margin-top: 32px; padding: 28px; text-align: center; border: 1px dashed var(--circuit); border-radius: var(--r-card); color: var(--muted); }

@media (max-width: 880px) {
  .catalog-toolbar { top: 64px; }
  .search { max-width: none; flex-basis: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
}


/* ---------- Componentes de páginas internas ---------- */
.band.tight { padding-block: clamp(32px, 4vw, 56px); }

/* Tarjeta destacada: foto + texto */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  background: var(--carbon); border: 1px solid var(--circuit); border-radius: 16px;
}
.spotlight-media { position: relative; min-height: 320px; }
.spotlight-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--carbon)); }
.spotlight-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 4vw, 56px); position: relative; z-index: 3; }
.spotlight-body .kicker { margin: 0; }
.spotlight-body .btn { margin-top: 8px; }

/* Ícono en caja (estilo "workload card") */
.feature-ico {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-btn); border: 1px solid var(--circuit); color: var(--led);
  background: linear-gradient(180deg, rgba(0, 229, 255, .08), transparent);
}
.feature-ico svg { width: 22px; height: 22px; }

/* Tarjetas de servicio / solución */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features.two { grid-template-columns: repeat(2, 1fr); }
.feature {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-card);
  background: var(--ground); border: 1px solid var(--hairline); overflow: hidden;
  transition: border-color .3s ease-out, transform .4s var(--ease);
}
.feature:hover { border-color: var(--circuit); transform: translateY(-3px); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.feature .num { font: 500 12px/1 var(--mono); color: var(--muted); }
.feature p { margin-top: 10px; font-size: 15px; flex: 1; }
.feature .add-button { margin-top: 24px; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--lead); }
.checks svg { width: 16px; height: 16px; flex: none; color: var(--led); }

/* Pasos del proceso (en banda clara) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: #b9cde0; z-index: 0; }
.step { position: relative; z-index: 1; }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #06122a; color: var(--led); font: 500 13px/1 var(--mono); margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--frost);
}
.band.frost .step p { margin-top: 8px; font-size: 15px; color: #3d4f66; }

/* Aviso tipo terminal */
.notice-body { display: flex; align-items: center; gap: 20px; padding: 24px 28px; }
.notice-body > div { flex: 1; }
.notice-body p { margin-top: 4px; font-size: 15px; }
.notice-body .h3 { font-size: 20px; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text .lead { margin-top: 24px; }

/* Llamado final en banda clara */
.callout { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.callout .h2 { max-width: 20ch; }
.callout .lead { max-width: 52ch; color: #3d4f66; }
.btn-dark { background: #06122a; color: var(--phosphor); border-radius: var(--r-pill); }
.btn-dark:hover { background: var(--led); color: var(--void); }

@media (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 880px) {
  .spotlight, .about { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 220px; }
  .spotlight-media::after { background: linear-gradient(180deg, transparent 55%, var(--carbon)); }
  .about { gap: 32px; }
}
@media (max-width: 620px) {
  .features, .features.two, .steps { grid-template-columns: 1fr; }
  .notice-body { flex-direction: column; align-items: flex-start; }
}


/* ---------- Cotizar ---------- */
.quote-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.quote-items { position: sticky; top: 88px; }
.quote-inner { padding: 24px 28px 28px; display: grid; gap: 18px; }
.quote-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.quote-heading span { font: 500 12px/1 var(--mono); color: var(--led); }
.quote-items .empty-small { margin: 0; }
.empty-big { display: grid; justify-items: center; gap: 10px; padding: 32px 24px; }
.empty-big p { font-size: 15px; max-width: 32ch; }
.quote-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.quote-item h3 { font: 500 16px/1.3 var(--display); color: var(--phosphor); }
.quantity { display: flex; align-items: center; gap: 6px; flex: none; }
.quantity > span { min-width: 28px; text-align: center; font: 500 14px/1 var(--mono); color: var(--phosphor); }
.draft-control { min-width: 32px; height: 32px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--circuit); color: var(--lead); font-size: 13px; }
.draft-control:hover:not(:disabled) { border-color: var(--led); color: var(--phosphor); }
.draft-control:disabled { opacity: .35; cursor: default; }
.quote-items .chip { justify-self: start; }
.quote-info { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-card); background: var(--ground); font-size: 14px; }
.quote-info svg { width: 18px; height: 18px; flex: none; color: var(--led); margin-top: 2px; }

.quote-form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: 16px; background: var(--ground); border: 1px solid var(--hairline); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--lead); }
.quote-form input, .quote-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-btn);
  background: var(--void); border: 1px solid var(--circuit); color: var(--phosphor);
  font: 400 15px/1.5 var(--ui); outline: 0; transition: border-color .3s ease-out, box-shadow .3s ease-out;
}
.quote-form textarea { resize: vertical; min-height: 140px; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--led); box-shadow: 0 0 0 3px var(--led-soft); }
.quote-form ::placeholder { color: var(--muted); }
.form-note { display: flex; gap: 10px; align-items: flex-start; font: 500 12px/1.6 var(--mono); color: var(--muted); }
.form-note i { width: 6px; height: 6px; margin-top: 7px; flex: none; border-radius: 50%; background: #febc2e; }
.quote-form .btn { justify-self: start; }

/* ---------- Portal ---------- */
.portal-card { display: flex; flex-direction: column; }
.portal-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; flex: 1; }
.portal-body p { font-size: 15px; flex: 1; }
.portal-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--circuit); font-size: 12px; font-weight: 500; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #febc2e; }
.status.on { color: var(--lead); }
.status.on i { background: #28c840; box-shadow: 0 0 8px #28c840; }
.portal-body .btn { margin-top: 8px; }
.pending { margin-top: 8px; padding: 12px 20px; border-radius: var(--r-btn); border: 1px dashed var(--circuit); font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-items { position: static; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav { gap: 20px; }
  .soft-grid, .exp-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .header .wrap { gap: 12px; }
  .mobile-menu { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px;
    background: var(--carbon); border-bottom: 1px solid var(--hairline); font-size: 17px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .nav a[aria-current="page"]::after { left: auto; right: 0; bottom: 50%; }
  .header-actions { margin-left: auto; }
  .paths-grid, .cards { grid-template-columns: 1fr; }
  .path { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .path:last-child { border-bottom: 0; }
  .hero-visual img { aspect-ratio: 4 / 3; }
  .brand-caption span:last-child { display: none; }
}
@media (max-width: 520px) {
  .portal-link span { display: none; }
  .utility .wrap > span:first-child { display: none; }
  .utility .wrap { justify-content: center; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .logo img { height: 34px; }
  .mosaic { aspect-ratio: 0.9; }
}
