/* ==============================================================================
   ZENTARY — SISTEMA VISUAL "PLAYFUL GAMIFIED SAAS" (sitio web)
   Paleta oficial de marca (no reemplazar): #1877F2 | #6203FF | #FFCF36 | #2A0A73 | #0B3C91 | #0A0F1F
   Solo se usan variaciones tonales y transparencias de estos colores.
   Firma visual: tarjetas redondeadas con "borde 3D" inferior, botones que se hunden al presionar,
   iconos en insignias con relieve y movimientos rápidos y discretos.
   ============================================================================== */

:root {
  /* Marca */
  --obsidian: #0A0F1F;
  --indigo: #2A0A73;
  --violet: #6203FF;
  --blue: #1877F2;
  --navy: #0B3C91;
  --gold: #FFCF36;
  --gold-deep: #F59E0B;
  --success: #10B981;
  --success-deep: #047857;
  --danger: #EF4444;

  /* Capas oscuras (de atrás hacia adelante) */
  --bg: var(--obsidian);
  --bg-raised: #10162B;
  --card: #141A2E;
  --card-high: #1B2240;
  --card-violet: #1E1240;

  /* Líneas y tintes */
  --line: rgba(255, 255, 255, 0.08);
  --line-violet: rgba(98, 3, 255, 0.32);
  --tint-blue: rgba(24, 119, 242, 0.16);
  --tint-violet: rgba(98, 3, 255, 0.18);
  --tint-gold: rgba(255, 207, 54, 0.14);
  --tint-success: rgba(16, 185, 129, 0.14);

  /* Texto */
  --text: #FFFFFF;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  --text-blue: #93C5FD;
  --text-violet: #C4B5FD;
  --text-success: #34D399;

  /* Tipografía (identidad actual: Outfit + Inter) */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciado y radios */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-xxl: 32px; --r-pill: 999px;

  /* Elevaciones */
  --shadow-low: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-mid: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 14px 40px -10px rgba(98, 3, 255, 0.55);

  /* Movimiento */
  --fast: 0.14s cubic-bezier(0.2, 0.8, 0.2, 1);
  --base: 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  --slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  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; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.01em; }
strong { color: var(--text); font-weight: 700; }

.text-gold { color: var(--gold); }
.text-gradient {
  background: linear-gradient(100deg, var(--gold) 0%, #FFE07A 45%, var(--text-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Formas decorativas derivadas de la paleta */
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); z-index: 0; }
.blob-violet { background: rgba(98, 3, 255, 0.35); }
.blob-blue { background: rgba(24, 119, 242, 0.28); }
.blob-gold { background: rgba(255, 207, 54, 0.12); }

