/* ==========================================================================
   TXT Analytics — Modern Design System & Stylesheet
   ========================================================================== */

/* ==========================================================================
   Theme 1: Clean White / Enterprise Light (Default)
   ========================================================================== */
:root, [data-theme="light"] {
  --bg-darkest: #ffffff;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-border: #e2e8f0;
  --bg-card-border-hover: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.12);
  --accent-cyan-dark: #0369a1;

  --accent-indigo: #4f46e5;
  --accent-indigo-glow: rgba(79, 70, 229, 0.12);

  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.12);

  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.12);

  --accent-yellow: #d97706;
  --accent-red: #dc2626;

  --btn-primary-bg: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4338ca 100%);
  --btn-primary-hover: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #3730a3 100%);
  --btn-shadow: rgba(37, 99, 235, 0.25);
  --brand-gradient: linear-gradient(135deg, #0f172a 15%, #0284c7 60%, #4f46e5 100%);
  --metric-gradient: linear-gradient(135deg, #0f172a 20%, #0284c7 100%);

  --glow-top-bg: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 80%);
  --glow-right-bg: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 75%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow-cyan: 0 8px 30px rgba(2, 132, 199, 0.12);
  --shadow-glow-emerald: 0 8px 30px rgba(5, 150, 105, 0.12);

  --header-bg: rgba(255, 255, 255, 0.88);
  --header-scrolled-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #f8fafc;
  --footer-border: #e2e8f0;

  --input-bg: #f8fafc;
  --input-border: #cbd5e1;
  --input-color: #0f172a;
  --input-focus-bg: #ffffff;

  --terminal-bg: rgba(13, 16, 26, 0.95);
  --terminal-border: rgba(56, 189, 248, 0.25);
  --terminal-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.25);

  --calc-results-bg: #f8fafc;
  --calc-slider-bg: #e2e8f0;
  --calc-card-bg: #ffffff;
  --calc-card-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.08);

  --comp-txt-bg: #f0fdf4;
  --comp-txt-border: #bbf7d0;
  --comp-legacy-bg: #fef2f2;
  --comp-legacy-border: #fecaca;

  --sec-box-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --sec-badge-bg: #ffffff;

  --consult-bg: #ffffff;
  --consult-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.1);

  --ticker-bg: #f8fafc;
  --ticker-border: #e2e8f0;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1220px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Theme 2: Cyber Obsidian (Dark Mode)
   ========================================================================== */
[data-theme="obsidian"] {
  --bg-darkest: #07080c;
  --bg-dark: #0d0f17;
  --bg-card: rgba(18, 22, 34, 0.75);
  --bg-card-hover: rgba(26, 32, 48, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.07);
  --bg-card-border-hover: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-cyan-dark: #0284c7;

  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-yellow: #fbbf24;

  --btn-primary-bg: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  --btn-primary-hover: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #4338ca 100%);
  --btn-shadow: rgba(37, 99, 235, 0.35);
  --brand-gradient: linear-gradient(135deg, #ffffff 10%, #38bdf8 55%, #818cf8 95%);
  --metric-gradient: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);

  --glow-top-bg: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 80%);
  --glow-right-bg: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 75%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-cyan: 0 0 32px rgba(56, 189, 248, 0.2);
  --shadow-glow-emerald: 0 0 32px rgba(16, 185, 129, 0.2);

  --header-bg: rgba(7, 8, 12, 0.72);
  --header-scrolled-bg: rgba(7, 8, 12, 0.92);
  --footer-bg: #050608;
  --footer-border: var(--bg-card-border);

  --input-bg: rgba(9, 11, 18, 0.7);
  --input-border: var(--bg-card-border);
  --input-color: #ffffff;
  --input-focus-bg: rgba(13, 16, 26, 0.95);

  --terminal-bg: rgba(13, 16, 26, 0.85);
  --terminal-border: rgba(56, 189, 248, 0.2);
  --terminal-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --calc-results-bg: rgba(0, 0, 0, 0.35);
  --calc-slider-bg: rgba(255, 255, 255, 0.1);
  --calc-card-bg: rgba(18, 22, 36, 0.9);
  --calc-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --comp-txt-bg: rgba(18, 24, 38, 0.75);
  --comp-txt-border: rgba(56, 189, 248, 0.3);
  --comp-legacy-bg: rgba(30, 20, 25, 0.6);
  --comp-legacy-border: rgba(239, 68, 68, 0.25);

  --sec-box-bg: radial-gradient(circle at top left, rgba(30, 41, 59, 0.5) 0%, rgba(13, 16, 26, 0.8) 100%);
  --sec-badge-bg: rgba(255, 255, 255, 0.04);

  --consult-bg: rgba(18, 22, 36, 0.85);
  --consult-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --ticker-bg: rgba(13, 16, 26, 0.4);
  --ticker-border: var(--bg-card-border);
}

