/* ==========================================================================
   FLAKS — base: tokens, reset, tipografía, componentes compartidos
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Fallback métrico para reducir el CLS mientras carga Inter */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: #150f2e;
  --bg-deep: #0e0a1f;
  --bg-raise: #1c1540;
  --bg-card: #1a1339;
  --line: rgba(183, 176, 214, 0.16);
  --line-strong: rgba(183, 176, 214, 0.32);
  --field-border: rgba(183, 176, 214, 0.55); /* ≥ 3:1 sobre el fondo (WCAG 1.4.11) */
  --text: #ffffff;
  --muted: #b7b0d6;
  --accent: #00ff7f;
  --accent-soft: rgba(0, 255, 127, 0.12);
  --accent-ink: #0e0a1f;
  --violet: #7b5cff;
  --cyan: #2fd7ff;
  --danger: #ff8a9a;

  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  --fs-2xl: calc(clamp(2.25rem, 1.4rem + 4vw, 5rem) - 2px); /* h2 */
  --fs-3xl: clamp(2.75rem, 1.2rem + 7.5vw, 9.5rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --max: 1320px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg-deep);
}

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

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul, ol)[role='list'], .list-reset { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- Accesibilidad ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute !important;
  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: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 10rem); position: relative; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow,
.num-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
  transform: skewX(-30deg);
}
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.display {
  font-size: var(--fs-2xl);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.lead { font-size: var(--fs-md); color: var(--muted); max-width: 60ch; text-wrap: pretty; }

.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section-head h2 { font-size: var(--fs-2xl); font-weight: 900; letter-spacing: -0.045em; max-width: 16ch; }
.section-head p { max-width: 56ch; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:active { transform: scale(0.97); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: #fff;
  transform: translateX(-101%) skewX(-20deg);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.btn--primary:hover::after { transform: translateX(0) skewX(0); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 44px; padding: 0.6em 1.15em; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1.5px solid transparent;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.link-arrow svg { width: 1.1em; height: 1.1em; }
.link-arrow:hover { gap: 0.85em; }

/* ---------- Chip / píldoras ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  background: rgba(21, 15, 46, 0.6);
}
.chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0); }
}
.pill {
  display: inline-block;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 127, 0.4);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.checks { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.checks li { display: flex; gap: 0.7em; align-items: flex-start; color: var(--muted); }
.checks svg { width: 1.15em; height: 1.15em; flex: none; margin-top: 0.22em; color: var(--accent); }

/* ---------- Rayas de velocidad (motivo gráfico) ---------- */
.speed-rule {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 12px;
}
.speed-rule span {
  display: block;
  height: 3px;
  background: var(--accent);
  transform: skewX(-35deg);
  border-radius: 2px;
}
.speed-rule span:nth-child(1) { width: 64px; }
.speed-rule span:nth-child(2) { width: 36px; opacity: 0.7; }
.speed-rule span:nth-child(3) { width: 18px; opacity: 0.45; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(14, 10, 31, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; color: var(--text); }
.brand__icon { width: 34px; height: 34px; }
.brand__word { height: 18px; width: auto; }
.brand img { height: 34px; width: auto; }
.brand .brand__logo { height: 28px; width: auto; }

.nav { display: none; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: calc(var(--fs-sm) + 1px);
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current='true'] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn--ghost { display: none; }

.menu-toggle {
  width: 48px; height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.3s var(--ease), background 0.2s; }
.menu-toggle span::before,
.menu-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-toggle[aria-expanded='true'] span { background: transparent; }
.menu-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; padding: 0; display: grid; gap: 0.25rem; }
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.35rem 0;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.mobile-menu .mobile-menu__services a:not(.btn) { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; padding: 0.5rem 0; }
.mobile-menu a small { font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.2em; font-weight: 600; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-actions .btn--ghost { display: inline-flex; }
}

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--field-border);
  background: rgba(14, 10, 31, 0.6);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2300FF7F' stroke-width='2'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.field select option { background: var(--bg); }
.field select:has(option[value='']:checked) { color: #8e86b3; } /* "Seleccioná una opción" en gris, como un placeholder */
.field input::placeholder,
.field textarea::placeholder { color: #8e86b3; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(183, 176, 214, 0.8); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--accent); background: rgba(14, 10, 31, 0.9); box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.25); }
.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea { border-color: var(--danger); }
.field__error { font-size: var(--fs-sm); color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: var(--fs-sm); color: var(--muted); }
.form__note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-weight: 600; border-radius: 12px; }
.form__status:empty { display: none; }
.form__status[data-state='error'] { padding: 1rem 1.2rem; background: rgba(255, 138, 154, 0.1); color: var(--danger); border: 1px solid rgba(255, 138, 154, 0.35); }
.form-success {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid rgba(0, 255, 127, 0.4);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.form-success h3 { font-size: var(--fs-xl); }
.form-success[hidden] { display: none; }
.btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 90;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -8px rgba(0, 255, 127, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  padding: 0.5em 0.9em;
  border-radius: 10px;
  background: var(--text);
  color: var(--accent-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding-bottom: 1rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: 1rem; }
.footer-col h2 {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-col__plain { display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px; color: var(--muted); }
.footer-col svg { width: 1.1em; height: 1.1em; color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Glows de fondo ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 255, 127, 0.16), rgba(0, 255, 127, 0));
}

/* ---------- Reveal genérico (activado por JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cursor negativo ---------- */
/* Un círculo blanco con mix-blend-mode: difference invierte lo que tiene debajo
   (texto blanco → negro, verde → magenta). Solo se anima transform: es liviano. */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .has-cursor .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 999;
    width: 0; height: 0;
    pointer-events: none;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .has-cursor .cursor::before {
    content: '';
    position: absolute;
    left: -45px; top: -45px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0.2);
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .has-cursor .cursor.is-hover::before { transform: scale(0.55); }
  .has-cursor .cursor.is-text::before { transform: scale(1); }
  .has-cursor .cursor.is-hidden::before { opacity: 0; }
}

/* ---------- Páginas simples (legal / 404) ---------- */
.simple-page { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 6rem)); padding-bottom: clamp(4rem, 8vw, 8rem); position: relative; overflow: hidden; }
.prose { max-width: 72ch; }
.prose h1 { font-size: var(--fs-2xl); font-weight: 900; letter-spacing: -0.045em; margin-bottom: 1.5rem; }
.prose h2 { font-size: var(--fs-lg); margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose ul { margin-top: 0.75rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.notfound { display: grid; gap: 1.5rem; justify-items: start; }
.notfound__code { font-size: clamp(6rem, 25vw, 16rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.8; color: var(--accent); }
.notfound h1 { font-size: var(--fs-2xl); font-weight: 900; letter-spacing: -0.045em; }
.notfound__links { display: grid; gap: 0.75rem; width: 100%; max-width: 640px; margin-top: 1rem; }
.notfound__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 700;
  transition: border-color 0.2s, background-color 0.2s;
}
.notfound__links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.notfound__links svg { width: 1.2em; height: 1.2em; color: var(--accent); }

/* ---------- Componentes compartidos ---------- */
/* Lista de proyectos */
.plist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); counter-reset: plist; }
.plist__item { counter-increment: plist; }
.plist__num::before { content: counter(plist, decimal-leading-zero); }
/* Destacados del carril: solo en móvil (en desktop ya se ven en el carril) */
@media (min-width: 900px) { .plist__item--featured { display: none; } .only-mob { display: none !important; } }
@media (max-width: 899px) { .only-desk { display: none !important; } }
.plist__row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.25rem 1rem;
  min-height: 64px;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding 0.35s var(--ease), background-color 0.25s;
}
.plist__num { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); letter-spacing: 0.15em; }
.plist__name { font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.plist__dots { display: none; }
.plist__cat { grid-column: 2; grid-row: 2; font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.plist__row svg { grid-column: 3; grid-row: 1 / span 2; width: 1.4em; height: 1.4em; color: var(--accent); transition: transform 0.35s var(--ease); }
.plist__row:hover { color: var(--accent); padding-left: 1rem; }
.plist__row:hover svg { transform: translate(3px, -3px); }
@media (min-width: 900px) {
  .plist__row { grid-template-columns: 3.5rem auto 1fr auto 2rem; }
  .plist__dots { display: block; height: 0; border-bottom: 2px dotted var(--line-strong); align-self: center; margin-top: 0.4em; }
  .plist__cat { grid-column: auto; grid-row: auto; }
  .plist__row svg { grid-column: auto; grid-row: auto; }
}
.plist__preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: 320px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
  transition: opacity 0.25s;
  display: none;
}
.plist__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.15); transition: transform 0.6s var(--ease); }
.plist__preview.is-visible img { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .plist__preview { display: block; }
  .plist__preview.is-visible { opacity: 1; }
}


