/* EYDS LTDA · estilos del sitio (diseño futurista) */

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* Ángulo animable para el borde de luz de la consola */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* Colores de la marca */
  --bg: #05070D;
  --bg-raised: #0A0E1A;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #EEF1F8;
  --text-2: #AEB6CA;
  --text-3: #7F889E;
  --blue: #5B74FF;
  --cobalt: #2C4BFF;
  --periwinkle: #8C9BFF;
  --cyan: #38D9FF;
  --amber: #FFB000;
  --amber-2: #FFD36B;
  --green: #4BE3A0;
  --danger: #FF8A80;

  /* Tipografía y medidas */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: dark;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(91, 116, 255, 0.45);
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.mono {
  font-family: var(--mono);
}

/* Íconos de línea */

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logo: corchetes de código con un rayo al centro */

.mark {
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(91, 116, 255, 0.45));
}

.mark-code {
  fill: none;
  stroke: url(#grad-code) var(--periwinkle);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-volt {
  fill: var(--amber);
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* Encabezado */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand .mark {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  font-weight: 400;
  color: var(--text-3);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:not(.btn) {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: rgba(10, 14, 26, 0.97);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 40px -20px rgba(91, 116, 255, 0.6);
  }

  .js .nav.is-open {
    display: flex;
  }

  .js .nav a:not(.btn) {
    padding: 14px 16px;
  }

  .js .nav .btn {
    margin: 4px 0 0;
  }
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn .ico {
  width: 18px;
  height: 18px;
  flex: none;
  stroke-width: 2;
}

.btn-sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, #4A63FF 0%, #2C4BFF 60%, #2440E6 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(91, 116, 255, 0.6), 0 10px 30px -10px rgba(44, 75, 255, 0.9);
}

.btn-primary:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(140, 155, 255, 0.85), 0 14px 40px -10px rgba(44, 75, 255, 1), 0 0 32px -6px rgba(56, 217, 255, 0.55);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-amber {
  background: linear-gradient(135deg, #FFC233 0%, #FFB000 100%);
  color: #1A1200;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 30px -12px rgba(255, 176, 0, 0.8);
}

.btn-amber:hover {
  color: #1A1200;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 40px -12px rgba(255, 176, 0, 0.9), 0 0 30px -6px rgba(255, 176, 0, 0.6);
}

/* Portada */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 18% 10%, rgba(44, 75, 255, 0.34), transparent 70%),
    radial-gradient(520px 380px at 88% 26%, rgba(56, 217, 255, 0.15), transparent 70%),
    radial-gradient(560px 320px at 72% 100%, rgba(255, 176, 0, 0.13), transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 160, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 255, 0.075) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 78%);
}

/* Destellos que recorren la grilla */
.beam {
  position: absolute;
  top: 168px;
  left: -240px;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 217, 255, 0.95), transparent);
  animation: beam-x 9s linear infinite;
}

.beam--amber {
  top: 392px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.9), transparent);
  animation-duration: 12s;
  animation-delay: -5s;
}

.beam--v {
  top: -240px;
  left: calc(50% + 252px);
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(140, 155, 255, 0.95), transparent);
  animation: beam-y 8s linear infinite;
  animation-delay: -2s;
}

.hero-inner {
  display: grid;
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  container-type: inline-size;
}