/* ==========================================================================
   Theme 3: Executive Emerald (ROI & Financial Growth Focus)
   ========================================================================== */
[data-theme="emerald"] {
  --bg-darkest: #050b07;
  --bg-dark: #0a140e;
  --bg-card: rgba(14, 26, 19, 0.82);
  --bg-card-hover: rgba(20, 36, 27, 0.92);
  --bg-card-border: rgba(52, 211, 153, 0.14);
  --bg-card-border-hover: rgba(52, 211, 153, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --accent-cyan: #34d399;
  --accent-cyan-glow: rgba(52, 211, 153, 0.3);
  --accent-cyan-dark: #059669;

  --accent-indigo: #059669;
  --accent-purple: #14b8a6;
  --accent-emerald: #10b981;
  --accent-yellow: #f59e0b;

  --btn-primary-bg: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  --btn-primary-hover: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  --btn-shadow: rgba(16, 185, 129, 0.4);
  --brand-gradient: linear-gradient(135deg, #ffffff 15%, #34d399 55%, #f59e0b 95%);
  --metric-gradient: linear-gradient(135deg, #ffffff 30%, #34d399 100%);

  --glow-top-bg: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, rgba(5, 150, 105, 0.18) 50%, transparent 80%);
  --glow-right-bg: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, transparent 75%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-cyan: 0 0 32px rgba(52, 211, 153, 0.25);
  --shadow-glow-emerald: 0 0 32px rgba(16, 185, 129, 0.2);

  --header-bg: rgba(5, 11, 7, 0.85);
  --header-scrolled-bg: rgba(5, 11, 7, 0.95);
  --footer-bg: #030805;
  --footer-border: var(--bg-card-border);

  --input-bg: rgba(10, 20, 14, 0.8);
  --input-border: var(--bg-card-border);
  --input-color: #ffffff;
  --input-focus-bg: rgba(14, 26, 19, 0.95);

  --terminal-bg: rgba(10, 20, 14, 0.9);
  --terminal-border: rgba(52, 211, 153, 0.3);
  --terminal-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --calc-results-bg: rgba(0, 0, 0, 0.4);
  --calc-slider-bg: rgba(255, 255, 255, 0.1);
  --calc-card-bg: rgba(14, 26, 19, 0.9);
  --calc-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --comp-txt-bg: rgba(14, 26, 19, 0.85);
  --comp-txt-border: rgba(52, 211, 153, 0.4);
  --comp-legacy-bg: rgba(30, 20, 25, 0.6);
  --comp-legacy-border: rgba(239, 68, 68, 0.25);

  --sec-box-bg: radial-gradient(circle at top left, rgba(20, 36, 27, 0.6) 0%, rgba(10, 20, 14, 0.85) 100%);
  --sec-badge-bg: rgba(255, 255, 255, 0.05);

  --consult-bg: rgba(14, 26, 19, 0.9);
  --consult-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --ticker-bg: rgba(10, 20, 14, 0.5);
  --ticker-border: var(--bg-card-border);
}

/* ==========================================================================
   Theme 4: Titanium Cobalt (Institutional Trust & Security Focus)
   ========================================================================== */
[data-theme="cobalt"] {
  --bg-darkest: #070a12;
  --bg-dark: #0c1220;
  --bg-card: rgba(16, 24, 42, 0.82);
  --bg-card-hover: rgba(23, 34, 58, 0.92);
  --bg-card-border: rgba(96, 165, 250, 0.15);
  --bg-card-border-hover: rgba(96, 165, 250, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --accent-cyan: #60a5fa;
  --accent-cyan-glow: rgba(96, 165, 250, 0.3);
  --accent-cyan-dark: #2563eb;

  --accent-indigo: #3b82f6;
  --accent-purple: #818cf8;
  --accent-emerald: #38bdf8;
  --accent-yellow: #f97316;

  --btn-primary-bg: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  --btn-primary-hover: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
  --btn-shadow: rgba(37, 99, 235, 0.4);
  --brand-gradient: linear-gradient(135deg, #ffffff 15%, #60a5fa 55%, #f97316 95%);
  --metric-gradient: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%);

  --glow-top-bg: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(96, 165, 250, 0.15) 50%, transparent 80%);
  --glow-right-bg: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 75%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-cyan: 0 0 32px rgba(96, 165, 250, 0.25);
  --shadow-glow-emerald: 0 0 32px rgba(56, 189, 248, 0.2);

  --header-bg: rgba(7, 10, 18, 0.85);
  --header-scrolled-bg: rgba(7, 10, 18, 0.95);
  --footer-bg: #04070d;
  --footer-border: var(--bg-card-border);

  --input-bg: rgba(12, 18, 32, 0.8);
  --input-border: var(--bg-card-border);
  --input-color: #ffffff;
  --input-focus-bg: rgba(16, 24, 42, 0.95);

  --terminal-bg: rgba(12, 18, 32, 0.9);
  --terminal-border: rgba(96, 165, 250, 0.3);
  --terminal-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --calc-results-bg: rgba(0, 0, 0, 0.4);
  --calc-slider-bg: rgba(255, 255, 255, 0.1);
  --calc-card-bg: rgba(16, 24, 42, 0.9);
  --calc-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --comp-txt-bg: rgba(16, 24, 42, 0.85);
  --comp-txt-border: rgba(96, 165, 250, 0.4);
  --comp-legacy-bg: rgba(30, 20, 25, 0.6);
  --comp-legacy-border: rgba(239, 68, 68, 0.25);

  --sec-box-bg: radial-gradient(circle at top left, rgba(23, 34, 58, 0.6) 0%, rgba(12, 18, 32, 0.85) 100%);
  --sec-badge-bg: rgba(255, 255, 255, 0.05);

  --consult-bg: rgba(16, 24, 42, 0.9);
  --consult-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  --ticker-bg: rgba(12, 18, 32, 0.5);
  --ticker-border: var(--bg-card-border);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-darkest);
}

/* Ambient Backdrops */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.glow-top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: var(--glow-top-bg);
}

