/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Deep slate canvas — "sala de investigación / case file" (Design Read 2026-07). */
  --bg-canvas:           #030712;
  --bg-section:          #080c16;
  --bg-card:             #0d1220; /* panel un punto más neutro (menos azul-genérico) */
  --bg-input:            #131b2b;
  --bg-input-focus:      #0f172a;

  --border-subtle:       rgba(255, 255, 255, 0.06);
  --border-interactive:  rgba(255, 255, 255, 0.14);
  --border-focus:        #22d3ee; /* cian = foco/output del sistema */

  /* ── Sistema de 3 roles cromáticos (sin indigo/púrpura genérico) ──────────
     rojo  = amenaza + marca (lo que MateGuard caza)
     cian  = dato / salida computada (leakage, ROI, métricas — "terminal")
     blanco= acción primaria (CTAs)
     Todo lo demás es neutro estructural. */
  --brand-red:           #f0483a;
  --brand-red-soft:      rgba(240, 72, 58, 0.09);
  --brand-red-line:      rgba(240, 72, 58, 0.30);
  --brand-cyan:          #22d3ee;
  --action:              #f9fafb;
  --action-ink:          #0a0e17;

  /* Status (severidades del reporte — semánticas, no decorativas) */
  --critical:            #f87171;
  --high:                #fb923c;
  --medium:              #facc15;
  --low:                 #4ade80;

  /* Typography */
  --text-100:            #f9fafb;
  --text-200:            #f3f4f6;
  --text-300:            #d1d5db;
  --text-400:            #9ca3af;
  --text-500:            #6b7280;

  --font-sans:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:           'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Radios más filosos: menos "pill" amigable-genérica, más ficha técnica. */
  --radius-sm:           4px;
  --radius-md:           7px;
  --radius-lg:           11px;
  --radius-xl:           14px;

  /* Sombra única, plana y reservada (solo pricing la usa). Sin glows de color. */
  --shadow-card:         0 12px 30px -14px rgba(0, 0, 0, 0.8);
  --shadow-input:        inset 0 2px 4px rgba(0, 0, 0, 0.2);

  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  accent-color: var(--brand-cyan);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-300);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-canvas); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

:root {
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  scrollbar-width: thin;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 22px; height: 22px; color: var(--brand-red); flex-shrink: 0; }
.logo-text {
  font-size: 17px; font-weight: 700; color: var(--text-100);
  letter-spacing: -0.02em;
}
.logo-text b { color: var(--brand-red); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-400);
  text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--text-100); }
.nav-link:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; border-radius: 2px; }

.lang-switcher {
  font-size: 12px; font-weight: 600; color: var(--text-300);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-interactive);
  border-radius: var(--radius-sm); padding: 6px 8px;
  cursor: pointer;
}
.lang-switcher:hover { background: rgba(255, 255, 255, 0.08); }
.lang-switcher:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.btn-login-nav {
  font-size: 13px; font-weight: 600; color: var(--text-100);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-interactive);
  border-radius: var(--radius-sm); padding: 8px 16px;
  text-decoration: none; transition: all 0.2s;
}
.btn-login-nav:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.btn-login-nav:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* ── Nav drawer mobile ────────────────────────────────────────────────────── */
.nav-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border-interactive);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-menu-btn:hover { background: rgba(255, 255, 255, 0.05); }
.nav-menu-btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.nav-menu-icon {
  position: relative; display: block; width: 18px; height: 2px;
  background: var(--text-100); border-radius: 2px;
}
.nav-menu-icon::before, .nav-menu-icon::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text-100); border-radius: 2px;
}
.nav-menu-icon::before { top: -6px; }
.nav-menu-icon::after { top: 6px; }