/* ------------------------------------------------------------------ Componentes */
.overline {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--tint-gold); border: 1px solid rgba(255, 207, 54, 0.4);
  color: var(--gold); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em;
}
.chip-violet { background: var(--tint-violet); border-color: var(--line-violet); color: var(--text-violet); }
.chip-blue { background: var(--tint-blue); border-color: rgba(24, 119, 242, 0.5); color: var(--text-blue); }
.chip-success { background: var(--tint-success); border-color: rgba(16, 185, 129, 0.5); color: var(--text-success); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* Botón con relieve 3D: la sombra sólida inferior se "comprime" al presionar */
.btn {
  --btn-fill: var(--blue); --btn-edge: var(--navy); --btn-text: #FFFFFF;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-lg);
  font-family: var(--font-heading); font-size: 1rem; font-weight: 800; letter-spacing: 0.01em;
  color: var(--btn-text); background: var(--btn-fill);
  box-shadow: 0 5px 0 var(--btn-edge);
  transform: translateY(0);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn svg { flex-shrink: 0; }
.btn-gold { --btn-fill: var(--gold); --btn-edge: var(--gold-deep); --btn-text: var(--obsidian); }
.btn-violet { --btn-fill: var(--violet); --btn-edge: var(--indigo); }
.btn-success { --btn-fill: var(--success); --btn-edge: var(--success-deep); --btn-text: var(--obsidian); }
.btn-soft {
  background: var(--tint-violet); color: var(--text); border: 1.5px solid var(--line-violet);
  box-shadow: 0 4px 0 var(--indigo);
}
.btn-soft:active { box-shadow: 0 1px 0 var(--indigo); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; border-radius: var(--r-xl); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; border-radius: var(--r-md); }
.btn-block { width: 100%; }

/* Insignia de icono con relieve */
.icon-badge {
  --ib-fill: var(--blue); --ib-edge: var(--navy);
  width: 52px; height: 52px; border-radius: 17px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ib-fill); color: #FFFFFF; box-shadow: 0 4px 0 var(--ib-edge);
}
.icon-badge svg { width: 26px; height: 26px; }
.ib-violet { --ib-fill: var(--violet); --ib-edge: var(--indigo); }
.ib-gold { --ib-fill: var(--gold); --ib-edge: var(--gold-deep); color: var(--obsidian); }
.ib-success { --ib-fill: var(--success); --ib-edge: var(--success-deep); color: var(--obsidian); }
.icon-badge.sm { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 3px 0 var(--ib-edge); }
.icon-badge.sm svg { width: 20px; height: 20px; }

/* Tarjeta base */
.card {
  position: relative; background: var(--card);
  border: 1.5px solid var(--line-violet); border-bottom: 6px solid var(--indigo);
  border-radius: var(--r-xl); box-shadow: var(--shadow-low);
  transition: transform var(--base), border-color var(--base), box-shadow var(--base);
}
.card-hover:hover { transform: translateY(-6px); border-color: rgba(98, 3, 255, 0.6); box-shadow: var(--shadow-glow); }

/* Secciones */
section { position: relative; padding: var(--s8) 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto var(--s7); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 900; }
.section-description { color: var(--text-soft); font-size: 1.06rem; }

/* Entrada al hacer scroll (se activa con JS; sin JS todo queda visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow), transform var(--slow); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Navegación */
.navbar {
  position: fixed; inset: 14px 0 auto 0; z-index: 100; padding: 0 16px;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border-radius: var(--r-xl);
  background: rgba(16, 22, 43, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--line); transition: border-color var(--base), background var(--base), box-shadow var(--base);
}
.navbar.scrolled .nav-container { background: rgba(16, 22, 43, 0.94); border-color: var(--line-violet); box-shadow: var(--shadow-mid); }
.brand-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.06em; }
.brand-logo-img { height: 38px; width: 38px; border-radius: 11px; border: 2px solid var(--gold); object-fit: cover; }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-link { display: block; white-space: nowrap; padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.92rem; font-weight: 600; color: var(--text-soft); transition: color var(--fast), background var(--fast); }
.nav-link:hover { color: var(--text); background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn {
  display: none; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--tint-violet); border: 1.5px solid var(--line-violet); color: var(--gold);
  align-items: center; justify-content: center;
}
.mobile-nav-drawer {
  position: fixed; top: 86px; left: 16px; right: 16px; z-index: 99;
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  background: var(--card); border: 1.5px solid var(--line-violet); border-bottom: 6px solid var(--indigo);
  border-radius: var(--r-xl); box-shadow: var(--shadow-mid);
  opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; visibility: hidden;
  transition: opacity var(--base), transform var(--base), visibility var(--base);
}
.mobile-nav-drawer.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.mobile-nav-link { padding: 12px 14px; border-radius: var(--r-md); font-weight: 700; color: var(--text-soft); }
.mobile-nav-link:hover { background: var(--line); color: var(--text); }
.drawer-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

/* ------------------------------------------------------------------ Hero */
.hero-section { padding-top: 150px; padding-bottom: var(--s8); overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s7); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 900; letter-spacing: -0.025em; }
.hero-subtitle { color: var(--text-soft); font-size: 1.12rem; max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: var(--s3); }
.stat {
  padding: 14px 12px; border-radius: var(--r-lg); background: var(--card);
  border: 1.5px solid var(--line); border-bottom: 4px solid var(--indigo); text-align: left;
}
.stat-value { display: block; font-family: var(--font-heading); font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 900; color: var(--gold); line-height: 1.2; white-space: nowrap; }
.stat-label { display: block; font-size: 0.76rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; line-height: 1.35; }

