/* =============================================================================
   ORACLE CORPORATION S.A.S. — Hoja de estilos principal
   Dirección visual: oscuro cálido + acento oro (oráculo / revelar) con
   contrapunto turquesa para lo técnico. Grano sutil y retícula de plano.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Tipografía */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Escala tipográfica fluida */
  --fs-xs: clamp(.72rem, .70rem + .10vw, .78rem);
  --fs-sm: clamp(.83rem, .80rem + .14vw, .90rem);
  --fs-base: clamp(.95rem, .92rem + .18vw, 1.03rem);
  --fs-md: clamp(1.05rem, 1.00rem + .26vw, 1.18rem);
  --fs-lg: clamp(1.20rem, 1.10rem + .50vw, 1.45rem);
  --fs-xl: clamp(1.55rem, 1.35rem + 1.00vw, 2.20rem);
  --fs-2xl: clamp(1.90rem, 1.55rem + 1.65vw, 3.00rem);
  --fs-3xl: clamp(2.25rem, 1.60rem + 2.55vw, 3.65rem);

  /* Ritmo */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  --wrap: 1220px;
  --wrap-narrow: 860px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Marca */
  --gold-100: #FFE9C2;
  --gold-200: #FFD48A;
  --gold-400: #F2A93B;
  --gold-500: #E8912B;
  --gold-600: #C6741A;
  --teal-200: #9DF3E8;
  --teal-400: #3ED6C5;
  --teal-500: #2AAE9E;

  --grad-gold: linear-gradient(100deg, var(--gold-200) 0%, var(--gold-400) 55%, var(--gold-600) 100%);
  --grad-mix: linear-gradient(105deg, var(--gold-200) 0%, var(--gold-400) 42%, var(--teal-400) 100%);
}

/* Tema oscuro (predeterminado) */
:root, [data-theme="dark"] {
  --bg: #08090C;
  --bg-2: #0C0E13;
  --surface: #10131A;
  --surface-2: #161A23;
  --surface-3: #1D222D;
  --line: #232833;
  --line-strong: #2E3542;

  --text: #EDEFF3;
  --text-2: #B6BCC9;
  --text-3: #838B9B;

  --accent: var(--gold-400);
  --accent-soft: rgba(242, 169, 59, .13);
  --accent-line: rgba(242, 169, 59, .32);
  --tech: var(--teal-400);
  --tech-soft: rgba(62, 214, 197, .12);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 12px 30px -12px rgba(0,0,0,.75);
  --shadow-lg: 0 34px 70px -30px rgba(0,0,0,.85);
  --glow: 0 0 0 1px rgba(242,169,59,.22), 0 20px 60px -22px rgba(242,169,59,.35);

  --grid-line: rgba(255,255,255,.032);
  --noise-op: .05;
  --glow-a: rgba(242,169,59,.16);
  --glow-b: rgba(62,214,197,.10);

  --on-accent: #14100A;
  color-scheme: dark;
}

