/* ==========================================================================
   by.nicocieplak — estilos propios (lo que no resuelve Tailwind)
   Tailwind se compila aparte en assets/css/tailwind.css (ver package.json)
   ========================================================================== */

/* ---------- Fuentes self-hosted (sin Google Fonts = sin bloqueo de render) ---------- */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-600.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

/* ---------- Tokens de color ----------
   Todo el sitio usa estas variables: para cambiar un color, cambialo acá. */
:root {
  --bg: #0f1113;
  --surface: #15181b;
  --surface-2: #1b1f23;
  --fg: #ffffff;
  --fg-soft: #f0f0f0;
  --muted: #b9bec2;           /* 9.5:1 sobre --surface */
  --faint: #a9afb5;        /* 8.1:1 sobre --surface */
  --line: #292d30;
  --line-strong: #3a4045;
  --accent: #8fbbd6;        /* celeste de la marca, apagado */
  --accent-2: #a6cfe6;      /* celeste claro */
  --ok: #3ad389;
  --bad: #ff9592;
  --on-accent: #0b1418;     /* texto/ícono encima del acento */
  --blue: #0070f3;

  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --glow-a: rgba(0, 229, 255, 0.22);
  --glow-b: rgba(0, 112, 243, 0.25);
  --shadow-soft: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-padding-top: calc(var(--header-h) + 24px);
  background-color: var(--bg);
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg);
  color: var(--fg-soft);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

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

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--fg); }

/* ==========================================================================
   HEADER — transparente sobre el hero, sólido al scrollear
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, backdrop-filter 0.2s ease-out;
}
.site-header.is-scrolled {
  background-color: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.header-container {
  max-width: 1200px;
  height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* logo | menú | acciones: el menú queda en el centro exacto */
  align-items: center;
  gap: 16px;
}
.header-logo { grid-column: 1; justify-self: start; }
.header-nav { grid-column: 2; justify-self: center; }
.header-actions { grid-column: 3; justify-self: end; }

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--fg-soft);
  font-size: 0.875rem;
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease-out;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s var(--ease-out);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Menú móvil */
.mobile-drawer {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  z-index: 49;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0s linear 0.18s;
}
.mobile-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--fg-soft);
  font-size: 1rem;
  text-decoration: none;
}
.mobile-link:hover, .mobile-link:active { background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); }

/* ==========================================================================
   PUNTO "DISPONIBLE"
   ========================================================================== */
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ok);
  flex-shrink: 0;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ok);
  animation: radar-ping 2s infinite cubic-bezier(0, 0, 0.2, 1);
}
@keyframes radar-ping {
  0% { transform: scale(0.8); opacity: 0.9; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-out), border-color 0.15s ease-out,
              background-color 0.15s ease-out, box-shadow 0.15s ease-out, color 0.15s ease-out;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { flex-shrink: 0; }


.btn-outline {
  color: var(--fg);
  border: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--bg) 40%, transparent);
}
.btn-outline:hover {
  border-color: color-mix(in srgb, var(--fg) 70%, transparent);
  background-color: color-mix(in srgb, var(--fg) 5%, transparent);
  transform: translateY(-2px);
}

.btn-sm { min-height: 40px; padding: 8px 16px; }
@media (max-width: 639px) { .btn-sm { min-width: 44px; min-height: 44px; padding: 8px 12px; } }

/* WhatsApp: verde sólido con brillo (texto oscuro para que el contraste sea AA) */
.btn-wa {
  min-height: 48px;
  padding: 12px 24px;
  color: #03140a;
  font-size: 0.9375rem;
  font-weight: 700;
  background-color: #25d366;
  border: 0;
  box-shadow: 0 2px 4px var(--shadow-soft);
}
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn-wa:hover {
  background-color: #2ee673;
  box-shadow: 0 4px 8px var(--shadow-soft);
  transform: translateY(-2px);
}