.glow-right {
  top: 800px;
  right: -100px;
  width: 600px;
  height: 500px;
  background: var(--glow-right-bg);
}

.glow-bottom {
  top: 1800px;
  left: -150px;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(56, 189, 248, 0.1) 60%, transparent 80%);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
.font-mono {
  font-family: var(--font-mono);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-purple { color: var(--accent-purple); }
.text-yellow { color: var(--accent-yellow); }
.text-dim { color: var(--text-dim); }
.text-white { color: #ffffff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--btn-shadow);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(30deg) translate(-100%, 0);
  transition: transform 0.6s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-outline-cyan {
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Hover effects gated for mouse / fine pointers (Evita sticky hover en pantallas táctiles móviles) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--btn-shadow);
    background: var(--btn-primary-hover);
  }

  .btn-glow:hover::after {
    transform: rotate(30deg) translate(100%, 0);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.06);
    color: #ffffff;
  }

  .btn-outline-cyan:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--accent-cyan);
    color: #ffffff;
  }
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-card-border);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: var(--header-scrolled-bg);
  border-bottom-color: rgba(56, 189, 248, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner,
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo,
.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-symbol {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05224c;
  transition: transform var(--transition-normal);
}

.logo-symbol-svg {
  height: 30px;
  width: auto;
  display: block;
}

[data-theme="obsidian"] .logo-symbol { color: #38bdf8; }
[data-theme="emerald"] .logo-symbol { color: #10b981; }
[data-theme="cobalt"] .logo-symbol { color: #60a5fa; }

.logo-brand:hover .logo-symbol,
.brand-logo:hover .logo-symbol {
  transform: translateY(-1px) scale(1.04);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-accent {
  color: var(--accent-cyan);
}

.system-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  position: relative;
}

.status-dot.ping::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.status-label {
  font-weight: 600;
  color: var(--accent-emerald);
}

.status-metric {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Switcher (Apple/Linear Style) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  touch-action: manipulation;
  user-select: none;
}

[data-theme="obsidian"] .theme-toggle-btn,
[data-theme="emerald"] .theme-toggle-btn,
[data-theme="cobalt"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.08);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

.theme-toggle-mobile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-drawer {
  display: none;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 20px 24px 30px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 80px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 25% 40%, rgba(219, 234, 254, 0.8) 0%, rgba(240, 249, 255, 0.5) 45%, transparent 75%);
}

/* Ambient Neural / AI Data Mesh Canvas (Linear / Vercel Aesthetic) */
.hero-neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  display: block;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

/* Modern Eyebrow Pill (Linear / Apple style) */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="obsidian"] .hero-eyebrow-pill,
[data-theme="emerald"] .hero-eyebrow-pill,
[data-theme="cobalt"] .hero-eyebrow-pill {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
}

.eyebrow-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.eyebrow-tag {
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.eyebrow-sep {
  opacity: 0.4;
}

.eyebrow-text {
  font-weight: 500;
}

.eyebrow-arrow {
  color: var(--accent-cyan);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.hero-eyebrow-pill:hover .eyebrow-arrow {
  transform: translateX(3px);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--text-primary);
  max-width: 900px;
  text-align: left;
}

.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

[data-theme="obsidian"] .gradient-text,
[data-theme="cobalt"] .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text.cyan {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="obsidian"] .gradient-text.cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Value Proposition Bullet Points */
.hero-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 36px 0;
  max-width: 860px;
  list-style: none;
  padding: 0;
  text-align: left;
}

.hero-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-bullet-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.bullet-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

[data-theme="obsidian"] .bullet-check-icon,
[data-theme="emerald"] .bullet-check-icon,
[data-theme="cobalt"] .bullet-check-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.hero-bullet-item:hover .bullet-check-icon {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284c7;
  transform: scale(1.1);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-hero-secondary {
  border-color: var(--bg-card-border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

[data-theme="obsidian"] .btn-hero-secondary,
[data-theme="emerald"] .btn-hero-secondary,
[data-theme="cobalt"] .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-arrow-subtle {
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.btn-hero-secondary:hover .btn-arrow-subtle {
  transform: translateY(2px);
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 36px;
  width: 100%;
  max-width: 860px;
  text-align: left;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

/* Guarantee Cards Floating Elevation */
.guarantee-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: default;
}

[data-theme="obsidian"] .guarantee-card,
[data-theme="emerald"] .guarantee-card,
[data-theme="cobalt"] .guarantee-card {
  background: rgba(18, 24, 38, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guarantee-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.2);
}

.guarantee-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.guarantee-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.guarantee-card .metric-number {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-sans);
  color: var(--text-primary);
  margin-bottom: 0;
  background: none;
  -webkit-text-fill-color: initial;
  letter-spacing: -0.01em;
}

.guarantee-card .metric-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Emil Kowalski Radial Cursor Spotlight Glow */
.service-card,
.case-card,
.guarantee-card,
.principle-card {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.case-card::before,
.guarantee-card::before,
.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(56, 189, 248, 0.16), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
  z-index: 1;
}

.service-card:hover::before,
.case-card:hover::before,
.guarantee-card:hover::before,
.principle-card:hover::before {
  opacity: 1;
}

/* Service cards visual elevation */
.service-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.18);
  border-color: var(--accent-cyan);
}





/* ==========================================================================
   Section Headers & Common
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
  scroll-margin-top: 80px;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-badge.emerald {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}

.section-badge.purple {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.22);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 56px;
}

/* ==========================================================================
   Three Pillars / Services (Los 3 Pilares)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

/* Base Service Card */
.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(55px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.service-card:nth-child(1) .card-glow {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.28) 0%, transparent 70%);
}

.service-card:nth-child(2) .card-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}

.service-card:nth-child(3) .card-glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
}

