/* ═══════════════════════════════════════════════════
   JND AI SYSTEMS — Landing Page Styles
   Sistema: dark mode premium, minimalista + tecnológico
═══════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --bg-base:       #0B0F14;
  --bg-surface:    #0F1520;
  --bg-elevated:   #131B27;
  --bg-card:       #111827;
  --bg-card-hover: #161f30;

  --accent:        #00D4FF;
  --accent-dim:    rgba(0, 212, 255, 0.12);
  --accent-glow:   rgba(0, 212, 255, 0.25);
  --accent-mid:    rgba(0, 212, 255, 0.06);

  --text-primary:  #F0F4F8;
  --text-secondary:#A8B8CC;
  --text-muted:    #637082;

  --border:        rgba(0, 212, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --nav-height: 100px;
  --max-width:  1200px;
  --container-padding: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* Aquí, no en body, para que position:fixed funcione correctamente */
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── UTILITIES ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 50%, #00D4FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0B0F14;
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}
.btn-primary:hover {
  background: #1DDEFF;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--accent-mid);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-sm  { font-size: 0.8125rem; padding: 0.5rem 1rem; }
.btn-lg  { font-size: 0.9375rem; padding: 0.75rem 1.5rem; }
.btn-xl  { font-size: 1rem; padding: 0.875rem 1.875rem; }

/* ─── SECTION SYSTEM ─── */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 15, 20, 0.95);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ─── Logo imagen navbar ─── */
.nav-logo-img {
  height: 109px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.35));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.55));
  transform: scale(1.04);
}

/* ─── Logo imagen footer ─── */
.footer-logo-img {
  height: 131px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  transition: filter 0.25s ease;
}

.footer-brand .nav-logo:hover .footer-logo-img {
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.5));
}

/* Clases legacy (por si quedan referencias) */
.logo-icon { display: flex; align-items: center; }
.logo-text  { display: none; }
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 700px; height: 500px;
  top: -100px; left: -200px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
}