.btn-ghost {
  color: var(--muted);
  padding: 10px 14px;
}
.btn-ghost { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
.btn-ghost:hover { color: var(--fg); text-decoration-color: var(--accent); }

/* ==========================================================================
   HERO — cabeza de partículas + título gigante detrás
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  max-height: 1100px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 28px) 0 32px;
  overflow: hidden;
}

.hero-title {
  position: relative;
  z-index: 3; /* delante de la cabeza: con una frase larga, la legibilidad manda */
  width: 100%;
  max-width: 1440px;
  margin: 2vh auto 0;
  padding: 0.12em 4vw 0.06em;
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(48px, 9.2vw, 168px); /* calibrado para 2 líneas de ~15 letras */
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Cada línea de un solo color: blanco arriba, celeste de la marca abajo */
.hero-line {
  padding-top: 0.12em;       /* aire para la tilde de la Ñ */
  margin-top: -0.12em;
}
.hero-line--1 { color: var(--fg); }
.hero-line--2 { color: var(--accent); }

/* Primera línea a la izquierda, segunda a la derecha */
.hero-line { display: block; }
.hero-line--1 { text-align: left; }
.hero-line--2 { text-align: right; }

/* El canvas de la cabeza: detrás del título y los textos */
.hero-head {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.hero-head.is-ready { opacity: 1; }

/* Degradé abajo para que los textos se lean sobre los hombros */
.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, color-mix(in srgb, var(--bg) 92%, transparent) 100%);
}

.hero-bottom {
  position: relative;
  z-index: 4;
  grid-row: 3;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--accent));
  opacity: 0.7;
}

@media (max-width: 767px) {
  .hero-title {
    white-space: normal;
    font-size: 13vw;
    line-height: 0.9;
    margin-top: 1vh;
  }
  .hero-line { display: inline; } /* en celular la frase corre de corrido */
  .hero-fade {
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 78%, transparent) 28%, color-mix(in srgb, var(--bg) 95%, transparent) 100%);
  }
  .hero-scroll { display: none; }
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.section-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Títulos de sección: dos colores */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  margin-top: 14px;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: balance;
}
.tone { color: var(--accent); }

/* Títulos de tarjeta: misma serif que los títulos grandes */
h3 { font-family: var(--font-display); font-synthesis: none; }

/* Aparición palabra por palabra (main.js parte el título en palabras) */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wi { display: inline-block; transform: translateY(105%); transition: transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
[data-reveal].is-in .wi { transform: none; }

/* Lista con tildes */
.check-list { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.875rem; color: var(--fg-soft); }
.check-list li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.check-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* Selector de idioma ES / EN */
.lang-toggle {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}
.lang-toggle button {
  position: relative;
  z-index: 1;
  min-width: 40px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.15s ease-out, background-color 0.15s ease-out;
}
.lang-toggle button:hover { color: var(--fg); }
.lang-toggle button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }

/* ==========================================================================
   PROYECTOS — ventana de navegador
   ========================================================================== */
.browser-window {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-soft);
  transition: border-color 0.2s ease-out, transform 0.2s var(--ease-out), box-shadow 0.2s ease-out;
}
.case:hover .browser-window {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-soft);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.traffic-dots { display: flex; gap: 6px; }
.traffic-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.address-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
.address-pill svg { width: 11px; height: 11px; fill: var(--ok); }
a.address-pill { min-height: 28px; transition: color 0.15s ease-out, border-color 0.15s ease-out; }
a.address-pill:hover { color: var(--fg); border-color: var(--accent); }
.browser-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.case-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Botón pausar / reproducir (WCAG 2.2.2: todo lo que se mueve solo se puede pausar).
   Va en la barra del navegador para no tapar nada del video. */