/* Miniatura en la fila: solo en pantallas sin cursor (donde no hay preview flotante) */
.plist__thumb { display: none; }
@media (hover: none), (max-width: 899px) {
  .plist__row { grid-template-columns: 2rem 88px 1fr auto; }
  .plist__thumb { display: block; grid-row: 1 / span 2; grid-column: 2; width: 88px; height: 55px; object-fit: cover; object-position: top; border-radius: 6px; }
  .plist__name { grid-column: 3; }
  .plist__cat { grid-column: 3; }
  .plist__row svg { grid-column: 4; }
  .plist__num { grid-row: 1 / span 2; }
}

/* Planes / plataformas */
.plans { display: grid; gap: 1rem; }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
}
.plan .checks { flex: 1; }
.plan--hl { border-color: var(--accent); background: linear-gradient(160deg, rgba(0, 255, 127, 0.1), var(--bg-card) 60%); }
.plan__tag { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.plan__name { font-size: var(--fs-xl); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.plan__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.plan__icon svg { width: 28px; height: 28px; }


/* Tarjeta-link de servicio */
.svc-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.15rem 0.75rem;
  min-height: 72px;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-strong);
  background: rgba(14, 10, 31, 0.45);
  transition: border-color 0.25s, background-color 0.25s, transform 0.35s var(--ease);
}
.svc-link__label { font-weight: 800; font-size: var(--fs-md); letter-spacing: -0.02em; }
.svc-link__note { grid-row: 2; font-size: var(--fs-xs); color: var(--muted); }
.svc-link svg { grid-row: 1 / span 2; grid-column: 2; width: 1.3em; height: 1.3em; color: var(--accent); transition: transform 0.35s var(--ease); }
.svc-link:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); }
.svc-link:hover svg { transform: translateX(4px); }


/* FAQ (compartido con páginas de servicio) */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1rem 0;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 1.3em; height: 1.3em; flex: none; color: var(--accent); transition: transform 0.35s var(--ease); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__a { padding: 0 0 1.25rem; color: var(--muted); max-width: 70ch; }


/* Mockup de navegador (compartido) */
.browser {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-raise);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #221a4a;
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4175; }
.browser__bar i:nth-child(1) { background: #ff6b81; }
.browser__bar i:nth-child(2) { background: #ffd166; }
.browser__bar i:nth-child(3) { background: var(--accent); }
.browser__url {
  flex: 1;
  margin-left: 10px;
  max-width: 60%;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raise); }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }

.card {
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: rgba(28, 21, 64, 0.85);
}

/* ---------- Footer: glow ---------- */
.site-footer__glow { width: 60vw; height: 60vw; left: -20vw; bottom: -30vw; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