/* Card Hover */
.service-card:hover {
  transform: translateY(-8px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.15);
}

.service-card:hover .card-glow {
  opacity: 0.85;
  transform: scale(1.15);
}

/* Pillar 1: A tu Medida (Cyan / Blue) */
.service-card:nth-child(1) {
  border-top-color: #0284c7;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.6) 0%, #ffffff 32%);
}
.service-card:nth-child(1):hover {
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.3);
}

/* Pillar 2: Featured / Alto Impacto (Emerald) */
.service-card.featured,
.service-card:nth-child(2) {
  border-top-color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px -4px rgba(16, 185, 129, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.6) 0%, #ffffff 32%);
}

.service-card.featured:hover,
.service-card:nth-child(2):hover {
  transform: translateY(-8px);
  border-color: #10b981;
  box-shadow: 0 24px 44px -8px rgba(16, 185, 129, 0.22), 0 0 0 1px rgba(16, 185, 129, 0.4);
}

/* Pillar 3: Soluciones IA (Purple) */
.service-card:nth-child(3) {
  border-top-color: #7c3aed;
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.6) 0%, #ffffff 32%);
}
.service-card:nth-child(3):hover {
  box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.18), 0 0 0 1px rgba(124, 58, 237, 0.3);
}

/* Card Header Top Row */
.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.service-top-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Featured Ribbon */
.featured-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