.nav-drawer-close {
  display: none;
  align-self: flex-end;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 8px;
  background: transparent; border: 1px solid var(--border-interactive);
  border-radius: var(--radius-sm); color: var(--text-100); font-size: 22px;
  line-height: 1; cursor: pointer;
}
.nav-drawer-close:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.nav-drawer-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity 0.25s ease;
}
.nav-drawer-backdrop.open { display: block; opacity: 1; }

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 200px 24px 120px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  /* Grilla técnica neutra (pizarra de investigación), no un blob de gradiente. */
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: center -20px;
  -webkit-mask-image: radial-gradient(ellipse 900px 500px at 50% 0%, black 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 900px 500px at 50% 0%, black 40%, transparent 85%);
}
.hero-content { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--brand-red-line);
  background: var(--brand-red-soft);
  color: #fca5a5;
}
.hero-tag::before { content: '//'; color: var(--brand-red); font-weight: 700; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-100);
}
.gradient-text {
  /* Rojo sólido: nombra la amenaza con el mismo color que la severidad real. */
  color: var(--brand-red);
}
.hero-subtitle {
  font-size: 18px; color: var(--text-400); max-width: 720px;
  margin: 0 auto 44px; line-height: 1.65;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-free-microcopy { font-size: 12.5px; color: var(--text-500); margin-top: 14px; }

/* ── Botones — sistema premium ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; text-decoration: none;
  border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--action), #e5e7eb); color: var(--action-ink);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.btn-primary:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1); }
.btn-primary:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
.btn-arrow { transition: transform 0.25s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(6px); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; cursor: pointer; text-decoration: none;
  border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  background: rgba(255, 255, 255, 0.03); color: var(--text-200);
  border: 1px solid var(--border-interactive);
  transition: all 0.2s ease;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--brand-red); color: var(--text-100); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.btn-secondary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.btn-secondary:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }

/* ── Layout Sections ──────────────────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.alt-bg { background-color: var(--bg-section); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

/* Header editorial: alineado a la izquierda con tick rojo (rompe la simetría
   centrada que traía todo el sitio). */
.section-header-b2b { text-align: left; max-width: 660px; margin: 0 0 52px; }
.section-title-b2b {
  font-size: 32px; font-weight: 800; color: var(--text-100);
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-title-b2b::before {
  content: ''; display: block; width: 38px; height: 3px;
  background: var(--brand-red); border-radius: 2px; margin-bottom: 20px;
}
.section-subtitle-b2b { font-size: 16px; color: var(--text-400); line-height: 1.6; }

/* ── Value Props — ficha técnica plana, sin lift ──────────────────────────── */
.props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.prop-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 40px 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.prop-card:hover { border-color: var(--brand-red-line); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); }
.prop-icon {
  margin-bottom: 20px; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--brand-red-soft); border: 1px solid var(--brand-red-line);
  color: var(--brand-red);
}
.prop-icon svg { width: 22px; height: 22px; }
.prop-card h3 { font-size: 17px; font-weight: 700; color: var(--text-100); margin-bottom: 10px; }
.prop-card p { font-size: 14px; color: var(--text-400); line-height: 1.6; }

/* ── El Costo de la Inacción (incident files) ─────────────────────────────── */
.horror-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.horror-card {
  background: var(--brand-red-soft); border: 1px solid var(--brand-red-line);
  border-radius: var(--radius-lg); padding: 36px 32px;
  border-top: 3px solid var(--brand-red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.horror-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(240, 72, 58, 0.1); }
.horror-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.horror-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-400); letter-spacing: 0.05em; font-family: var(--font-mono); }
.horror-loss { font-size: 14px; font-weight: 800; color: var(--critical); font-family: var(--font-mono); }
.horror-card h3 { font-size: 17px; font-weight: 700; color: var(--text-100); margin-bottom: 12px; }
.horror-card p { font-size: 13.5px; color: var(--text-400); line-height: 1.65; }

/* ── ROI Calculator ───────────────────────────────────────────────────────── */
.roi-container {
  display: grid; grid-template-columns: 1fr 400px; gap: 48px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 48px;
}
.roi-inputs { display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.roi-field { display: flex; flex-direction: column; gap: 14px; }
.roi-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-200); }
.roi-value { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--brand-cyan); }
.roi-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: var(--bg-input);
  border-radius: 3px; outline: none; cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-red); border: 3px solid var(--bg-card);
  transition: transform 0.1s, background-color 0.1s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.12); background: var(--brand-cyan); }
.roi-slider:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 4px; border-radius: 6px; }
.roi-slider::-moz-range-thumb {
  width: 16px; height: 16px; border: 3px solid var(--bg-card); border-radius: 50%;
  background: var(--brand-red); cursor: pointer; transition: transform 0.1s;
}
.roi-slider::-moz-range-thumb:hover { transform: scale(1.12); background: var(--brand-cyan); }
.slider-bounds { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-500); font-weight: 500; margin-top: -4px; }