/* Teléfono con la app (vista previa del rediseño) */
.phone-stage { position: relative; display: flex; justify-content: center; width: fit-content; margin: 0 auto; }
.phone {
  position: relative; width: 290px; max-width: 100%; aspect-ratio: 9 / 16.5;
  border-radius: 44px; padding: 12px; background: #05080F;
  border: 2px solid var(--card-high); box-shadow: 0 30px 80px -20px rgba(98, 3, 255, 0.6), 0 0 0 8px rgba(255, 255, 255, 0.03);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.app-header {
  position: relative; overflow: hidden; padding: 26px 16px 18px; background: var(--indigo);
  border-bottom: 3px solid var(--violet); border-radius: 0 0 24px 24px;
}
.app-header .blob { z-index: 0; }
.app-hello { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.app-logo { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--gold); }
.app-overline { font-size: 0.55rem; font-weight: 900; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; }
.app-name { font-family: var(--font-heading); font-weight: 900; font-size: 1.02rem; }
.app-unit { position: relative; z-index: 1; display: inline-flex; margin-top: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(10, 15, 31, 0.45); border: 1px solid rgba(255, 207, 54, 0.4); color: var(--gold); font-size: 0.6rem; font-weight: 800; }
.app-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-tile { padding: 10px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line-violet); border-bottom: 4px solid var(--indigo); }
.app-tile .icon-badge { width: 30px; height: 30px; border-radius: 10px; box-shadow: 0 2px 0 var(--ib-edge); }
.app-tile .icon-badge svg { width: 16px; height: 16px; }
.app-tile b { display: block; font-family: var(--font-heading); font-size: 0.74rem; margin-top: 7px; }
.app-tile small { display: block; font-size: 0.56rem; color: var(--text-muted); }
.app-pass { padding: 10px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line-violet); border-bottom: 4px solid var(--navy); }
.app-pass-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.app-pass-top b { font-family: var(--font-heading); font-size: 0.78rem; }
.mini-badge { padding: 2px 7px; border-radius: var(--r-pill); font-size: 0.52rem; font-weight: 900; background: var(--tint-blue); border: 1px solid var(--blue); color: var(--text-blue); }
.steps { display: flex; align-items: flex-start; margin-top: 10px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.5rem; font-weight: 700; color: var(--text-muted); }
.step i { width: 11px; height: 11px; border-radius: 50%; background: var(--card-high); border: 2px solid var(--line); }
.step.done { color: var(--text); }
.step.done i { background: var(--blue); border-color: var(--navy); }
.step-line { flex: 1; height: 3px; border-radius: 2px; margin-top: 4px; background: var(--line); }
.step-line.done { background: var(--blue); }
.app-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 14px; background: var(--bg-raised); border-top: 1px solid var(--line-violet); }
.app-nav span { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.app-nav span.on { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--navy); }
.app-nav svg { width: 15px; height: 15px; }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-lg); background: var(--card);
  border: 1.5px solid var(--line-violet); border-bottom: 4px solid var(--indigo); box-shadow: var(--shadow-mid);
  font-size: 0.82rem; font-weight: 700; animation: float 7s ease-in-out infinite;
}
.float-card small { display: block; color: var(--text-muted); font-weight: 600; font-size: 0.72rem; }
.float-card.fc-1 { left: -130px; bottom: 3%; animation-delay: -2s; }
.float-card.fc-2 { right: -70px; top: 9%; animation-delay: -4s; }

/* ------------------------------------------------------------------ Cómo funciona */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); counter-reset: how; position: relative; }
.how-card { padding: var(--s6) var(--s5); }
.how-num {
  position: absolute; top: -16px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--obsidian); font-family: var(--font-heading); font-weight: 900;
  box-shadow: 0 4px 0 var(--gold-deep);
}
.how-card h3 { font-size: 1.3rem; margin: var(--s4) 0 var(--s2); }
.how-card p { color: var(--text-soft); font-size: 0.96rem; }
.how-progress { margin-top: var(--s6); max-width: 760px; margin-left: auto; margin-right: auto; }
.how-progress .steps { margin-top: 0; }
.how-progress .step { font-size: 0.85rem; gap: 8px; }
.how-progress .step i { width: 22px; height: 22px; border-width: 3px; }
.how-progress .step-line { height: 5px; margin-top: 9px; }