.video-toggle {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.video-toggle::after { content: ''; position: absolute; inset: -6px; } /* área táctil de 44px */
.video-toggle:hover { color: var(--fg); border-color: var(--accent); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle[data-paused="true"] .i-play { display: block; }
.video-toggle[data-paused="true"] .i-pause { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================================
   COMPARATIVA — diff estilo git
   ========================================================================== */
.diff {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
}
.diff-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
.diff-cols { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .diff-cols { grid-template-columns: 1fr 1fr; }
  .diff-col + .diff-col { border-left: 1px solid var(--line); }
}
.diff-file {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}
.diff-row {
  display: grid;
  grid-template-columns: 34px 18px 1fr;
  align-items: start;
  padding: 10px 18px 10px 0;
  line-height: 1.55;
}
.diff-row .ln { text-align: right; padding-right: 10px; color: var(--faint); user-select: none; }
.diff-row.del { background: color-mix(in srgb, var(--bad) 7%, transparent); color: var(--fg-soft); }
.diff-row.del .sign { color: var(--bad); }
.diff-row.add { background: color-mix(in srgb, var(--accent-2) 7%, transparent); color: var(--fg-soft); }
.diff-row.add .sign { color: var(--accent-2); }
.diff-row strong { color: var(--fg); font-weight: 600; }
.diff-row.comment { color: var(--faint); }

/* Velocímetro */
.speed-needle {
  transform-origin: 70px 70px;
  transform: rotate(-80deg);
  transition: transform 1.2s var(--ease-out);
}
.speed-arc {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.2s;
}
.speed-track { stroke: var(--line); }
.speed-arc { stroke: var(--blue); }
.speed-needle-line { stroke: var(--accent-2); }
.speed-needle-dot { fill: var(--accent-2); }
.speedometer.is-on .speed-needle { transform: rotate(45deg); }
.speedometer.is-on .speed-arc { stroke-dashoffset: 40; }

/* ==========================================================================
   SERVICIOS — tarjetas con borde que sigue al cursor
   ========================================================================== */
.spot-card {
  --x: 50%;
  --y: 50%;
  --spot: 56, 189, 248;   /* color del brillo de cada tarjeta (R, G, B) */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease-out, transform 0.2s var(--ease-out);
}
.spot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--x) var(--y), rgba(var(--spot), 0.14), transparent 60%);
  transition: opacity 0.2s ease-out;
}
.spot-card:hover {
  border-color: rgba(var(--spot), 0.55);
  transform: translateY(-4px);
}
.spot-card:hover::before { opacity: 1; }
.spot-card > * { position: relative; }
.spot-card h3 { color: var(--fg); }
.spot-text { color: var(--muted); }


/* ==========================================================================
   METODOLOGÍA — línea de tiempo
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 40px; counter-reset: step; }
.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), var(--accent), var(--ok));
}
.timeline li { position: relative; padding-left: 40px; list-style: none; }
.timeline li::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--dot, var(--accent));
}
@media (min-width: 768px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .timeline::before { top: 7px; bottom: auto; left: 6px; right: 6px; width: auto; height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--accent), var(--ok)); }
  .timeline li { padding-left: 0; padding-top: 40px; }
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 50% 120%, var(--glow-b), transparent 70%),
    radial-gradient(30% 40% at 50% 115%, var(--glow-a), transparent 70%);
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}

/* ==========================================================================
   DOS FORMAS DE TRABAJAR
   ========================================================================== */
.way-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.way-card--accent {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background:
    radial-gradient(80% 60% at 100% 0%, var(--glow-b), transparent 70%),
    var(--surface);
}
.way-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--on-accent);
  background: var(--accent);
}
.way-card--accent .way-icon { background: var(--accent-2); }
.way-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   PREGUNTAS FRECUENTES (acordeón nativo <details>)
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  font-size: clamp(1.05rem, 1.8vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--fg);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item summary { color: var(--fg); }
.faq-item summary:hover .faq-icon { border-color: var(--fg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--fg); border-color: var(--fg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--bg); }
.faq-item p { padding: 0 52px 24px 0; color: var(--muted); line-height: 1.65; max-width: 62ch; }

/* ==========================================================================
   FORMULARIO "ARMÁ TU PEDIDO"
   ========================================================================== */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px var(--shadow-soft);
}
@media (min-width: 640px) { .quote-form { padding: 36px; } }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.field input::placeholder { color: var(--faint); }
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { width: 100%; margin-bottom: 10px; font-size: 0.9375rem; font-weight: 600; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   FOOTER + BOTÓN FLOTANTE
   ========================================================================== */
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--fg-soft);
  transition: color 0.15s ease-out;
}
.footer-link:hover { color: var(--accent); }
.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.15s ease-out, transform 0.2s var(--ease-out);
}
.to-top:hover { border-color: var(--accent); transform: translateY(-3px); }

.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 3px 8px var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s var(--ease-out);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #ff4d4f;
}

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================== */
/* Solo se apaga el movimiento automático o grande. Los hovers (cambios de color,
   bordes, el brillo de las tarjetas) siguen funcionando porque los dispara el usuario. */
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; opacity: 0; }
  .wi { transform: none !important; transition: none; }
  .btn, .spot-card, .browser-window, .faq-icon, .wa-float { transition: none; }
  .btn::before { display: none; }
  .speed-needle, .speed-arc { transition: none; }
  .case:hover .browser-window,
  .spot-card:hover,
  .btn:hover { transform: none; }
}