.roi-result-card {
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.roi-result-title { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-400); letter-spacing: 0.1em; margin-bottom: 16px; }
.roi-result-text { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--text-100); line-height: 1.3; margin-bottom: 24px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.roi-disclaimer { font-size: 11px; color: var(--text-400); margin-bottom: 24px; }
.roi-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px; background: linear-gradient(135deg, var(--brand-red), #d93b2e); color: #fff;
  text-decoration: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  border: none; box-shadow: 0 4px 12px rgba(240, 72, 58, 0.3);
  transition: all 0.2s ease;
}
.roi-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(240, 72, 58, 0.4); }
.roi-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(240, 72, 58, 0.3); }
.roi-btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* ── Comparative Table ────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); }
.comparative-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; min-width: 600px; }
.comparative-table th, .comparative-table td { padding: 22px 28px; border-bottom: 1px solid var(--border-subtle); }
.comparative-table th { font-size: 15px; font-weight: 700; color: var(--text-100); background: rgba(0, 0, 0, 0.2); }
.comparative-table td strong { color: var(--text-200); }
.comparative-table td { color: var(--text-300); }
.comparative-table td.highlight, .comparative-table th.highlight {
  background: var(--brand-red-soft); color: var(--text-100); font-weight: 500;
  border-left: 1px solid var(--brand-red-line); border-right: 1px solid var(--brand-red-line);
}
.comparative-table tr:last-child td { border-bottom: none; }

/* ── Pricing Tiers — único bloque con elevación/movimiento reservado ──────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: stretch; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 44px 32px;
  display: flex; flex-direction: column;
  position: relative; box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--border-interactive); }
.pricing-card.featured {
  border: 1px solid var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red-line), var(--shadow-card);
}
.featured-badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--brand-red); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}
.price-header { margin-bottom: 28px; }
.price-header h3 { font-size: 19px; font-weight: 800; color: var(--text-100); margin-bottom: 12px; }
.price { font-family: var(--font-mono); font-size: 38px; font-weight: 700; color: var(--text-100); line-height: 1.1; margin-bottom: 8px; }
.price span { font-size: 14px; color: var(--text-400); font-weight: 500; }
.price-header p { font-size: 13px; color: var(--text-400); }

.price-features { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 13px; flex-grow: 1; }
.price-features li { font-size: 13.5px; color: var(--text-300); display: flex; align-items: flex-start; gap: 10px; }
.price-features li::before { content: '✓'; color: var(--low); font-weight: bold; flex-shrink: 0; }

.price-footnote { font-size: 11px; color: var(--text-400); margin-top: 14px; line-height: 1.5; }

.price-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 24px; border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.2s ease;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-interactive); color: var(--text-200);
}
.pricing-card.featured .price-btn { background: linear-gradient(135deg, var(--brand-red), #d93b2e); border: none; color: #fff; box-shadow: 0 4px 12px rgba(240, 72, 58, 0.3); }
.price-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; transform: translateY(-2px); }
.pricing-card.featured .price-btn:hover { background: linear-gradient(135deg, #d93b2e, #b83126); box-shadow: 0 6px 16px rgba(240, 72, 58, 0.4); }
.price-btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* ── Social Proof & Trust Badges ────────────────────────────────────────── */
.social-proof-header { text-align: left; margin-bottom: 36px; }
.lead-text { font-size: 15px; font-weight: 600; color: var(--text-300); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }

.trust-badges {
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  margin-bottom: 56px; padding: 24px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.badge-item { font-size: 13px; font-weight: 600; color: var(--text-300); display: flex; align-items: center; gap: 10px; }
.badge-item svg { width: 17px; height: 17px; color: var(--brand-cyan); flex-shrink: 0; }

/* ── Frictionless Integration — panel plano (sin radial glow) ─────────────── */
.integration-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-top: 3px solid var(--brand-red);
  border-radius: var(--radius-xl);
  padding: 56px; text-align: left;
}
.integration-banner h2 { font-size: 28px; font-weight: 800; color: var(--text-100); margin-bottom: 16px; letter-spacing: -0.02em; }
.integration-banner > p { font-size: 15px; color: var(--text-400); max-width: 620px; margin: 0 0 44px; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; text-align: left; }
.integration-icon { width: 22px; height: 22px; color: var(--brand-red); margin-bottom: 12px; }
.integration-feature h4 { font-size: 16px; font-weight: 700; color: var(--text-100); margin-bottom: 10px; }
.integration-feature p { font-size: 13px; color: var(--text-400); line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  padding: 48px 24px; text-align: center;
  font-size: 12px; color: var(--text-500);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}
.footer a:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: 2px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .roi-container { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .roi-result-card { padding: 32px; }
}

