/* ============================================================
   RECLICKA — Estilos Globales v3 (tema claro total, estilo SaaS)
   Plus Jakarta Sans (display) + Inter (body)
   Hero claro (#FFFFFF) · Secciones claras (#FFFFFF / #F4F7FF)
   Acento: #2563EB (azul profesional) — estilo ClickCease
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* --- Variables --- */
:root {
  /* Fondos */
  --bg-hero:     #080D1A;        /* hero y footer — oscuro */
  --bg-base:     #FFFFFF;        /* secciones principales */
  --bg-alt:      #F4F7FF;        /* secciones alternas */
  --bg-card:     #FFFFFF;

  /* Acento */
  --accent:      #2563EB;        /* azul primario */
  --accent-dark: #1D4ED8;        /* hover botón */
  --accent-soft: #EFF6FF;        /* fondos de badge/pill */
  --accent-2:    #6366F1;        /* gradiente / secundario */

  /* Textos */
  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-light:     #94A3B8;     /* sobre fondo oscuro */
  --text-on-dark:   #F1F5F9;

  /* Bordes y sombras */
  --border:       rgba(15, 23, 42, 0.1);
  --border-hover: rgba(37, 99, 235, 0.35);
  --shadow-card:  0 1px 3px rgba(15,23,42,0.06), 0 6px 20px rgba(15,23,42,0.06);
  --shadow-hover: 0 4px 24px rgba(37,99,235,0.14);

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Misc */
  --radius:    10px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }

/* ============================================================
   CONTENEDOR
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0;
}

h1 { font-size: clamp(26px, 2.8vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.2vw, 34px); font-weight: 700; }
h3 { font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; }

p { color: var(--text-secondary); line-height: 1.7; }

.text-accent   { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Primario — azul sólido */
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(37,99,235,0.2), 0 4px 12px rgba(37,99,235,0.15);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.45s ease;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

/* Secundario — borde azul */
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* Alias para hero claro — usa mismos estilos que los estándar */
.btn-primary-dark {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,99,235,0.25);
}
.btn-primary-dark:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  font-weight: 600;
}
.btn-secondary-dark:hover {
  background: var(--bg-alt);
  border-color: rgba(15,23,42,0.2);
}

.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============================================================
   NAVBAR — siempre blanco (estilo ClickCease)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(15,23,42,0.08);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links > li > a:hover { color: var(--text-primary); background: var(--bg-alt); }

.nav-cta { flex-shrink: 0; }

/* Dropdown */
.has-dropdown { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
  padding: 6px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 300;
}

/* Flecha del dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-dropdown a .dd-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}
.nav-mobile a {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

/* ============================================================
   BADGE / PILL
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* Badge en secciones claras */
.badge-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 12px; color: var(--text-primary); }
.section-header p { font-size: 15px; }

