:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #d8dbe1;
  --text: #1a1d23;
  --text-muted: #6b7280;
  --ink: #0a0a0c;
  --primary: #a6e600;
  --primary-dark: #8fc400;
  --on-accent: #0a0a0a;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.10), 0 4px 10px rgba(16, 24, 40, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Hero + maqueta: en claro son claros de verdad (fondo blanco, texto
     oscuro), no una versión ligeramente distinta del mismo negro. */
  --hero-bg: var(--bg);
  --hero-text: var(--text);
  --hero-text-muted: var(--text-muted);
  --hero-grid-line: rgba(0, 0, 0, 0.06);
  --hero-ghost-border: var(--border);
  --hero-ghost-border-hover: var(--text-muted);
  --mock-bg: var(--surface);
  --mock-border: var(--border);
  --mock-side-item: color-mix(in srgb, var(--text) 8%, transparent);
  --mock-row-bg: color-mix(in srgb, var(--text) 3%, transparent);
  --mock-check-border: var(--border);
  --mock-linea: color-mix(in srgb, var(--text) 16%, transparent);
  --mock-linea-corta: color-mix(in srgb, var(--text) 9%, transparent);
  --mock-tag-bg: color-mix(in srgb, var(--text) 7%, transparent);
  --mock-tag-text: var(--text-muted);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c; --surface: #101113; --border: #2a2d33; --text: #e8eae9; --text-muted: #8a9099;
    --primary: #ccff33; --primary-dark: #a6e600;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    --hero-bg: var(--ink); --hero-text: #ffffff; --hero-text-muted: #b9bec8;
    --hero-grid-line: rgba(255, 255, 255, 0.05);
    --hero-ghost-border: rgba(255, 255, 255, 0.22); --hero-ghost-border-hover: rgba(255, 255, 255, 0.45);
    --mock-bg: #16171a; --mock-border: rgba(255, 255, 255, 0.08);
    --mock-side-item: rgba(255, 255, 255, 0.08); --mock-row-bg: rgba(255, 255, 255, 0.02);
    --mock-check-border: rgba(255, 255, 255, 0.25);
    --mock-linea: rgba(255, 255, 255, 0.16); --mock-linea-corta: rgba(255, 255, 255, 0.09);
    --mock-tag-bg: rgba(255, 255, 255, 0.07); --mock-tag-text: #c9cdd4;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0c; --surface: #101113; --border: #2a2d33; --text: #e8eae9; --text-muted: #8a9099;
  --primary: #ccff33; --primary-dark: #a6e600;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  --hero-bg: var(--ink); --hero-text: #ffffff; --hero-text-muted: #b9bec8;
  --hero-grid-line: rgba(255, 255, 255, 0.05);
  --hero-ghost-border: rgba(255, 255, 255, 0.22); --hero-ghost-border-hover: rgba(255, 255, 255, 0.45);
  --mock-bg: #16171a; --mock-border: rgba(255, 255, 255, 0.08);
  --mock-side-item: rgba(255, 255, 255, 0.08); --mock-row-bg: rgba(255, 255, 255, 0.02);
  --mock-check-border: rgba(255, 255, 255, 0.25);
  --mock-linea: rgba(255, 255, 255, 0.16); --mock-linea-corta: rgba(255, 255, 255, 0.09);
  --mock-tag-bg: rgba(255, 255, 255, 0.07); --mock-tag-text: #c9cdd4;
}
:root[data-theme="light"] {
  --bg: #f7f8fa; --surface: #ffffff; --border: #d8dbe1; --text: #1a1d23; --text-muted: #6b7280;
  --primary: #a6e600; --primary-dark: #8fc400;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.10), 0 4px 10px rgba(16, 24, 40, 0.06);
  --hero-bg: var(--bg); --hero-text: var(--text); --hero-text-muted: var(--text-muted);
  --hero-grid-line: rgba(0, 0, 0, 0.06);
  --hero-ghost-border: var(--border); --hero-ghost-border-hover: var(--text-muted);
  --mock-bg: var(--surface); --mock-border: var(--border);
  --mock-side-item: color-mix(in srgb, var(--text) 8%, transparent); --mock-row-bg: color-mix(in srgb, var(--text) 3%, transparent);
  --mock-check-border: var(--border);
  --mock-linea: color-mix(in srgb, var(--text) 16%, transparent); --mock-linea-corta: color-mix(in srgb, var(--text) 9%, transparent);
  --mock-tag-bg: color-mix(in srgb, var(--text) 7%, transparent); --mock-tag-text: var(--text-muted);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.l-section-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.l-section-inner-estrecha { max-width: 680px; }
.l-kicker {
  display: inline-block; font-size: 0.78em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 10px;
}
/* ---- Nav ---- */
.l-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.l-nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.l-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02em; margin-right: auto; }
.l-brand img { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); padding: 3px; }
.l-nav-links { display: flex; gap: 24px; font-size: 0.91em; color: var(--text-muted); }
.l-nav-links a { transition: color 0.15s ease; }
.l-nav-links a:hover { color: var(--text); }
.l-nav-cta { display: flex; gap: 14px; align-items: center; }