/* Icon Box */
.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  flex-shrink: 0;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08) rotate(-2deg);
}

.service-card:nth-child(1) .service-icon-box,
.service-icon-box.cyan {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0284c7;
}

.service-card:nth-child(2) .service-icon-box,
.service-icon-box.emerald {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.22);
  color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08);
}

.service-card:nth-child(3) .service-icon-box,
.service-icon-box.purple {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
  color: #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}

.service-icon {
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badge Pill */
.service-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.22);
  white-space: nowrap;
}

.service-badge-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.service-badge-pill.emerald,
.service-card:nth-child(2) .service-badge-pill {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.22);
}

.service-badge-pill.purple,
.service-card:nth-child(3) .service-badge-pill {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.22);
}

/* Service Title — HIGHLIGHTED & HIGH CONTRAST */
.service-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.32;
  letter-spacing: -0.025em;
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Highlight accent spans within titles */
.title-highlight {
  display: inline-block;
  position: relative;
  font-weight: 800;
}

.title-highlight::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  opacity: 0.85;
}

.title-highlight.blue {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-highlight.blue::after {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.35);
}

.title-highlight.emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-highlight.emerald::after {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.35);
}

.title-highlight.purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-highlight.purple::after {
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 100%);
  box-shadow: 0 1px 4px rgba(124, 58, 237, 0.35);
}

/* Service Description */
.service-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Feature Checklist */
.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.service-features-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.service-card:nth-child(2) .check-icon {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.2);
}

.service-card:nth-child(3) .check-icon {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

/* ==========================================================================
   ROI & Hours Saved Calculator
   ========================================================================== */
.methodology-wrapper {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--bg-card-border);
}

.calc-integrated-container {
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid var(--bg-card-border);
}

.calculator-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13, 16, 26, 0.6) 50%, transparent 100%);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  align-items: center;
}

.calc-heading {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.calc-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.calc-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bg-card-border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.calc-highlight-item strong {
  color: var(--text-primary);
}

.ch-icon {
  font-size: 1.25rem;
}

.calc-interactive-card {
  background: var(--calc-card-bg);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--calc-card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.calc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
}

.calc-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 32px;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.control-label-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.control-value-display {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 6px;
  background: var(--calc-slider-bg);
  outline: none;
  transition: background var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-cyan);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #ffffff;
}

.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 6px;
}

.calc-results-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--calc-results-bg);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.result-tile {
  display: flex;
  flex-direction: column;
}

.tile-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tile-val {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tile-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==========================================================================
   Before vs After Comparison
   ========================================================================== */
.comparison-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
}

.switch-side-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.switch-side-label.active {
  color: var(--text-primary);
}

.switch-container {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: var(--transition-normal);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 3px;
  background-color: #ffffff;
  transition: var(--transition-normal);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

input:checked + .switch-slider {
  background-color: var(--accent-cyan-dark);
  border-color: var(--accent-cyan);
}

input:checked + .switch-slider:before {
  transform: translateX(26px);
  background-color: #ffffff;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.comparison-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.comp-card.legacy-state {
  border-color: var(--comp-legacy-border);
  background: var(--comp-legacy-bg);
}

.comp-card.txt-state {
  border-color: var(--comp-txt-border);
  background: var(--comp-txt-bg);
}

.comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.comp-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.comp-badge-state {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.comp-card.txt-state .comp-badge-state {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.comp-card.legacy-state .comp-badge-state {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.comp-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.comp-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.comp-metric-tag {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
}

/* ==========================================================================
   Terminal Demo Sandbox
   ========================================================================== */
.demo-sandbox-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.scenario-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-card-border);
}

.scenario-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--bg-card-border);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.scenario-btn:last-child {
  border-right: none;
}

.scenario-btn:hover {
  background: rgba(255, 255, 255, 0.03);
}

.scenario-btn.active {
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent-cyan);
}