/* ============================================================
   HERO — fondo claro (estilo ClickCease)
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}

/* Gradiente suave azul en esquinas */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 2% 55%, rgba(37,99,235,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 92% 10%, rgba(99,102,241,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 30% 40% at 80% 90%, rgba(37,99,235,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Grid de puntos sutil sobre fondo blanco */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { max-width: 560px; }

.hero-content h1 {
  margin-bottom: 18px;
  color: var(--text-primary);
  line-height: 1.18;
}

.hero-content h1 span { color: var(--accent); }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-platforms {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-platforms-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.hero-platforms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.platform-pill i { flex-shrink: 0; display: flex; }

/* Brand-colored pill variants */
.platform-pill--idealo    { color: #B25800; background: rgba(244,129,31,0.08); border-color: rgba(244,129,31,0.25); }
.platform-pill--idealo:hover { background: rgba(244,129,31,0.16); border-color: rgba(244,129,31,0.4); }

.platform-pill--google    { color: #1A56C8; background: rgba(66,133,244,0.08); border-color: rgba(66,133,244,0.25); }
.platform-pill--google:hover { background: rgba(66,133,244,0.16); border-color: rgba(66,133,244,0.4); }

.platform-pill--trovit    { color: #14487A; background: rgba(26,82,118,0.07); border-color: rgba(26,82,118,0.22); }
.platform-pill--trovit:hover { background: rgba(26,82,118,0.14); border-color: rgba(26,82,118,0.38); }

.platform-pill--kelkoo    { color: #C03A00; background: rgba(255,85,0,0.07); border-color: rgba(255,85,0,0.22); }
.platform-pill--kelkoo:hover { background: rgba(255,85,0,0.14); border-color: rgba(255,85,0,0.38); }

.platform-pill--rastreator { color: #006A96; background: rgba(0,153,204,0.07); border-color: rgba(0,153,204,0.22); }
.platform-pill--rastreator:hover { background: rgba(0,153,204,0.14); border-color: rgba(0,153,204,0.38); }

.platform-pill--habitaclia { color: #B84200; background: rgba(255,102,0,0.07); border-color: rgba(255,102,0,0.22); }
.platform-pill--habitaclia:hover { background: rgba(255,102,0,0.14); border-color: rgba(255,102,0,0.38); }

.platform-pill--fotocasa   { color: #A8260A; background: rgba(226,58,10,0.07); border-color: rgba(226,58,10,0.22); }
.platform-pill--fotocasa:hover { background: rgba(226,58,10,0.14); border-color: rgba(226,58,10,0.38); }

/* Visual canvas — card clara sobre fondo blanco */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas-wrap {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(37,99,235,0.08), 0 2px 8px rgba(15,23,42,0.06);
}

#heroCanvas {
  width: 100%;
  height: 100%;
  background: transparent;
}

/* ============================================================
   MÉTRICAS
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-item {
  background: var(--bg-base);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.metric-item:hover { background: var(--accent-soft); }

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metrics-caption {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================================
   CALCULADORA
   ============================================================ */
.calc-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 44px;
  max-width: 860px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.calc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--transition);
  margin-bottom: 20px;
}
.calc-input:focus, .calc-select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.calc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  cursor: pointer;
}
.calc-select option { background: #fff; }

.calc-result-box {
  background: var(--accent-soft);
  border: 1.5px solid rgba(37,99,235,0.15);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.calc-result-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.calc-result-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.calc-result-annual {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-progress-wrap { margin: 20px 0; }
.calc-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.calc-progress-bar {
  height: 7px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.calc-progress-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #F97316, #EF4444);
  border-radius: 100px;
  transition: width 0.5s ease;
}
.calc-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 14px;
}

/* ============================================================
   CÓMO FUNCIONA — 3 PASOS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.step-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}
.step-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.step-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.step-card p  { font-size: 14px; line-height: 1.7; }

/* ============================================================
   PLATAFORMAS GRID
   ============================================================ */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

.platform-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.platform-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.platform-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.platform-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.platform-badge-star {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 100px;
  color: var(--accent);
  font-weight: 600;
}
.platform-card h3 { font-size: 15px; margin-bottom: 6px; color: var(--text-primary); }
.platform-card p  { font-size: 13px; margin-bottom: 14px; line-height: 1.5; }
.platform-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.platform-card:hover .platform-link { gap: 8px; }

/* ============================================================
   COMPARATIVA — card grid
   ============================================================ */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(15,23,42,0.07);
  margin-bottom: 44px;
  background: var(--bg-base);
}

.cmp-grid {
  display: grid;
  grid-template-columns: 2fr 1.15fr 1.15fr;
}

/* Cabecera */
.cmp-header {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}
.cmp-hcol {
  padding: 14px 20px;
  display: flex;
  align-items: center;
}
.cmp-hcol--label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cmp-hcol--bad {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: rgba(239,68,68,0.04);
  justify-content: center;
}
.cmp-hcol--good {
  background: rgba(37,99,235,0.05);
  justify-content: center;
}
.cmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cmp-badge--bad  { color: #DC2626; }
.cmp-badge--good { color: var(--accent); }

/* Filas */
.cmp-row {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.cmp-row:hover { background: rgba(37,99,235,0.015); }
.cmp-row--last { border-bottom: none; }

.cmp-feature {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.cmp-icon {
  font-size: 17px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cmp-col-bad,
.cmp-col-good {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  text-align: center;
  line-height: 1.4;
}
.cmp-col-bad {
  background: rgba(239,68,68,0.025);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cmp-col-good {
  background: rgba(37,99,235,0.03);
}

.cmp-value-bad {
  color: #DC2626;
}
.cmp-value-bad::before {
  content: '✕';
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  color: #DC2626;
}
.cmp-value-good {
  color: var(--accent);
  font-weight: 600;
}
.cmp-value-good::before {
  content: '✓';
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--accent);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}
.advantage-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.advantage-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}
.advantage-icon { font-size: 24px; margin-bottom: 10px; }
.advantage-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--text-primary); }
.advantage-card p  { font-size: 13px; line-height: 1.7; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
}
.testimonial-name    { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.testimonial-company { font-size: 12px; color: var(--text-secondary); }
.testimonial-quote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-quote::before {
  content: '"';
  color: var(--accent);
  font-size: 20px;
  font-family: var(--font-display);
  line-height: 0;
  vertical-align: -8px;
  margin-right: 3px;
}
.testimonial-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.testimonial-platform { font-size: 12px; color: var(--text-secondary); }

/* ============================================================
   FAQ ACORDEÓN
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  border-color: var(--accent);
  color: var(--accent);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

/* ============================================================
   CTA FINAL — oscuro como el hero
   ============================================================ */
#cta-final {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-hero);
}

#cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(37,99,235,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(99,102,241,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-bg-number {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 800;
  color: #fff;
  opacity: 0.03;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

#cta-final .container { position: relative; z-index: 1; }
#cta-final h2 { color: #fff; margin-bottom: 14px; }
#cta-final .subtitle { font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 36px; }

/* ============================================================
   FOOTER — oscuro
   ============================================================ */
footer {
  background: #0B1120;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand .nav-logo { margin-bottom: 14px; color: #fff; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 10px; line-height: 1.7; }
.footer-email { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; }
.footer-email:hover { color: #fff; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BANNER SUPERIOR
   ============================================================ */
.scroll-banner {
  position: fixed;
  top: -64px; left: 0; right: 0;
  z-index: 200;
  background: var(--accent);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: top 0.35s ease;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}
.scroll-banner.visible { top: 0; }
.scroll-banner a { color: #fff; font-weight: 700; white-space: nowrap; text-decoration: underline; }
.scroll-banner-close {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 4px 6px;
}
.scroll-banner-close:hover { color: #fff; }

/* ============================================================
   BOTÓN FLOTANTE MOBILE
   ============================================================ */
.mobile-cta-float {
  display: none;
  position: fixed;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  width: calc(100% - 32px);
  max-width: 380px;
}
.mobile-cta-float .btn {
  width: 100%;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,99,235,0.3);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: 0.6; }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* Alias por compatibilidad */
.breadcrumb-light { color: var(--text-secondary); }
.breadcrumb-light a { color: var(--text-secondary); }
.breadcrumb-light a:hover { color: var(--accent); }
.breadcrumb-light .current { color: var(--text-primary); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-hero {
  padding: 140px 0 72px;
  text-align: center;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 80%, rgba(37,99,235,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(37,99,235,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.contact-hero h1 { color: var(--text-primary); margin-bottom: 14px; position: relative; z-index: 1; }
.contact-hero p   { position: relative; z-index: 1; color: var(--text-secondary); }

.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px;
  box-shadow: 0 4px 32px rgba(15,23,42,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 13px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-group input.valid   { border-color: #22C55E; }
.form-group input.invalid { border-color: #EF4444; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 13px) center;
  cursor: pointer;
  padding-right: 36px;
}
.form-group select option { background: #fff; }
.form-group textarea { resize: vertical; min-height: 96px; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer; padding: 0; border: none;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.privacy-check input { flex-shrink: 0; margin-top: 2px; }
.privacy-check a { color: var(--accent); }

.form-success { display: none; text-align: center; padding: 44px 0; }
.form-success h3 { font-size: 24px; color: var(--accent); margin-bottom: 10px; }
.form-success p { font-size: 15px; }
.form-note { text-align: center; margin-top: 14px; font-size: 12px; color: var(--text-light); }

/* ============================================================
   LANDING DE PLATAFORMA
   ============================================================ */
.platform-hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: 130px 0 72px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.platform-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 5% 60%, rgba(37,99,235,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(99,102,241,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.platform-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 90%);
}
.platform-hero .container { position: relative; z-index: 1; }
.platform-hero h1 { max-width: 680px; margin-bottom: 18px; color: var(--text-primary); }
.platform-hero .subtitle { max-width: 560px; font-size: 15px; margin-bottom: 32px; color: var(--text-secondary); }

/* Tipos de fraude */
.fraud-types-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 44px;
}
.fraud-type-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.fraud-type-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.fraud-type-icon {
  width: 38px; height: 38px;
  background: #FEF2F2;
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
  margin-bottom: 12px;
}
.fraud-type-card h3 { font-size: 14px; margin-bottom: 6px; }
.fraud-type-card p  { font-size: 13px; }

/* Sección stats de plataforma */
.platform-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-bottom: 44px;
}
.platform-stat {
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-base);
}
.platform-stat.danger {
  background: #FFF5F5;
  border-color: rgba(239,68,68,0.15);
}
.platform-stat.success {
  background: var(--accent-soft);
  border-color: rgba(37,99,235,0.15);
}
.platform-stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.platform-stat.danger .platform-stat-number { color: #EF4444; }
.platform-stat.success .platform-stat-number { color: var(--accent); }
.platform-stat p { font-size: 13px; line-height: 1.5; }

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-hero);
}
.error-number {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 180px);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  display: block;
  margin-bottom: -16px;
}
.error-page h1  { color: #fff; margin-bottom: 14px; }
.error-page > div > p { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE — TABLET / MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-platforms-list { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }

  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid   { grid-template-columns: 1fr; gap: 14px; }
  .platforms-grid { grid-template-columns: repeat(2,1fr); }
  .advantages-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .calc-grid { grid-template-columns: 1fr; gap: 28px; }
  .fraud-types-grid { grid-template-columns: 1fr 1fr; }
  .platform-stats { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .platforms-grid { grid-template-columns: 1fr; }
  .cmp-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .cmp-feature { padding: 12px 8px; font-size: 12px; gap: 7px; }
  .cmp-icon { width: 26px; height: 26px; font-size: 14px; }
  .cmp-hcol { padding: 12px 8px; }
  .cmp-badge { font-size: 11px; }
  .cmp-col-bad, .cmp-col-good { padding: 12px 8px; font-size: 12px; }
  .calc-card { padding: 24px 18px; }
  .contact-form-wrap { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .mobile-cta-float { display: block; }
  .fraud-types-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