.hero-glow-2 {
  width: 600px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(ellipse, rgba(0, 100, 180, 0.1) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ─── Dashboard Mockup ─── */
.hero-visual {
  position: relative;
}

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    var(--shadow-lg),
    0 0 60px rgba(0, 212, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-dots span:first-child { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #28CA41; }

.mockup-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex: 1;
  text-align: center;
}

.mockup-body {
  display: flex;
  height: 340px;
}

.mockup-sidebar {
  width: 130px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.mockup-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kpi-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpi-delta {
  font-size: 0.625rem;
  font-weight: 600;
}

.kpi-delta.up { color: #34D399; }

.mockup-chart {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  flex: 1;
}

.chart-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}

.chart-bar {
  flex: 1;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: background 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

.chart-bar.active {
  background: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.chart-bar span {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.mockup-activity {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  color: var(--text-muted);
  padding: 5px 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.activity-item span:nth-child(2) {
  flex: 1;
}

.activity-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
}

.activity-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot.green { background: #34D399; box-shadow: 0 0 6px #34D399; }
.activity-dot.blue  { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* Floating Tags */
.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(13, 21, 32, 0.9);
  border: 1px solid var(--border);
  padding: 0.5rem 0.875rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.tag-1 {
  top: 12%;
  right: -5%;
  animation: floatTag1 5s ease-in-out infinite;
}

.tag-2 {
  bottom: 18%;
  left: -8%;
  animation: floatTag2 6s ease-in-out infinite;
}

@keyframes floatTag1 {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50% { transform: translate(4px, -8px) rotate(0deg); }
}

@keyframes floatTag2 {
  0%, 100% { transform: translate(0, 0) rotate(1deg); }
  50% { transform: translate(-4px, -6px) rotate(0deg); }
}

/* ═══════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════ */
.trust-bar {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  white-space: nowrap;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   QUÉ HACEMOS
═══════════════════════════════════════════════════ */
.what-we-do-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.what-card-large {
  grid-row: span 2;
}

.what-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.what-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.what-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(0, 212, 255, 0.06);
}

.what-card:hover::before {
  opacity: 1;
}

.what-card-large h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.what-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.what-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.what-card-icon {
  display: flex;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.what-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════
   BENEFICIOS
═══════════════════════════════════════════════════ */
.beneficios {
  background: var(--bg-surface);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.benefit-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-card:hover::after {
  opacity: 1;
}

.benefit-icon-wrapper {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
}

.benefit-card h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   SOLUCIONES (TABS)
═══════════════════════════════════════════════════ */
.soluciones {
  background: var(--bg-base);
}

.solutions-tabs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
  width: fit-content;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.tab-btn.active {
  background: var(--accent);
  color: #0B0F14;
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.solution-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.solution-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
}

.solution-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.solution-card p {
  font-size: 0.8438rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* ═══════════════════════════════════════════════════
   PROCESO
═══════════════════════════════════════════════════ */
.proceso {
  background: var(--bg-surface);
}

.process-timeline {
  position: relative;
}

.process-line {
  display: none;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 212, 255, 0.3));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.step-number {
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
  background: var(--bg-surface);
  display: inline-block;
  padding: 0 4px;
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  transition: all 0.25s ease;
}

.step-content:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.step-deliverable {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  background: var(--accent-mid);
  border: 1px solid rgba(0, 212, 255, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   PARA QUIÉN
═══════════════════════════════════════════════════ */
.para-quien {
  background: var(--bg-base);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.audience-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 212, 255, 0.05);
}

.audience-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
}

.audience-card h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.audience-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   DIFERENCIADORES
═══════════════════════════════════════════════════ */
.diferenciadores {
  background: var(--bg-surface);
}

.diff-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.diff-left {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.diff-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diff-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.diff-item:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.diff-check {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
}

.diff-item h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.375rem;
}

.diff-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg-base);
  overflow: hidden;
}

.cta-wrapper {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 5rem);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.cta-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--border);
  background: var(--accent-dim);
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--text-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact li svg {
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

/* ─── Tablet (≤ 1024px) ─── */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .tag-1, .tag-2 {
    display: none;
  }

  .what-we-do-grid {
    grid-template-columns: 1fr 1fr;
  }

  .what-card-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .diff-wrapper {
    grid-template-columns: 1fr;
  }

  .diff-left {
    position: static;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ─── Mobile (≤ 768px) ─── */
@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(11, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    gap: 0.25rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .trust-items {
    gap: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .trust-items::-webkit-scrollbar { display: none; }

  .trust-divider {
    flex-shrink: 0;
  }

  .trust-item {
    flex-shrink: 0;
  }

  .benefits-grid,
  .solutions-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .what-we-do-grid {
    grid-template-columns: 1fr;
  }

  .what-card-large {
    grid-column: span 1;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    justify-content: center;
  }
}

/* ─── Small Mobile (≤ 480px) ─── */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .mockup-body {
    height: 280px;
  }

  .mockup-sidebar {
    width: 90px;
  }

  .mockup-kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
}

/* ─── Scroll Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   HERO PARTICLES CANVAS
═══════════════════════════════════════════════════ */
.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════
   SCROLL ANIMATIONS — animate-on-scroll
═══════════════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.anim-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════
   INTEGRATIONS MARQUEE
═══════════════════════════════════════════════════ */
.integrations-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent, rgba(0,212,255,0.02), transparent);
  overflow: hidden;
}
.integrations-label-wrapper {
  text-align: center;
  margin-bottom: 1.25rem;
}
.integrations-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.integrations-track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.integrations-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.integrations-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.int-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.int-logo:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   CASOS DE USO REALES
═══════════════════════════════════════════════════ */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.caso-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.caso-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}
.caso-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.caso-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.caso-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.caso-before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}
.caso-before, .caso-after {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0.875rem;
  border-radius: var(--radius-md);
}
.caso-before {
  background: rgba(255, 80, 80, 0.05);
  border: 1px solid rgba(255, 80, 80, 0.15);
}
.caso-after {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
}
.caso-before strong, .caso-after strong { color: var(--text-primary); }
.caso-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  display: block;
}
.caso-label.before { color: #FF6B6B; }
.caso-label.after  { color: var(--accent); }
.caso-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════════════════ */
.testimonios { background: var(--bg-surface); }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonio-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}
.testimonio-stars {
  font-size: 1rem;
  color: #F5A623;
  letter-spacing: 0.15em;
}
.testimonio-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}
.testimonio-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), rgba(0,212,255,0.2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.author-role {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   FAQ ACORDEÓN
═══════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question[aria-expanded="true"] { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-answer p {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════
   CONTADORES ANIMADOS
═══════════════════════════════════════════════════ */
.counter-value {
  display: inline-block;
  transition: color 0.3s;
}

/* ═══════════════════════════════════════════════════
   EXIT INTENT POPUP
═══════════════════════════════════════════════════ */
.exit-intent-overlay { z-index: 9500; }
.exit-popup {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem 2.5rem;
  max-width: 500px;
  width: 90%;
  margin: auto;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,212,255,0.1);
}
.exit-popup-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.exit-popup-close:hover { color: var(--text-primary); border-color: var(--border); }
.exit-popup-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.exit-popup h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.exit-popup p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.exit-popup-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.exit-popup-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.exit-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.exit-popup-dismiss {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-sans);
  transition: color 0.2s;
}
.exit-popup-dismiss:hover { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════
   QUIZ MODAL
═══════════════════════════════════════════════════ */
.modal-quiz { max-width: 560px; }
.quiz-body { padding: 1.5rem 2rem 2rem; }
.quiz-progress {
  height: 4px;
  background: var(--border-subtle);
  border-radius: 100px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #00a8cc);
  border-radius: 100px;
  transition: width 0.4s ease;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step-label {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.quiz-step h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.quiz-option {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.quiz-option:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-dim);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.quiz-result {
  text-align: center;
  padding: 1rem 0;
}
.quiz-result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.quiz-result h4 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.quiz-result p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.quiz-result-highlight {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.6;
  min-height: 2rem;
}

/* ─── Language toggle button ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang-active {
  color: var(--accent);
  font-weight: 700;
}
.lang-sep {
  color: var(--border);
  font-weight: 400;
}
.lang-other {
  color: var(--text-muted);
}

/* Quiz button in navbar */
.btn-quiz {
  font-size: 0.8125rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.btn-quiz:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Responsive nuevas secciones ─── */
@media (max-width: 1024px) {
  .casos-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .casos-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .caso-before-after { grid-template-columns: 1fr; }
  .caso-arrow { transform: rotate(90deg); }
  .exit-popup { padding: 2rem 1.5rem; }
  .quiz-body { padding: 1rem 1.25rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════
   CHAT WIDGET
═══════════════════════════════════════════════════ */

#jnd-chat {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 8000;
  /* Sin flex: el contenedor solo envuelve el FAB (58px).
     La ventana flota encima via position:absolute para no
     desplazar el contenedor hacia arriba. */
}

/* ─── Botón flotante (FAB) ─── */
.chat-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.45), 0 2px 8px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B0F14;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
  flex-shrink: 0;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.6), 0 2px 10px rgba(0,0,0,0.4);
}

.chat-fab:active { transform: scale(0.96); }

.chat-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ─── Badge ─── */
.chat-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #FF4757;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
  animation: badge-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.chat-badge.hidden { display: none; }

@keyframes badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ─── Ventana de chat ─── */
.chat-window {
  position: absolute;          /* Fuera del flujo: no afecta la altura del contenedor */
  bottom: calc(58px + 0.875rem); /* Flota justo encima del FAB */
  right: 0;
  width: 360px;
  max-height: 540px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,212,255,0.06), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}

.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ─── Header ─── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  background: linear-gradient(135deg, #0D1825 0%, #0F1E30 100%);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.chat-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0,212,255,0.3);
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.3));
}

.chat-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #2ECC71;
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-header-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.chat-online-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #2ECC71;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #2ECC71;
  border-radius: 50%;
  animation: pulse-green 1.8s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.chat-header-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.chat-header-close:hover {
  background: rgba(255,70,70,0.12);
  color: #FF6B6B;
}

/* ─── Área de mensajes ─── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ─── Burbujas de mensaje ─── */
.chat-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  animation: msg-in 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.chat-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-msg-avatar.user-avatar {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.chat-bubble {
  max-width: 78%;
  padding: 0.6rem 0.875rem;
  border-radius: 16px;
  font-size: 0.865rem;
  line-height: 1.55;
  word-break: break-word;
}

/* Burbuja del bot */
.chat-msg.bot .chat-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

/* Burbuja del usuario */
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  color: #0B0F14;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Timestamp */
.chat-msg-time {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.25rem 0;
  letter-spacing: 0.02em;
}

/* ─── Typing indicator ─── */
.chat-typing {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  animation: msg-in 0.25s ease;
}

.typing-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 0.7rem 1rem;
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-bubble span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-dot 1.2s ease infinite;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.18s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ─── Sugerencias rápidas ─── */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.chat-suggestions.hidden { display: none; }

.chat-suggestion-btn {
  padding: 0.35rem 0.75rem;
  background: var(--accent-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font-sans);
}

.chat-suggestion-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Área de input ─── */
.chat-input-area {
  padding: 0.75rem 1rem 0.875rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: none;
  max-height: 100px;
  overflow-y: auto;
  padding: 0.2rem 0;
}

.chat-input::placeholder { color: var(--text-muted); }

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0B0F14;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.chat-send-btn:hover:not(:disabled) {
  background: #33DDFF;
  transform: scale(1.08);
}

.chat-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.chat-powered {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.chat-powered span { color: var(--accent); font-weight: 500; }

/* ─── Error inline en chat ─── */
.chat-error-msg .chat-bubble {
  background: rgba(255,107,107,0.1);
  border-color: rgba(255,107,107,0.25);
  color: #FF9999;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  #jnd-chat {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-window {
    position: absolute;
    bottom: calc(58px + 0.75rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-height: 70vh;
    border-radius: var(--radius-lg);
  }
}

/* ─── Selection ─── */
::selection {
  background: rgba(0, 212, 255, 0.2);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   MODALES — Sistema de overlays premium
═══════════════════════════════════════════════════ */

/* ─── Overlay base ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 10, 15, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─── Contenedor modal ─── */
.modal {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 212, 255, 0.06), var(--shadow-glow);
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-calendar {
  max-width: 820px;
}

.modal-form {
  max-width: 660px;
}

/* ─── Header del modal ─── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.modal-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ─── Botón cerrar ─── */
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 70, 70, 0.12);
  border-color: rgba(255, 70, 70, 0.3);
  color: #FF6B6B;
}

/* ─── Body ─── */
.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body-calendar {
  padding: 1.25rem;
  position: relative;
}

/* ─── Footer note ─── */
.modal-footer-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  flex-shrink: 0;
}

/* ─── Loading spinner del calendar ─── */
.calendar-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  z-index: 1;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Formulario de contacto ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group .required {
  color: var(--accent);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23637082' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: var(--bg-card-hover);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #FF6B6B;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.field-error {
  font-size: 0.77rem;
  color: #FF6B6B;
  min-height: 1rem;
  display: block;
}

/* ─── Botón submit del form ─── */
.form-actions {
  margin-top: 0.5rem;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  gap: 0.625rem;
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spin {
  animation: spin 0.8s linear infinite;
}

/* ─── Estados form: éxito / error ─── */
.form-success,
.form-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  text-align: center;
  min-height: 260px;
}

.success-icon,
.error-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.error-icon {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.form-success h4,
.form-error-state h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-success p,
.form-error-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 360px;
}

.form-error-state a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Body bloqueado cuando hay modal activo ─── */
body.modal-open {
  overflow: hidden;
}

/* ─── Responsive modales ─── */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
    transform: translateY(40px);
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }

  .modal-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-footer-note {
    padding: 0.75rem 1.25rem;
  }
}