/* ------------------------------------------------------------------ Plataformas (pestañas) */
.platform-tab-nav {
  display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%;
  margin: 0 auto var(--s6); padding: 6px; border-radius: var(--r-xl);
  background: var(--bg-raised); border: 1.5px solid var(--line);
}
.tab-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-lg);
  font-weight: 800; font-size: 0.95rem; color: var(--text-muted); white-space: nowrap;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.tab-btn svg { width: 18px; height: 18px; }
.tab-btn:hover { color: var(--text); }
.tab-btn:active { transform: scale(0.97); }
.tab-btn.active { background: var(--gold); color: var(--obsidian); box-shadow: 0 4px 0 var(--gold-deep); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.platform-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); padding: var(--s7); align-items: center; }
.platform-info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.platform-info h3 { font-size: 1.9rem; font-weight: 900; }
.platform-info > p { color: var(--text-soft); }
.platform-features { display: flex; flex-direction: column; gap: var(--s4); width: 100%; }
.feature-check-item { display: flex; gap: 14px; align-items: flex-start; }
.check-icon {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--success); color: var(--obsidian); font-weight: 900; box-shadow: 0 3px 0 var(--success-deep); font-size: 0.9rem;
}
.check-title { font-weight: 800; font-family: var(--font-heading); font-size: 1.05rem; }
.check-desc { color: var(--text-muted); font-size: 0.92rem; }
.platform-media-preview { position: relative; width: 100%; height: 160px; border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line); }
.platform-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.platform-media-tag { position: absolute; left: 12px; bottom: 12px; }

.mockup-wrapper { border-radius: var(--r-xl); overflow: hidden; background: var(--bg-raised); border: 1.5px solid var(--line-violet); border-bottom: 6px solid var(--navy); box-shadow: var(--shadow-mid); }
.mockup-header-bar { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--indigo); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: var(--text-soft); }
.mockup-body { padding: var(--s5); display: flex; flex-direction: column; gap: 12px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1.5px solid var(--line); border-bottom: 4px solid var(--indigo); }
.mock-row h4 { font-size: 1rem; }
.mock-row p { font-size: 0.82rem; color: var(--text-muted); }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-kpi { padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1.5px solid var(--line); border-bottom: 4px solid var(--indigo); }
.mock-kpi span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.mock-kpi b { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; }
.bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; border-radius: 8px; background: var(--success); }
.mock-log { padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1.5px solid var(--line); font-size: 0.78rem; color: var(--text-soft); display: flex; flex-direction: column; gap: 6px; }
.timer-pill { font-family: var(--font-heading); font-weight: 900; color: var(--gold); padding: 4px 10px; border-radius: var(--r-pill); background: var(--tint-gold); border: 1px solid rgba(255, 207, 54, 0.4); font-size: 0.85rem; }
.qr-box { display: inline-block; padding: 14px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 5px 0 var(--card-high); }