@media (max-width: 640px) {
  .header-inner { height: 68px; padding: 0 16px; }

  .nav {
    position: fixed; top: 0; right: 0; z-index: 200;
    width: min(320px, 85vw); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg-card); border-left: 1px solid var(--border-subtle);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    padding: 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav-link {
    width: 100%; padding: 12px 4px; font-size: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .lang-switcher { width: 100%; margin-top: 8px; }
  .btn-login-nav { width: 100%; text-align: center; margin-top: 8px; }
  .nav-menu-btn { display: inline-flex; }
  .nav-drawer-close { display: inline-flex; }

  .hero { padding-top: 136px; }
  .section { padding: 60px 0; }
  .integration-banner { padding: 32px; }
  .trust-badges { gap: 20px; }
}

/* ── Demo interactiva pública ────────────────────────────────────────────────── */
.demo-rule-box {
  max-width: 720px; margin: 0 auto 40px; padding: 20px 24px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.demo-rule-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-500); margin-bottom: 8px; }
.demo-rule-text { font-size: 14px; color: var(--text-300); line-height: 1.6; font-family: var(--font-mono); }

.demo-summary-card {
  max-width: 900px; margin: 0 auto 32px; padding: 24px 28px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.demo-summary-text { font-size: 14px; color: var(--text-300); line-height: 1.6; flex: 1; min-width: 240px; }
.demo-leakage-badge {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--critical);
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.2);
  padding: 12px 20px; border-radius: var(--radius-md); white-space: nowrap;
}

.demo-findings-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.demo-finding-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px 32px;
}
.demo-finding-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.demo-finding-title { font-size: 16px; font-weight: 700; color: var(--text-100); }
.demo-severity-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid;
}
.demo-severity-badge.critical { color: var(--critical); border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }
.demo-severity-badge.high { color: var(--high); border-color: rgba(251, 146, 60, 0.3); background: rgba(251, 146, 60, 0.08); }
.demo-severity-badge.medium { color: var(--medium); border-color: rgba(250, 204, 21, 0.3); background: rgba(250, 204, 21, 0.08); }
.demo-severity-badge.low { color: var(--low); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }
.demo-finding-desc { font-size: 14px; color: var(--text-400); line-height: 1.6; margin-bottom: 16px; }
.demo-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-500); margin: 16px 0 6px; }
.demo-abuse-path, .demo-sql-block {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-300);
  background: var(--bg-input); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.7; white-space: pre-wrap; overflow-x: auto;
}
.demo-patch-text { font-size: 13.5px; color: var(--text-300); line-height: 1.7; white-space: pre-wrap; }
.demo-cta-row { text-align: center; margin-top: 40px; }

/* ── Form "Hablemos" (spec 08 §1: CTA de POC) ────────────────────────────────── */
.contact-form {
  max-width: 560px; margin: 0 auto; padding: 40px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 18px;
}
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: 12px; font-weight: 700; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.03em; }
.contact-field input, .contact-field select {
  padding: 12px 14px; background: var(--bg-input); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); color: var(--text-100); font-size: 14px; font-family: var(--font-sans);
}
.contact-field input:focus, .contact-field select:focus { outline: none; border-color: var(--border-focus); }
.contact-poc-summary {
  font-size: 13px; color: var(--text-300); line-height: 1.6; padding: 14px 16px;
  background: var(--brand-red-soft); border: 1px solid var(--brand-red-line); border-radius: var(--radius-sm);
}
.contact-status { font-size: 13px; text-align: center; min-height: 18px; }
.contact-status.success { color: var(--low); }
.contact-status.error { color: var(--critical); }

/* ── Case study placeholder (spec 08 §1: honesto, sin inventar logos/métricas) ── */
.case-study-placeholder {
  max-width: 640px; margin: 0; padding: 36px;
  background: var(--bg-card); border: 1px dashed var(--border-interactive);
  border-radius: var(--radius-lg); text-align: left;
}
.case-study-placeholder p { font-size: 14px; color: var(--text-400); line-height: 1.7; }

/* ── FAQ (GEO / answer-engine friendly, acordeón nativo sin JS) ────────────── */
.faq-list { max-width: 760px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--brand-red-line); }
.faq-question {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-size: 16px; font-weight: 600; color: var(--text-100);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.faq-question::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--brand-red);
  line-height: 1; transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { font-size: 15px; color: var(--text-300); line-height: 1.7; }
.faq-answer strong { color: var(--text-100); }