/* Botón hamburguesa -- solo aparece por debajo de 760px (ver el
   breakpoint responsive más abajo), donde antes .l-nav-links
   desaparecía con display:none sin ninguna alternativa: en móvil esos
   4 enlaces (Funcionalidades/Por qué/Preguntas/Para desarrolladores)
   eran inalcanzables salvo scrolleando a mano. Icono dinámico
   menu/x, mismo mecanismo de swap ya usado en busqueda.js de la app. */
.l-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
}
.l-nav-toggle svg { width: 18px; height: 18px; }
.l-nav-toggle .l-nav-toggle-cerrar { display: none; }
.l-nav-toggle.is-abierto .l-nav-toggle-abrir { display: none; }
.l-nav-toggle.is-abierto .l-nav-toggle-cerrar { display: block; }

/* Cluster de utilidades (idioma + tema): agrupados en una sola píldora
   neutra para que se lean como "ajustes secundarios", separados del
   par de acciones Entrar/Contacto -- antes el idioma activo usaba el
   mismo verde lima que el CTA principal y competía visualmente con él.
   El propio contenedor ya no lleva borde/relleno propios (los ponía
   antes .l-idiomas): ahora es esta píldora la que los lleva, para que
   idioma + tema formen un único bloque visual en vez de dos controles
   sueltos con su propio borde cada uno. */
.l-nav-utilidades {
  display: flex; align-items: center; gap: 1px;
  padding: 3px; border-radius: 999px; border: 1px solid var(--border);
}

.l-idiomas { display: flex; gap: 1px; }
.l-idioma-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px;
  font-size: 0.72em; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-muted); line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.l-idioma-link:hover { color: var(--text); background: var(--border); }
.l-idioma-link.is-activo { background: var(--text); color: var(--surface); }

.l-nav-divisor { width: 1px; height: 18px; background: var(--border); margin: 0 2px; flex-shrink: 0; }

.l-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px; border: none;
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.l-theme-toggle:hover { color: var(--text); background: var(--border); }

.l-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 17px; border-radius: 9px; font-weight: 600; font-size: 0.91em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.l-btn-primary { background: var(--primary); color: var(--on-accent); }
.l-btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.l-btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.l-btn-ghost:hover { border-color: var(--text-muted); }
.l-btn-lg { padding: 13px 24px; font-size: 1em; border-radius: 10px; }