/* Tema claro */
[data-theme="light"] {
  --bg: #F8F6F2;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F0EA;
  --surface-3: #EAE6DE;
  --line: #E2DDD3;
  --line-strong: #CFC8BB;

  --text: #14161B;
  --text-2: #4A505C;
  --text-3: #6E7684;

  --accent: var(--gold-600);
  --accent-soft: rgba(198, 116, 26, .10);
  --accent-line: rgba(198, 116, 26, .28);
  --tech: var(--teal-500);
  --tech-soft: rgba(42, 174, 158, .12);

  --shadow-sm: 0 1px 2px rgba(24,20,12,.06);
  --shadow-md: 0 12px 28px -14px rgba(24,20,12,.20);
  --shadow-lg: 0 30px 60px -28px rgba(24,20,12,.26);
  --glow: 0 0 0 1px rgba(198,116,26,.18), 0 18px 44px -22px rgba(198,116,26,.28);

  --grid-line: rgba(20,22,27,.045);
  --noise-op: .035;
  --glow-a: rgba(242,169,59,.20);
  --glow-b: rgba(42,174,158,.12);

  --on-accent: #FFFFFF;
  --grad-gold: linear-gradient(100deg, var(--gold-500) 0%, var(--gold-600) 60%, #A25A0F 100%);
  --grad-mix: linear-gradient(105deg, var(--gold-500) 0%, var(--gold-600) 45%, var(--teal-500) 100%);
  color-scheme: light;
}

/* Mismos tokens cuando el sistema pide tema claro y nadie ha elegido explícitamente.
   Mantener sincronizado con el bloque [data-theme="light"] de arriba. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --bg: #F8F6F2;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F0EA;
  --surface-3: #EAE6DE;
  --line: #E2DDD3;
  --line-strong: #CFC8BB;

  --text: #14161B;
  --text-2: #4A505C;
  --text-3: #6E7684;

  --accent: var(--gold-600);
  --accent-soft: rgba(198, 116, 26, .10);
  --accent-line: rgba(198, 116, 26, .28);
  --tech: var(--teal-500);
  --tech-soft: rgba(42, 174, 158, .12);

  --shadow-sm: 0 1px 2px rgba(24,20,12,.06);
  --shadow-md: 0 12px 28px -14px rgba(24,20,12,.20);
  --shadow-lg: 0 30px 60px -28px rgba(24,20,12,.26);
  --glow: 0 0 0 1px rgba(198,116,26,.18), 0 18px 44px -22px rgba(198,116,26,.28);

  --grid-line: rgba(20,22,27,.045);
  --noise-op: .035;
  --glow-a: rgba(242,169,59,.20);
  --glow-b: rgba(42,174,158,.12);

  --on-accent: #FFFFFF;
  --grad-gold: linear-gradient(100deg, var(--gold-500) 0%, var(--gold-600) 60%, #A25A0F 100%);
  --grad-mix: linear-gradient(105deg, var(--gold-500) 0%, var(--gold-600) 45%, var(--teal-500) 100%);
  color-scheme: light;
}
}

/* ------------------------------------------------------------- 2. BASE */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.68;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--accent); color: var(--on-accent); }

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

.skip-link {
  position: fixed; top: -100px; left: var(--sp-4); z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: .7rem 1.2rem; border-radius: var(--r-sm);
  font-weight: 600; transition: top .25s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

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

.tabnum { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- 3. FONDO GLOBAL */
.bg-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg);
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
}

.bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(110px);
  opacity: .9;
}
.bg-glow--a {
  width: min(62vw, 780px); aspect-ratio: 1;
  top: -22%; right: -12%;
  background: var(--glow-a);
}
.bg-glow--b {
  width: min(48vw, 620px); aspect-ratio: 1;
  top: 34%; left: -16%;
  background: var(--glow-b);
}

.bg-noise {
  position: absolute; inset: 0;
  opacity: var(--noise-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------- 4. BOTONES */
.btn {
  --btn-py: .85rem; --btn-px: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; stroke-width: 2; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { --btn-py: .62rem; --btn-px: 1.1rem; font-size: var(--fs-xs); }
.btn--lg { --btn-py: 1.05rem; --btn-px: 2rem; font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  background: var(--grad-gold);
  color: var(--on-accent);
  box-shadow: 0 10px 26px -12px rgba(242,169,59,.65);
}
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(242,169,59,.75); }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(8px);
}
.btn--outline:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.btn--ghost { color: var(--text-2); border-color: transparent; }
.btn--ghost:hover { color: var(--accent); background: var(--accent-soft); }

/* ------------------------------------------------------- 5. BARRA SUPERIOR */
.topbar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  font-size: var(--fs-xs);
  color: var(--text-3);
  position: relative; z-index: 60;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 40px; flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__links { display: flex; align-items: center; gap: var(--sp-5); }
.topbar__links a { display: inline-flex; align-items: center; gap: .4rem; transition: color .2s var(--ease); }
.topbar__links a:hover { color: var(--accent); }
.topbar svg { width: 14px; height: 14px; }

.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 0 rgba(62,214,197,.6);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(62,214,197,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(62,214,197,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,214,197,0); }
}

@media (max-width: 860px) {
  .topbar__links a:nth-child(2) { display: none; }
}
@media (max-width: 560px) {
  .topbar__item { font-size: 11px; }
}

/* -------------------------------------------------------- 6. ENCABEZADO */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 74px;
}

/* Marca */
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; display: block; }
.brand__mark svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.brand:hover .brand__mark svg { transform: rotate(90deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.06rem;
  letter-spacing: .18em; color: var(--text);
}
.brand__legal {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); margin-top: 2px;
}