.sc-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.scenario-btn.active .sc-badge {
  color: var(--accent-cyan);
}

.sc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.scenario-btn.active .sc-title {
  color: var(--text-primary);
}

.interactive-terminal-screen {
  padding: 24px 28px;
  background: rgba(9, 11, 18, 0.95);
  font-family: var(--font-mono);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.term-prompt {
  color: var(--accent-cyan);
  font-weight: 600;
}

.term-command-display {
  color: #ffffff;
  flex-grow: 1;
}

.term-status-badge {
  font-size: 0.7rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.log-line {
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card,
.process-step {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.step-card:hover,
.process-step:hover {
  transform: translateY(-5px);
  border-color: #0284c7;
  box-shadow: 0 16px 32px -8px rgba(2, 132, 199, 0.14);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: #0284c7;
  line-height: 1;
}

.step-tag,
.step-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
  white-space: nowrap;
}

.step-card:nth-child(2) .step-tag {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.step-card:nth-child(3) .step-tag {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.2);
}

.step-card:nth-child(4) .step-tag {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

.step-title,
.step-heading {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.step-desc,
.step-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Case Studies
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
}

.case-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.case-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.case-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--bg-card-border);
}

.c-stat {
  display: flex;
  flex-direction: column;
}

.c-val {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.c-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Principles of Trust Grid (Section 4: Confianza)
   ========================================================================== */
.principles-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.principle-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  position: relative;
}

.principle-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.1);
}

.principle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.principle-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.principle-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.principle-pill.emerald {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.principle-pill.purple {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

.principle-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.35;
}

.principle-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.principle-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.principle-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  flex-shrink: 0;
}

.principle-check.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.principle-check.purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

/* ==========================================================================
   Security Box
   ========================================================================== */
.security-box {
  background: var(--sec-box-bg);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.sec-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.sec-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.security-badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sec-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sec-badge-bg);
  border: 1px solid var(--bg-card-border);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sec-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   Consultation Form
   ========================================================================== */
.consultation-wrapper {
  background: var(--consult-bg);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--consult-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.consultation-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}

.consultation-header .section-subtitle {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group .req {
  color: var(--accent-cyan);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--input-color);
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px exactos: previene auto-zoom forzado en iOS Safari */
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  background: var(--input-focus-bg);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #0d111a;
  color: #ffffff;
}

.form-group textarea {
  resize: vertical;
}

.field-error {
  display: none;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 5px;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #ef4444;
}

.form-group.has-error .field-error {
  display: block;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  padding: 70px 0 35px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.col-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a, .footer-links-col .f-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.status-indicator {
  color: var(--accent-emerald);
  font-size: 0.76rem;
}

/* ==========================================================================
   Toast Notifications & Modal
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  animation: toast-enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast:active {
  transform: scale(0.97);
}

.toast.toast-dismissing {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
}

@keyframes toast-enter {
  from {
    transform: translateY(16px) scale(0.94);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 44px 32px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
  text-align: center;
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 50%;
  color: #059669;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-text {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 28px;
}

.modal-card .btn-block {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    gap: 32px;
  }
  .services-grid,
  .comparison-cards-grid,
  .cases-grid,
  .principles-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .security-badges-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .d-none-mobile {
    display: none !important;
  }
  .nav-list {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .services-grid,
  .comparison-cards-grid,
  .cases-grid,
  .principles-grid,
  .testimonials-grid,
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .calc-results-box {
    grid-template-columns: 1fr;
  }
  .scenario-buttons {
    grid-template-columns: 1fr;
  }
  .scenario-btn {
    border-right: none;
    border-bottom: 1px solid var(--bg-card-border);
  }
  .security-badges-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