.hero-copy > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.chip-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px 2px rgba(255, 176, 0, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(2.75rem, 1.2rem + 4.6vw, 4.75rem);
  font-size: clamp(2.5rem, 12.6cqi, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.grad-soft,
.grad-energy {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-soft {
  background-image: linear-gradient(100deg, #8C9BFF 0%, #38D9FF 100%);
}

.grad-energy {
  background-image: linear-gradient(100deg, #FFB000 0%, #FFE08A 100%);
}

.hero-lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .ico {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.hero-points .is-energy .ico {
  color: var(--amber);
}

/* Consola con código */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding-bottom: 112px;
  animation: rise 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -10% 0;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(44, 75, 255, 0.38), transparent);
}

.console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(140, 160, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 28, 50, 0.92), rgba(9, 12, 22, 0.96));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(44, 75, 255, 0.45);
}

/* Borde de luz que gira alrededor de la consola */
.console::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0deg 250deg, rgba(56, 217, 255, 0.95) 300deg, rgba(140, 155, 255, 0.95) 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: spin 6s linear infinite;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.console-dots {
  display: flex;
  gap: 7px;
}

.console-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.85;
}

.console-dots i:nth-child(2) {
  background: var(--blue);
}

.console-dots i:nth-child(3) {
  background: var(--cyan);
}

.console-file {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.code {
  overflow: hidden;
  padding: 20px 22px 26px;
  color: #C9D1E6;
  font-family: var(--mono);
  font-size: clamp(0.71rem, 2.9vw, 0.875rem);
  line-height: 1.8;
  counter-reset: linea;
}

.ln {
  display: block;
  min-height: 1.8em;
  white-space: pre;
  animation: type-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ln::before {
  counter-increment: linea;
  content: counter(linea);
  display: inline-block;
  width: 1.5em;
  margin-right: 1.5em;
  color: #3D4766;
  text-align: right;
}

.ln:nth-child(1) { animation-delay: 0.6s; }
.ln:nth-child(2) { animation-delay: 0.72s; }
.ln:nth-child(3) { animation-delay: 0.84s; }
.ln:nth-child(4) { animation-delay: 0.96s; }
.ln:nth-child(5) { animation-delay: 1.08s; }
.ln:nth-child(6) { animation-delay: 1.2s; }
.ln:nth-child(7) { animation-delay: 1.32s; }
.ln:nth-child(8) { animation-delay: 1.44s; }
.ln:nth-child(9) { animation-delay: 1.6s; }

.tk-com { color: #6B7697; }
.tk-key { color: #9AA8FF; }
.tk-fn { color: var(--cyan); }
.tk-prop { color: #E3E8FF; }
.tk-str { color: #FFC94D; }
.tk-ok { color: var(--green); }

.typed {
  display: inline-block;
  width: 23ch;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  animation: typing 1.4s steps(23) 2.1s both;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}

/* Tarjeta flotante de energía solar */

.energy-card {
  position: absolute;
  left: -32px;
  bottom: 0;
  width: min(320px, 82%);
  padding: 14px 16px 10px;
  border: 1px solid rgba(255, 176, 0, 0.3);
  border-radius: 16px;
  background: rgba(12, 15, 26, 0.9);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 50px -16px rgba(255, 176, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}

.energy-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.energy-head .ico {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.energy-pill {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid rgba(255, 176, 0, 0.3);
  border-radius: 999px;
  background: rgba(255, 176, 0, 0.08);
  color: var(--amber-2);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.energy-flow {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.flow-label {
  fill: var(--text-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

/* Piezas compartidas de los dibujos de energía */

.ico-line,
.d-line {
  fill: none;
  stroke: rgba(200, 210, 255, 0.75);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wire-glow {
  fill: none;
  stroke: rgba(255, 176, 0, 0.14);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wire-glow--charge {
  stroke: rgba(75, 227, 160, 0.14);
}

.wire-glow--grid {
  stroke: rgba(56, 217, 255, 0.14);
}

.flow {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3 11;
  animation: flow 1s linear infinite;
}

.flow--charge {
  stroke: var(--green);
}

.flow--grid {
  stroke: var(--cyan);
}

.volt {
  fill: var(--amber);
  stroke: var(--amber);
  stroke-width: 1;
  stroke-linejoin: round;
}

.lit {
  fill: var(--amber);
  opacity: 0.85;
  animation: glow-soft 3s ease-in-out infinite;
}

.lit--late {
  animation-delay: -1.5s;
}

/* Cinta de servicios */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 50s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px 18px 0;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  transform: rotate(45deg);
}

.ticker-item.is-energy::before {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

/* Secciones */

.section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(80px, 11vw, 136px);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section--software::before {
  background: radial-gradient(700px 480px at 0% 20%, rgba(44, 75, 255, 0.12), transparent 70%);
}

.section--energy::before {
  background: radial-gradient(700px 480px at 100% 30%, rgba(255, 176, 0, 0.08), transparent 70%);
}

.section + .section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 160, 255, 0.3), transparent);
  transform: translateX(-50%);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker b {
  color: var(--cyan);
  font-weight: 500;
}

.kicker::after {
  content: "";
  flex: 0 0 64px;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 217, 255, 0.7), transparent);
}

.kicker--energy b {
  color: var(--amber);
}

.kicker--energy::after {
  background: linear-gradient(90deg, rgba(255, 176, 0, 0.7), transparent);
}

.section-title {
  font-size: clamp(2.125rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-lead {
  max-width: 40em;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

/* Tarjetas con brillo que sigue al puntero */

.card {
  --spot: 91, 116, 255;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section--energy .card {
  --spot: 255, 176, 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--spot), 0.13), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--spot), 0.8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@media (hover: hover) {
  [data-spotlight]:hover .card::before,
  [data-spotlight]:hover .card::after {
    opacity: 1;
  }
}

.card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border: 1px solid rgba(140, 160, 255, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(91, 116, 255, 0.22), rgba(91, 116, 255, 0.06));
  color: #A9B6FF;
  box-shadow: 0 0 30px -8px rgba(91, 116, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card-icon .ico {
  width: 24px;
  height: 24px;
}

.card-icon--energy {
  border-color: rgba(255, 176, 0, 0.35);
  background: linear-gradient(180deg, rgba(255, 176, 0, 0.2), rgba(255, 176, 0, 0.05));
  color: var(--amber-2);
  box-shadow: 0 0 30px -8px rgba(255, 176, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 10px;
  color: var(--text-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.tag--energy {
  margin-top: 14px;
  border-color: rgba(255, 176, 0, 0.35);
  background: rgba(255, 176, 0, 0.06);
  color: var(--amber-2);
}

/* Software: tarjetas con dibujos de pantallas */

.soft-grid {
  display: grid;
  gap: 16px;
}

.viz {
  margin-top: 28px;
}

.viz svg {
  width: 100%;
  height: auto;
}

.viz--phone svg {
  max-width: 190px;
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(44, 75, 255, 0.35));
}

.v-frame { fill: rgba(8, 11, 22, 0.85); stroke: rgba(140, 160, 255, 0.22); }
.v-sep { fill: none; stroke: rgba(140, 160, 255, 0.14); }
.v-sk { fill: rgba(170, 185, 230, 0.16); }
.v-sk--strong { fill: rgba(220, 228, 255, 0.55); }
.v-sk--on { fill: var(--cyan); }
.v-brand { fill: var(--cobalt); }
.v-kpi { fill: rgba(255, 255, 255, 0.035); stroke: rgba(140, 160, 255, 0.16); }
.v-val { fill: var(--periwinkle); }
.v-val--cyan { fill: var(--cyan); }
.v-val--amber { fill: var(--amber); }
.v-grid { fill: none; stroke: rgba(140, 160, 255, 0.1); stroke-dasharray: 3 5; }
.v-area { fill: url(#v-area); animation: area 6s ease-in-out infinite; }
.v-dot { fill: var(--cyan); animation: dot 6s ease-in-out infinite; }
.v-url { fill: rgba(255, 255, 255, 0.05); stroke: rgba(140, 160, 255, 0.16); }
.v-lock { fill: none; stroke: var(--text-3); stroke-width: 1.2; stroke-linejoin: round; }
.v-url-text { fill: var(--text-2); font-family: var(--mono); font-size: 10px; }
.v-win--a { fill: var(--amber); opacity: 0.8; }
.v-win--b { fill: var(--blue); opacity: 0.8; }
.v-win--c { fill: var(--cyan); opacity: 0.8; }
.v-cta { fill: var(--cobalt); }

.v-line {
  fill: none;
  stroke: url(#v-line) var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  animation: draw 6s ease-in-out infinite;
}

.v-ping {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2s ease-out infinite;
}

.v-cta-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: click-ring 6s ease-out infinite;
}

.v-cursor {
  transform: translate(62px, 144px);
  animation: cursor 6s ease-in-out infinite;
}

.p-body { fill: #0C1122; stroke: rgba(140, 160, 255, 0.35); stroke-width: 1.5; }
.p-screen { fill: #070A14; stroke: rgba(140, 160, 255, 0.12); }
.p-notch { fill: #0C1122; }
.p-avatar { fill: rgba(140, 155, 255, 0.35); }
.p-card { fill: rgba(255, 255, 255, 0.04); stroke: rgba(140, 160, 255, 0.14); }
.p-card--hero { fill: rgba(44, 75, 255, 0.16); stroke: rgba(140, 160, 255, 0.35); }
.p-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; }
.p-ico { fill: var(--blue); }
.p-ico--amber { fill: var(--amber); }
.p-ico--cyan { fill: var(--cyan); }
.p-home { fill: rgba(255, 255, 255, 0.35); }

.p-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 72 100;
  animation: ring 6s ease-in-out infinite;
}

/* Energía: diagrama del sistema solar */

.energy-grid {
  display: grid;
  gap: 16px;
}

.diagram {
  display: flex;
  align-items: center;
  padding: clamp(14px, 2.5vw, 28px);
  background:
    radial-gradient(420px 300px at 20% 15%, rgba(255, 176, 0, 0.1), transparent 70%),
    linear-gradient(rgba(140, 160, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(140, 160, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.diagram svg {
  width: 100%;
  height: auto;
}

.d-rays path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.d-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotate 40s linear infinite;
}

.sunlight {
  fill: none;
  stroke: rgba(255, 196, 80, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  animation: flow 1.4s linear infinite;
}

.d-stand {
  fill: none;
  stroke: rgba(140, 160, 255, 0.45);
  stroke-width: 3;
  stroke-linecap: round;
}

.d-shadow {
  fill: rgba(44, 75, 255, 0.18);
}

.d-glint {
  animation: glint 5s ease-in-out infinite;
}

.d-box {
  fill: rgba(91, 116, 255, 0.1);
  stroke: rgba(140, 160, 255, 0.6);
  stroke-width: 1.5;
}

.d-led {
  fill: var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}

.d-charge {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: charge 5s ease-in-out infinite alternate;
}

.d-label {
  fill: var(--text-3);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-anchor: middle;
}

.d-legend {
  fill: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
}

.energy-list {
  display: grid;
  gap: 16px;
}

.card--row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.card--row .card-icon {
  margin-bottom: 0;
}

.card--row h3 {
  font-size: 1.1875rem;
}

.card--row p {
  margin-top: 6px;
}

/* Cómo trabajamos */

.timeline {
  position: relative;
  display: grid;
  gap: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), var(--cyan) 60%, var(--amber));
  opacity: 0.6;
}

/* Pulso de luz que recorre la línea */
.timeline::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 3px;
  height: 64px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, #FFFFFF, transparent);
  animation: travel-y 5s ease-in-out infinite;
}

.step {
  position: relative;
  padding-left: 72px;
}

.step-node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(140, 160, 255, 0.55);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.875rem;
  box-shadow: 0 0 0 6px var(--bg), 0 0 28px -4px rgba(91, 116, 255, 0.8);
}

.step:last-child .step-node {
  border-color: rgba(255, 176, 0, 0.6);
  box-shadow: 0 0 0 6px var(--bg), 0 0 28px -4px rgba(255, 176, 0, 0.7);
}

.step h3 {
  padding-top: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  color: var(--text-2);
}

/* Contacto y formulario */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 40px;
  padding: clamp(22px, 5vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(700px 420px at 0% 0%, rgba(44, 75, 255, 0.3), transparent 65%),
    radial-gradient(600px 400px at 100% 100%, rgba(255, 176, 0, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(140, 160, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.cta-copy {
  min-width: 0;
}

.cta-lead {
  max-width: 30em;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.125rem;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.contact-item:hover {
  border-color: rgba(140, 160, 255, 0.45);
  background: rgba(91, 116, 255, 0.08);
}

.contact-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(91, 116, 255, 0.14);
  color: #A9B6FF;
}

.contact-ico .ico {
  width: 20px;
  height: 20px;
}

.contact-item small {
  display: block;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item small + span {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.cta-copy .btn {
  margin-top: 28px;
}

.form-card {
  min-width: 0;
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(5, 7, 13, 0.72);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.form-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-card > p {
  margin-top: 8px;
  color: var(--text-2);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.field select option,
.field select optgroup {
  background: #0B1020;
  color: var(--text);
}

.select-arrow {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7A839B;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--blue);
  background: rgba(91, 116, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(91, 116, 255, 0.25);
}

.field [aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 138, 128, 0.18);
}

.form-error {
  grid-column: 1 / -1;
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-respaldo {
  grid-column: 1 / -1;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.form-respaldo a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pie de página */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--text-3);
  font-size: 0.875rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.footer-brand strong {
  color: var(--text);
}

/* Aparición al bajar (la activa js/main.js solo para lo que no está en pantalla) */

.reveal-pending {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-in {
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Tablet y computador */

@media (min-width: 720px) {
  .card--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: center;
  }

  .card--split .viz {
    margin-top: 0;
  }

  .energy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }

  .timeline::before {
    left: 24px;
    right: 24px;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--cyan) 60%, var(--amber));
  }

  .timeline::after {
    left: 24px;
    top: 22px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    animation-name: travel-x;
  }

  .step {
    padding-left: 0;
    padding-top: 76px;
  }

  .step h3 {
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .soft-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "custom custom apps"
      "web web apps";
  }

  .card--custom { grid-area: custom; }
  .card--web { grid-area: web; }

  .card--apps {
    grid-area: apps;
    display: flex;
    flex-direction: column;
  }

  .card--apps .viz {
    margin-top: auto;
    padding-top: 28px;
  }

  .energy-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .energy-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
  }
}

@media (max-width: 1023px) {
  .energy-card {
    left: 12px;
  }
}

/* Celular */

@media (max-width: 559px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }

  .form .btn {
    justify-self: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 479px) {
  .ln::before {
    display: none;
  }

  .code {
    padding: 18px 16px 22px;
  }

  .hero-visual {
    padding-bottom: 124px;
  }

  .energy-card {
    left: 8px;
    width: calc(100% - 16px);
  }
}

@media (max-width: 374px) {
  .code {
    font-size: 0.625rem;
  }
}

/* Animaciones */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  50% { opacity: 0.4; }
}

@keyframes spin {
  to { --angle: 360deg; }
}

@keyframes type-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes typing {
  from { width: 0; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes float {
  50% { transform: translateY(-8px); }
}

@keyframes flow {
  to { stroke-dashoffset: -14; }
}

@keyframes glow-soft {
  50% { opacity: 0.45; }
}

@keyframes beam-x {
  to { transform: translateX(calc(100vw + 480px)); }
}

@keyframes beam-y {
  to { transform: translateY(1100px); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes draw {
  0% { stroke-dashoffset: 100; }
  35%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

@keyframes area {
  0%, 10% { opacity: 0; }
  40%, 82% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes dot {
  0%, 30% { opacity: 0; }
  36%, 84% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

@keyframes ping {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 0; transform: scale(3.5); }
}

@keyframes ring {
  0% { stroke-dasharray: 0 100; }
  40%, 85% { stroke-dasharray: 72 100; }
  100% { stroke-dasharray: 0 100; }
}

@keyframes cursor {
  0%, 8% { transform: translate(262px, 186px); }
  40% { transform: translate(62px, 144px); }
  45% { transform: translate(62px, 144px) scale(0.85); }
  50%, 78% { transform: translate(62px, 144px); }
  100% { transform: translate(262px, 186px); }
}

@keyframes click-ring {
  0%, 44% { opacity: 0; transform: scale(1); }
  46% { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes glint {
  0%, 15% { transform: translateX(0); }
  65%, 100% { transform: translateX(320px); }
}

@keyframes charge {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

@keyframes travel-y {
  0% { top: 24px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 88px); opacity: 0; }
}

@keyframes travel-x {
  0% { left: 24px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 104px); opacity: 0; }
}

/* Sin animaciones para quien las desactiva en su dispositivo */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .timeline::after,
  .beam {
    display: none;
  }
}

/* Modo de alto contraste de Windows */

@media (forced-colors: active) {
  .grad-soft,
  .grad-energy {
    background: none;
    color: CanvasText;
  }
}