/* Navegación */
.nav { display: flex; align-items: center; gap: var(--sp-6); margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.7rem); }
.nav__list a {
  position: relative;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2);
  padding: .4rem 0;
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--text); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: .5rem; }

.header-tools { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.burger {
  display: none; width: 40px; height: 38px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: var(--r-full); border: 1px solid var(--line);
}
.burger span {
  display: block; width: 17px; height: 1.8px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%;
  background: var(--grad-mix);
  transition: width .1s linear;
}

@media (max-width: 1080px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(360px, 88vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: var(--sp-5);
    padding: calc(74px + var(--sp-6)) var(--sp-6) var(--sp-6);
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    /* visibility saca el menú cerrado del orden de tabulación: sin esto, sus
       10 enlaces siguen recibiendo foco fuera de pantalla (WCAG 2.4.3/2.4.7). */
    visibility: hidden;
    transition: transform .42s var(--ease), visibility .42s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { visibility: visible; }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block; padding: .95rem 0;
    font-size: var(--fs-md); font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; margin-top: var(--sp-4); }
  .nav__cta .btn { width: 100%; --btn-py: .9rem; font-size: var(--fs-sm); }
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: ''; position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  }
}

/* -------------------------------------------------------------- 7. HERO */
.hero {
  position: relative;
  padding: clamp(2.5rem, 4.5vw, 4.25rem) 0 clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .55; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(1.75rem, 3.6vw, 3.25rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-3);
  padding: .45rem .9rem .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  margin-bottom: var(--sp-5);
}
.eyebrow__pin {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 10px 1px var(--accent-line);
}

.grad-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -.042em;
  margin-bottom: var(--sp-4);
}
.hero__lead {
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
  font-weight: 400;
}
.hero__support {
  font-size: var(--fs-sm);
  color: var(--text-3);
  max-width: 60ch;
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--accent-line);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }

.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__chips li {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
  color: var(--text-3);
  padding: .38rem .8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.hero__chips li:hover { color: var(--tech); border-color: var(--tech); }

/* Consola del hero */
.hero__visual { position: relative; }

.console {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .7s var(--ease);
}
.console:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.console::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,212,138,.07), transparent 45%);
}
.console__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.console__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.console__dot:first-child { background: var(--gold-400); }
.console__dot:nth-child(2) { background: var(--teal-400); opacity: .7; }
.console__title {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-3); letter-spacing: .04em;
}
.console__body { padding: 1.15rem 1.15rem 1.35rem; }
.console__line {
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 1.05vw, 13px);
  line-height: 2.05;
  color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.c-prompt { color: var(--tech); }