/* ---- Hero ---- */
.l-hero { background: var(--hero-bg); color: var(--hero-text); padding: 76px 24px 0; position: relative; overflow: hidden; transition: background 0.2s ease, color 0.2s ease; }
.l-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
}
.l-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 320px at 20% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.l-hero-inner {
  max-width: 1120px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-bottom: 90px;
}
.l-hero-eyebrow {
  display: inline-block; font-size: 0.82em; font-weight: 600; color: color-mix(in srgb, var(--primary) 75%, black 25%);
  background: color-mix(in srgb, var(--primary) 14%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  padding: 5px 12px; border-radius: 999px; margin: 0 0 20px;
}
.l-hero h1 { font-size: clamp(2em, 3.6vw, 2.9em); color: var(--hero-text); }
.l-hero-sub { font-size: 1.08em; color: var(--hero-text-muted); max-width: 480px; margin: 0 0 2em; }
.l-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.l-hero .l-btn-ghost { color: var(--hero-text); border-color: var(--hero-ghost-border); }
.l-hero .l-btn-ghost:hover { border-color: var(--hero-ghost-border-hover); }

/* ---- Mockup de producto ---- */
.l-mock {
  background: var(--mock-bg); border: 1px solid var(--mock-border); border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.l-mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--mock-border); }
.l-mock-dot { width: 9px; height: 9px; border-radius: 50%; opacity: 0.85; }
.l-mock-body { display: flex; min-height: 260px; }
.l-mock-side { width: 46px; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; border-right: 1px solid var(--mock-border); }
.l-mock-side-item { width: 20px; height: 20px; border-radius: 6px; background: var(--mock-side-item); }
.l-mock-side-item.is-activo { background: var(--primary); }
.l-mock-list { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.l-mock-row {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px;
  background: var(--mock-row-bg);
}
.l-mock-row.is-resaltada { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.l-mock-check { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--mock-check-border); flex-shrink: 0; }
.l-mock-check.is-hecho { background: var(--primary); border-color: var(--primary); }
.l-mock-avatar { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; opacity: 0.9; }
.l-mock-lineas { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.l-mock-linea { height: 7px; border-radius: 4px; background: var(--mock-linea); }
.l-mock-linea-corta { background: var(--mock-linea-corta); }
.l-mock-tag {
  font-size: 0.68em; padding: 3px 8px; border-radius: 999px; color: var(--mock-tag-text);
  background: var(--mock-tag-bg); white-space: nowrap; flex-shrink: 0;
}

/* ---- Franja de datos ---- */
.l-datos { background: var(--hero-bg); border-top: 1px solid color-mix(in srgb, var(--hero-text) 10%, transparent); padding: 36px 0; }
.l-datos-fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.l-dato {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; border-radius: 14px;
  background: color-mix(in srgb, var(--hero-text) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-text) 10%, transparent);
}
.l-dato-icono {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
}
.l-dato-icono svg { width: 20px; height: 20px; }
.l-dato-num {
  display: block; font-size: 1.5em; font-weight: 800; line-height: 1.1;
  color: var(--hero-text); letter-spacing: -0.02em;
}
.l-dato-etiqueta { display: block; font-size: 0.8em; color: var(--hero-text-muted); margin-top: 1px; }

/* ---- Reveal on scroll ---- */
.l-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.l-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Funcionalidades ---- */
.l-funcionalidades { padding: 100px 0; }
.l-funcionalidades h2, .l-faq h2 { font-size: clamp(1.6em, 3.2vw, 2.1em); max-width: 560px; }
.l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.l-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.l-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--acento, var(--primary)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.l-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--acento, var(--primary)) 40%, var(--border)); }
.l-card:hover::before { transform: scaleX(1); }
.l-card-icono {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--acento, var(--primary)) 18%, var(--surface));
  color: var(--acento, var(--primary));
}
.l-card-icono svg { width: 22px; height: 22px; }
.l-card h3 { font-size: 1.02em; }
.l-card p { font-size: 0.9em; margin-bottom: 0; }