/* ------------------------------------------------------------------ Capacidades */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.feature-box { padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.feature-box h3 { font-size: 1.25rem; margin-top: var(--s2); }
.feature-box p { color: var(--text-soft); font-size: 0.95rem; }

/* ------------------------------------------------------------------ Operación en terreno */
.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.scenario-card { overflow: hidden; display: flex; flex-direction: column; }
.scenario-img-wrapper { position: relative; height: 200px; overflow: hidden; }
.scenario-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.scenario-card:hover .scenario-img { transform: scale(1.06); }
.scenario-pill { position: absolute; top: 14px; left: 14px; }
.scenario-content { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.scenario-content h3 { font-size: 1.2rem; }
.scenario-content p { color: var(--text-soft); font-size: 0.93rem; flex: 1; }
.scenario-footer { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--text-success); font-weight: 700; font-size: 0.86rem; }

/* ------------------------------------------------------------------ Calculadora */
.calc-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); padding: var(--s7); background: var(--card-violet); border-color: var(--violet); overflow: hidden; }
.calc-inputs { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.calc-inputs h2 { font-size: 2rem; font-weight: 900; }
.calc-inputs p { color: var(--text-soft); }
.range-control { width: 100%; margin-top: var(--s3); }
.range-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.range-label { font-weight: 700; color: var(--text-soft); }
.range-val-badge { font-family: var(--font-heading); font-weight: 900; color: var(--obsidian); background: var(--gold); padding: 4px 14px; border-radius: var(--r-pill); box-shadow: 0 3px 0 var(--gold-deep); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--line-violet); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); border: 4px solid var(--obsidian); box-shadow: 0 3px 0 var(--gold-deep); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid var(--obsidian); cursor: grab; }
.calc-results { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: var(--s5); border-radius: var(--r-xl); background: var(--bg-raised); border: 1.5px solid var(--line); }
.result-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); border-bottom: 4px solid var(--indigo); }
.result-title { color: var(--text-soft); font-weight: 600; font-size: 0.92rem; }
.result-metric { font-family: var(--font-heading); font-weight: 900; font-size: 1.25rem; color: var(--gold); text-align: right; }
.calc-note { font-size: 0.78rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ Demo */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: stretch; }
.demo-info-card, .demo-form-card { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.demo-info-card h3, .demo-form-card h3 { font-size: 1.7rem; font-weight: 900; }
.demo-info-card > p, .demo-form-card > p { color: var(--text-soft); }
.demo-perks-list { list-style: none; display: flex; flex-direction: column; gap: var(--s4); }
.demo-perk-item { display: flex; gap: 14px; align-items: flex-start; }
.demo-perk-item h4 { font-size: 1.05rem; margin-bottom: 2px; }
.demo-perk-item p { font-size: 0.9rem; color: var(--text-muted); }
.wa-note { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: var(--s4); border-radius: var(--r-lg); background: var(--tint-blue); border: 1px solid rgba(24, 119, 242, 0.45); font-size: 0.9rem; color: var(--text-soft); }
.wa-note a { color: var(--gold); font-weight: 800; text-decoration: underline; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.85rem; font-weight: 800; color: var(--text-soft); }
.form-control {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg-raised); border: 1.5px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 1rem; transition: border-color var(--fast), box-shadow var(--fast);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--tint-blue); }
select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
select.form-control option { background: var(--bg-raised); color: var(--text); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { text-align: center; margin-top: 12px; font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ------------------------------------------------------------------ FAQ */
.faq-list { max-width: 820px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1.5px solid var(--line); border-bottom: 4px solid var(--indigo); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--base); }
.faq-item.open { border-color: var(--line-violet); border-bottom-color: var(--violet); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; text-align: left; font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; }
.faq-chevron { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--tint-gold); color: var(--gold); transition: transform var(--base); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; color: var(--text-soft); transition: max-height var(--slow), padding var(--slow); }
.faq-item.open .faq-answer { max-height: 320px; padding: 0 20px 20px; }

/* ------------------------------------------------------------------ CTA y pie */
.cta-banner { position: relative; overflow: hidden; text-align: center; padding: var(--s8) var(--s6); background: var(--indigo); border: 2px solid var(--violet); border-bottom: 8px solid var(--violet); border-radius: var(--r-xxl); box-shadow: var(--shadow-glow); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; max-width: 760px; margin: 0 auto var(--s3); }
.cta-banner p { color: var(--text-soft); margin-bottom: var(--s5); }

.footer { padding: var(--s7) 0 var(--s5); border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s6); margin-bottom: var(--s6); }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: var(--s3); max-width: 340px; }
.footer-column h4 { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; transition: color var(--fast); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1220px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-subtitle { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .platform-card, .calc-card { grid-template-columns: 1fr; gap: var(--s6); padding: var(--s6); }
  .features-grid, .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: var(--s7) 0; }
  .nav-actions .btn { display: none; }
  .hero-section { padding-top: 120px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .features-grid, .scenarios-grid { grid-template-columns: 1fr; }
  .platform-tab-nav { justify-content: flex-start; overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
  .platform-card, .calc-card { padding: var(--s5) var(--s4); }
  .demo-info-card, .demo-form-card { padding: var(--s5) var(--s4); }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .cta-banner { padding: var(--s7) var(--s4); }
  .footer-top { grid-template-columns: 1fr; gap: var(--s5); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .float-card { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .navbar { padding: 0 10px; inset: 10px 0 auto 0; }
  .brand-logo { font-size: 1.15rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; white-space: normal; }
  .btn-lg { padding: 14px 20px; }
  .phone { width: 260px; }
  .tab-btn { padding: 10px 14px; font-size: 0.88rem; }
  .mock-row { flex-direction: column; align-items: flex-start; }
  .mock-row .btn { width: 100%; }
  .faq-list { padding: 0 16px; }
}