.c-cmd { color: var(--gold-200); }
[data-theme="light"] .c-cmd { color: var(--gold-600); }
[data-theme="light"] .c-prompt,
[data-theme="light"] .c-ok { color: var(--teal-500); }
[data-theme="light"] .c-run { color: var(--gold-600); }
.c-str { color: var(--text-3); }
.c-ok { color: var(--teal-400); font-weight: 700; }
.c-run { color: var(--gold-400); font-weight: 700; }
.c-dim { color: var(--text-3); }
.type-caret {
  display: inline-block; width: 7px; height: 1em;
  background: var(--gold-400); margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.console__foot {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.console__metric {
  padding: .85rem 1.15rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.console__metric + .console__metric { border-left: 1px solid var(--line); }
.console__metric span {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}
.console__metric b {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
}

/* Etiquetas orbitando */
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit__tag {
  position: absolute;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em;
  padding: .4rem .7rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
.orbit__tag--1 { top: -14px; left: -16px; color: var(--gold-400); border-color: var(--accent-line); }
.orbit__tag--2 { bottom: 46px; right: -22px; animation-delay: -2.4s; }
.orbit__tag--3 { bottom: -16px; left: 18%; color: var(--tech); border-color: var(--tech); animation-delay: -4.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid var(--line-strong);
  border-radius: var(--r-full); display: grid; place-items: start center;
  padding-top: 7px; z-index: 3;
  transition: border-color .25s var(--ease);
}
.hero__scroll:hover { border-color: var(--accent); }
.hero__scroll span {
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent);
  animation: scrolldot 1.9s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .orbit__tag--2 { right: 6px; }
  .orbit__tag--1 { left: 4px; }
  .hero__visual { max-width: 560px; margin-top: var(--sp-2); }
  .console { transform: none; }
  .hero__scroll { display: none; }
  .hero__lead { max-width: none; }
}

@media (max-width: 700px) {
  .orbit { display: none; }
}
@media (max-width: 520px) {
  .console__line { font-size: 10.5px; line-height: 1.95; }
  .console__body { padding: .95rem .9rem 1.1rem; }
  .console__metric { padding: .7rem .9rem; }
}

/* -------------------------------------------------------- 8. CONFIANZA */
.trust {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  padding: var(--sp-6) 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-6);
}
@media (max-width: 860px) { .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust__grid { grid-template-columns: 1fr; } }
.trust__item { display: flex; align-items: flex-start; gap: .8rem; }
.trust__item svg {
  width: 21px; height: 21px; flex-shrink: 0; margin-top: 3px;
  color: var(--accent);
}
.trust__item div { display: flex; flex-direction: column; }
.trust__item b {
  font-family: var(--font-display); font-size: var(--fs-sm);
  font-weight: 600; letter-spacing: -.015em; line-height: 1.35;
}
.trust__item span { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }

/* -------------------------------------------------------- 9. SECCIONES */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt { background: color-mix(in srgb, var(--surface) 38%, transparent); border-block: 1px solid var(--line); }

.section__head {
  max-width: 800px; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.section__head--left { text-align: left; align-items: flex-start; margin-inline: 0; max-width: 780px; }
.section__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.section__lead { font-size: var(--fs-md); color: var(--text-2); max-width: 62ch; }
.section__lead--left { text-align: left; }

/* ------------------------------------------------------- 10. SERVICIOS */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before {
  content: ''; position: absolute; z-index: -1;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  left: var(--mx, 50%); top: var(--my, 50%);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; }
.card--full { grid-column: span 3; }
.card__list--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem var(--sp-5);
}
.card--accent { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }

.card__icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
  border: 1px solid var(--line);
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--gold { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.card__icon--teal { color: var(--tech); background: var(--tech-soft); border-color: color-mix(in srgb, var(--tech) 35%, transparent); }

.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card__text { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--sp-4); }
.card__list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: var(--sp-5); }
.card__list li {
  position: relative; padding-left: 1.35rem;
  font-size: var(--fs-sm); color: var(--text-3); line-height: 1.55;
}
.card__list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); opacity: .75;
  transform: rotate(45deg);
}
.card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent);
  transition: gap .25s var(--ease);
}
.card__link:hover { gap: .75rem; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--full { grid-column: span 2; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide, .card--full { grid-column: span 1; }
  .card__list--cols { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- 11. PROCESO */
.steps {
  position: relative;
  display: grid;
  /* Columnas explícitas: `grid-column: 1 / -1` no es fiable con auto-fit. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  counter-reset: paso;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease);
}
.step:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em;
  color: var(--accent);
  display: inline-block; margin-bottom: var(--sp-3);
  padding-bottom: .35rem;
  border-bottom: 1.5px solid var(--accent-line);
}
.step__body h3 { font-size: var(--fs-md); margin-bottom: .55rem; }
.step__body p { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--sp-3); }
.step--full {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-5);
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent-soft) 40%, transparent);
}
.step--full .step__num { margin-bottom: 0; align-self: flex-start; }
.step--full .step__body { flex: 1 1 380px; }
.step--full .step__body p { margin-bottom: var(--sp-3); }
.step--full .btn { flex-shrink: 0; }
@media (max-width: 640px) { .step--full .btn { width: 100%; } }

.step__deliver {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .04em; color: var(--tech);
  padding: .32rem .6rem;
  border-radius: var(--r-sm);
  background: var(--tech-soft);
}

/* ---------------------------------------------------- 12. TECNOLOGÍAS */
.marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-7);
  padding: var(--sp-4) 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: var(--sp-6);
  width: max-content;
  animation: slide 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600; letter-spacing: -.02em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee__track span:hover { color: var(--accent); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 880px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }
.stack__col {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  transition: border-color .3s var(--ease);
}
.stack__col:hover { border-color: var(--tech); }
.stack__col h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--tech);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.stack__col ul { display: flex; flex-direction: column; gap: .5rem; }
.stack__col li { font-size: var(--fs-sm); color: var(--text-2); }

/* ------------------------------------------------ 13. POR QUÉ ELEGIRNOS */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.reason {
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  background: var(--bg);
  transition: background-color .35s var(--ease);
  position: relative;
}
.reason:hover { background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); }
.reason__num {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .16em; color: var(--text-3);
  display: block; margin-bottom: var(--sp-4);
}
.reason h3 { font-size: var(--fs-md); margin-bottom: .7rem; }
.reason p { font-size: var(--fs-sm); color: var(--text-2); }
.reason::after {
  content: ''; position: absolute; left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--grad-gold);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.reason:hover::after { transform: scaleY(1); transform-origin: top; }

/* -------------------------------------------------------- 14. NOSOTROS */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__text { font-size: var(--fs-md); color: var(--text-2); margin-bottom: var(--sp-4); max-width: 60ch; }

.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); margin: var(--sp-6) 0; }
.mv__card {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border-top: 2px solid var(--accent);
}
.mv__label {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: var(--sp-3);
}
.mv__card p { font-size: var(--fs-sm); color: var(--text-2); }