/* ---- Por qué (editorial) ---- */
.l-porque { padding: 20px 0 100px; position: relative; overflow: hidden; }
.l-porque-orbe {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  width: 420px; height: 420px; left: -160px; top: 40px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%);
  filter: blur(10px);
}
.l-porque-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.l-porque h2 { font-size: clamp(1.6em, 3.2vw, 2.1em); }
.l-porque-texto p { font-size: 1.02em; color: var(--text); }
.l-porque-texto p:last-child { margin-bottom: 0; }
.l-porque-grafico { margin-top: 28px; opacity: 0.85; }
.l-porque-grafico line { stroke: var(--border); stroke-width: 1.5; }
.l-porque-grafico circle.l-nodo-centro { fill: color-mix(in srgb, var(--primary) 25%, var(--surface)); stroke: var(--primary); stroke-width: 1.5; }
.l-porque-grafico circle.l-nodo { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.l-porque-grafico .l-porque-nodo-icono { color: var(--primary); }
.l-porque-grafico .l-porque-centro-texto {
  fill: var(--primary); font-size: 11px; font-weight: 700; text-anchor: middle;
  font-family: inherit;
}
.l-porque-grafico .l-porque-etiqueta {
  fill: var(--text); font-size: 12px; font-weight: 600; font-family: inherit;
}

/* ---- FAQ ---- */
.l-faq { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.l-faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.l-faq-item:last-of-type { border-bottom: none; }
.l-faq-item summary {
  cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none;
  display: flex; align-items: center; gap: 14px;
}
.l-faq-item summary::-webkit-details-marker { display: none; }
.l-faq-icono {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.l-faq-icono svg { width: 16px; height: 16px; }
.l-faq-item summary .l-faq-titulo { flex: 1; }
.l-faq-item summary::after { content: "+"; font-size: 1.3em; color: var(--text-muted); font-weight: 400; flex-shrink: 0; }
.l-faq-item[open] summary::after { content: "\2212"; }
.l-faq-item p { padding-bottom: 18px; padding-left: 44px; margin-bottom: 0; font-size: 0.95em; max-width: 560px; }

/* ---- CTA final ---- */
.l-cta-final { padding: 96px 24px 116px; text-align: center; }
.l-cta-final .l-section-inner {
  position: relative; overflow: hidden; padding: 64px 24px; border-radius: 28px;
  background: var(--ink); color: #fff;
}
.l-cta-final .l-section-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 260px at 15% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
              radial-gradient(420px 240px at 90% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%);
}
.l-cta-final h2, .l-cta-final .l-section-inner p { position: relative; color: #fff; }
.l-cta-final .l-section-inner p { color: #b9bec8; }
.l-cta-final .l-btn-primary { position: relative; }
.l-cta-final p { max-width: 380px; margin: 0 auto 1.8em; }

/* ---- Contacto ---- */
.l-contacto { padding: 0 24px 116px; }
.l-contacto-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 48px;
}
.l-contacto-texto h2 { margin: 0 0 12px; }
.l-contacto-texto p { color: var(--text-muted); max-width: 320px; }
.l-contacto-form { display: flex; flex-direction: column; gap: 14px; }
.l-contacto-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.l-contacto-campo { display: flex; flex-direction: column; gap: 6px; }
.l-contacto-campo label { font-size: 0.85em; font-weight: 600; color: var(--text-muted); }
.l-contacto-campo input, .l-contacto-campo textarea {
  font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.l-contacto-campo input:focus, .l-contacto-campo textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px;
}
.l-contacto-campo textarea { resize: vertical; }
.l-contacto-form button { align-self: flex-start; }
.l-contacto-form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.l-contacto-estado { margin: 0; font-size: 0.9em; min-height: 1.2em; }
.l-contacto-estado.es-ok { color: #16a34a; }
.l-contacto-estado.es-error { color: #dc2626; }
@media (max-width: 760px) {
  .l-contacto-inner { grid-template-columns: 1fr; padding: 32px 24px; }
  .l-contacto-texto p { max-width: none; }
  .l-contacto-fila { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.l-footer { background: var(--ink); color: #9a9fa8; padding: 40px 0; }
.l-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.l-footer-marca { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.l-footer-marca img { width: 24px; height: 24px; border-radius: 6px; }
.l-footer-links { display: flex; gap: 22px; font-size: 0.9em; }
.l-footer-links a:hover { color: #fff; }

/* ---- Banner de cookies ---- */
.l-cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 100;
  max-width: 640px; width: calc(100% - 40px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-lg);
  animation: l-cookies-entra 0.3s ease;
}
@keyframes l-cookies-entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.l-cookies-inner { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.l-cookies-icono {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.l-cookies-icono img { width: 34px; height: 34px; border-radius: 8px; }
.l-cookies-texto { flex: 1; min-width: 0; }
.l-cookies-texto h3 { margin: 0 0 6px; font-size: 1.05em; }
.l-cookies-texto p { margin: 0 0 16px; font-size: 0.88em; color: var(--text-muted); }
.l-cookies-inner a { color: var(--text); text-decoration: underline; }
.l-cookies-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.l-cookies-personalizar {
  display: inline-block; margin-top: 12px; font-size: 0.85em; color: var(--text-muted);
  text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.l-cookies-personalizar:hover { color: var(--text); }
.l-cookies-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.l-cookies-opcion {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 0; font-size: 0.9em;
}
.l-cookies-opcion strong { display: block; font-size: 0.95em; }
.l-cookies-opcion span { color: var(--text-muted); font-size: 0.85em; }
.l-cookies-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.l-cookies-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.l-cookies-switch-riel {
  position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background 0.15s ease;
}
.l-cookies-switch-riel::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); transition: transform 0.15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.l-cookies-switch input:checked + .l-cookies-switch-riel { background: var(--primary); }
.l-cookies-switch input:checked + .l-cookies-switch-riel::after { transform: translateX(18px); }
.l-cookies-switch input:disabled + .l-cookies-switch-riel { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 560px) {
  .l-cookies { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .l-cookies-icono { display: none; }
}

/* ---- Páginas legales ---- */
.l-legal { padding: 56px 0 100px; }
.l-legal .l-section-inner { max-width: 780px; }
.l-legal h1 { font-size: clamp(1.7em, 3.5vw, 2.3em); margin-bottom: 0.3em; }
.l-legal .l-legal-fecha { color: var(--text-muted); font-size: 0.88em; margin-bottom: 2.4em; }
.l-legal h2 { font-size: 1.2em; margin-top: 2em; }
.l-legal p, .l-legal li { color: var(--text); font-size: 0.97em; }
.l-legal ul { padding-left: 1.2em; }
.l-legal li { margin-bottom: 0.5em; }
.l-legal a { text-decoration: underline; }
.l-legal table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.9em; }
.l-legal th, .l-legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); }
.l-legal th { background: var(--bg); }
.l-legal-marcador { background: color-mix(in srgb, var(--warning, #b8860b) 16%, transparent); padding: 0 4px; border-radius: 4px; }
.l-legal-volver { display: inline-block; margin-bottom: 28px; color: var(--text-muted); font-size: 0.9em; }
.l-legal-volver:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .l-hero-inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .l-hero-sub { max-width: none; }
  .l-mock { transform: none; max-width: 520px; }
  .l-porque-grid { grid-template-columns: 1fr; gap: 20px; }
  .l-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Menú móvil: por debajo de 760px .l-nav-links deja de ser una fila
   horizontal y pasa a panel desplegable controlado por .l-nav-toggle
   (antes simplemente desaparecía sin alternativa alguna). */
@media (max-width: 760px) {
  .l-nav-toggle { display: inline-flex; }
  .l-nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 4px 24px 12px;
  }
  .l-nav-links.is-abierto { display: flex; }
  .l-nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .l-nav-links a:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .l-nav-inner { flex-wrap: wrap; row-gap: 10px; padding-left: 16px; padding-right: 16px; }
  .l-nav-cta { gap: 8px; }
  .l-nav-cta .l-btn { padding: 9px 12px; }
  .l-nav-utilidades { padding: 2px; }
  .l-idioma-link { min-width: 22px; padding: 0 5px; }
  .l-hero { padding-top: 56px; }
  .l-hero-inner { padding-bottom: 48px; }
  .l-funcionalidades, .l-porque, .l-faq { padding: 64px 0; }
  .l-grid { grid-template-columns: 1fr; }
  .l-footer-inner { flex-direction: column; align-items: flex-start; }
  .l-datos-fila { grid-template-columns: 1fr; }
  .l-cta-final { padding: 64px 16px 80px; }
  .l-cta-final .l-section-inner { padding: 44px 20px; border-radius: 20px; }
  .l-porque-orbe { display: none; }
}