.values, .diffs { margin-top: var(--sp-6); }
.values__title { font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.values__list { display: flex; flex-wrap: wrap; gap: .55rem; }
.values__list li {
  font-size: var(--fs-sm); color: var(--text-2);
  padding: .48rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.values__list li:hover { color: var(--accent); border-color: var(--accent-line); }

.diffs__list { display: flex; flex-direction: column; gap: var(--sp-3); }
.diffs__list li {
  position: relative; padding-left: 1.6rem;
  font-size: var(--fs-sm); color: var(--text-2);
}
.diffs__list li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--tech);
}
.diffs__list b { color: var(--text); font-weight: 600; }

/* Tarjeta de identidad corporativa */
.about__side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: var(--sp-4); }
.idcard {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.idcard__head {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%);
}
.idcard__badge {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: var(--sp-3);
}
.idcard__head h3 { font-size: var(--fs-md); letter-spacing: -.01em; }
.idcard__list { padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; }
.idcard__list > div { padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.idcard__list > div:last-child { border-bottom: 0; }
.idcard__list dt {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: .3rem;
}
.idcard__list dd { font-size: var(--fs-sm); color: var(--text); line-height: 1.5; }
.idcard__soft { display: block; margin-top: .3rem; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.idcard__foot { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; gap: .6rem; }
.idcard__foot .btn { flex: 1; }
.idcard__note { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; padding-inline: var(--sp-2); }

@media (max-width: 940px) {
  .about { grid-template-columns: 1fr; }
  .about__side { position: static; }
}

/* --------------------------------------------------------- 15. SECTORES */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sectors { grid-template-columns: 1fr; } }
.sector {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.sector:hover { transform: translateY(-3px); border-color: var(--tech); }
.sector svg { width: 26px; height: 26px; color: var(--tech); margin-bottom: var(--sp-4); }
.sector h3 { font-size: var(--fs-md); margin-bottom: .55rem; }
.sector p { font-size: var(--fs-sm); color: var(--text-3); }

/* -------------------------------------------------- 16. MODELOS TRABAJO */
.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}
.model {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.7rem, 2.6vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.model:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.model--featured {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
  box-shadow: var(--glow);
}
.model__flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: var(--r-full);
  background: var(--grad-gold); color: var(--on-accent);
  white-space: nowrap;
}
.model__name { font-size: var(--fs-lg); margin-bottom: .3rem; }
.model__for {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .1em; text-transform: uppercase; color: var(--tech);
  margin-bottom: var(--sp-4);
}
.model__desc { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--sp-5); }
.model__list { display: flex; flex-direction: column; gap: .65rem; margin-bottom: var(--sp-6); }
.model__list li {
  position: relative; padding-left: 1.5rem;
  font-size: var(--fs-sm); color: var(--text-2);
}
.model__list li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 12px; height: 7px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
.model .btn { margin-top: auto; }

/* ------------------------------------------------------------ 17. FAQ */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  overflow: hidden;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.faq__item[open] { border-color: var(--accent-line); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-size: var(--fs-base); font-weight: 600; letter-spacing: -.015em;
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::after {
  content: ''; flex-shrink: 0;
  width: 11px; height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__answer { padding: 0 1.4rem 1.35rem; }
.faq__answer p { font-size: var(--fs-sm); color: var(--text-2); max-width: 72ch; }
.faq__item[open] .faq__answer { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------- 18. CONTACTO */
.contact { position: relative; }
.contact::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 20% 0%, var(--accent-soft), transparent 70%);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.form {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .02em; color: var(--text-2);
}
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23838B9B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #E5484D; }
.field__error { font-size: var(--fs-xs); color: #E5484D; min-height: 0; }

.field--check { flex-direction: row; align-items: flex-start; gap: .7rem; flex-wrap: wrap; }
.field--check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px;
  accent-color: var(--accent); padding: 0;
}
.field--check label { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; flex: 1; min-width: 200px; font-weight: 400; }
.field--check label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.field--check .field__error { flex-basis: 100%; }

.form__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.form__actions .btn { flex: 1 1 200px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__promise {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6;
  padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
}
.form__promise svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.form__promise b { color: var(--text-2); font-weight: 600; }

.form__note { font-size: var(--fs-sm); font-weight: 500; min-height: 1.2em; }
.form__note.is-ok { color: var(--tech); }
.form__note.is-error { color: #E5484D; }
.form__legal { font-size: var(--fs-xs); color: var(--text-3); }

.contact__side { display: flex; flex-direction: column; gap: .7rem; }
.contact__card {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.contact__card:hover { transform: translateX(4px); border-color: var(--accent-line); background: var(--accent-soft); }
.contact__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--accent);
  background: var(--accent-soft);
}
.contact__icon svg { width: 19px; height: 19px; }
.contact__icon--wa { color: #25D366; background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.3); }
.contact__meta { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.contact__meta b { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; }
.contact__meta span { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; word-break: break-word; }
.contact__arrow { margin-left: auto; color: var(--text-3); transition: transform .3s var(--ease), color .3s var(--ease); }
.contact__card:hover .contact__arrow { transform: translateX(3px); color: var(--accent); }

.contact__hours {
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.contact__hours b { font-family: var(--font-display); font-size: var(--fs-sm); display: block; margin-bottom: .35rem; }
.contact__hours p { font-size: var(--fs-xs); color: var(--text-3); }

@media (max-width: 940px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 19. FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0 var(--sp-6);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}
.brand--footer { margin-bottom: var(--sp-4); }
.footer__pitch { font-size: var(--fs-sm); color: var(--text-3); max-width: 42ch; margin-bottom: var(--sp-5); }
.footer__cta { display: flex; flex-wrap: wrap; gap: .5rem; }

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); margin-bottom: var(--sp-4);
}
.footer__col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer__col li, .footer__col a { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; }
.footer__col a { transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0 var(--sp-4);
}
.footer__bottom p { font-size: var(--fs-xs); color: var(--text-3); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__legal a { font-size: var(--fs-xs); color: var(--text-3); transition: color .2s var(--ease); }
.footer__legal a:hover { color: var(--accent); }

.footer__disclaimer {
  font-size: 11px; line-height: 1.6; color: var(--text-3);
  opacity: .8; max-width: 90ch;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------- 20. FLOTANTES */
.fab {
  position: fixed; z-index: 90;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }

.fab--wa {
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 56px; height: 56px;
  background: #25D366; color: #fff;
}
.fab--wa svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.fab--wa::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25D366;
  animation: halo 2.8s var(--ease) infinite;
}
@keyframes halo {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.55); opacity: 0; }
}

.fab--top {
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + 68px);
  width: 42px; height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  opacity: 0; visibility: hidden;
}
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab--top:hover { color: var(--accent); border-color: var(--accent-line); }
.fab--top svg { width: 17px; height: 17px; stroke-width: 2; }

/* ------------------------------------------------------- 21. ANIMACIÓN */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .console { transform: none; }
}

/* ------------------------------------------------ 22. PÁGINAS INTERNAS */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.page-hero p { color: var(--text-2); max-width: 65ch; }

.legal { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal h2 {
  font-size: var(--fs-lg);
  margin: var(--sp-7) 0 var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: var(--fs-md); margin: var(--sp-5) 0 var(--sp-3); }
.legal p, .legal li { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--sp-4); }
.legal ul li::marker { color: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal__meta {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--text-3); letter-spacing: .04em;
  padding: var(--sp-4); margin-bottom: var(--sp-6);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}

/* Impresión */
@media print {
  .bg-layer, .site-header, .topbar, .fab, .hero__canvas, .hero__scroll, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 1.5rem 0; }
}
