/* ═══════════════════════════════════════════════════════
   QuivAel Automation — Shared Stylesheet
   Version: 2.0 | Multi-page Unified Design System
   ═══════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ── */
:root {
  /* Brand Core */
  --bg-deep: #03010a;
  --bg-surface: #0a0118;
  --bg-card: rgba(168, 85, 247, 0.05);
  --bg-card-hover: rgba(168, 85, 247, 0.10);
  --border-subtle: rgba(168, 85, 247, 0.15);
  --border-glow: rgba(168, 85, 247, 0.30);

  /* Primary — Purple */
  --primary: #a855f7;
  --primary-light: #c084fc;
  --primary-dark: #7c3aed;
  --primary-glow: rgba(168, 85, 247, 0.30);

  /* Secondary — Cyan */
  --secondary: #22d3ee;
  --secondary-glow: rgba(34, 211, 238, 0.20);

  /* Accent — Blue */
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.20);

  /* WhatsApp Green */
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  --gradient-card: linear-gradient(145deg, rgba(168, 85, 247, 0.08), rgba(34, 211, 238, 0.04));
  --gradient-text: linear-gradient(90deg, #fff 0%, var(--primary-light) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--primary-glow);

  /* Spacing */
  --nav-height: 72px;
  --section-padding: 100px 0;
  --container-max: 1280px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ── WhatsApp page override ── */
.page-whatsapp {
  --page-accent: var(--whatsapp);
  --page-accent-dark: var(--whatsapp-dark);
  --page-accent-glow: var(--whatsapp-glow);
}

/* ── 2. Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ── 3. Background Effects ── */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  top: -10%;
  left: -5%;
}

.bg-orb--cyan {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-glow), transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: -7s;
}

.bg-orb--blue {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: 40%;
  right: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ── 4. Header / Navigation ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(3, 1, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.site-header.scrolled {
  background: rgba(3, 1, 10, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-logo-text span {
  color: var(--primary);
}

/* Desktop Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav>a,
.nav-dropdown>.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.header-nav>a:hover,
.header-nav>a.active,
.nav-dropdown:hover>.nav-dropdown-trigger {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.08);
}

.nav-dropdown-trigger .arrow {
  font-size: 0.65rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: rgba(10, 1, 24, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-primary);
}

.nav-dropdown-menu a .dropdown-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-dropdown-menu a .dropdown-label {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  font-size: 0.875rem;
}

.nav-dropdown-menu a .dropdown-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.06);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--primary);
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 0 20px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 0 30px var(--whatsapp-glow);
  transform: translateY(-1px);
  color: #fff;
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(3, 1, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.08);
}

.mobile-nav .mobile-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 16px 16px 4px;
}

.mobile-nav .mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
}

/* ── 5. Sections ── */
section {
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.section-header h2 {
  margin-bottom: 20px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── 6. Cards ── */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3,
.card h4 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ── 7. Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-value .highlight {
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}


/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* ── 8. Hero Section ── */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── 9. Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 32px;
  background: rgba(3, 1, 10, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .header-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(168, 85, 247, 0.08);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* ── 10. Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  z-index: 2000;
  background: rgba(10, 1, 24, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-accept {
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition-fast);
}

.cookie-accept:hover {
  background: var(--primary-dark);
}

.cookie-reject {
  padding: 8px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.cookie-reject:hover {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

/* ── 11. Floating Buttons ── */
.floating-buttons {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1500;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.fab:hover {
  transform: scale(1.1);
}

.fab--voice {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.fab--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px var(--whatsapp-glow);
}

/* ── 12. Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

.fade-up:nth-child(5) {
  transition-delay: 0.4s;
}

.fade-up:nth-child(6) {
  transition-delay: 0.5s;
}

/* ── 13. Terminal / Code Block ── */
.terminal {
  background: rgba(10, 1, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(168, 85, 247, 0.05);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
  background: rgba(239, 68, 68, 0.5);
}

.terminal-dots span:nth-child(2) {
  background: rgba(234, 179, 8, 0.5);
}

.terminal-dots span:nth-child(3) {
  background: rgba(34, 197, 94, 0.5);
}

.terminal-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-height: 400px;
  overflow-y: auto;
}

.terminal-body .prompt {
  color: var(--primary);
}

.terminal-body .response {
  color: var(--secondary);
}

.terminal-body .comment {
  color: var(--text-muted);
  font-style: italic;
}

/* ── 14. Glassmorphism Component ── */
.glass {
  background: rgba(168, 85, 247, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* ── 15. Privacy Section ── */
.privacy-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.privacy-card {
  padding: 28px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.privacy-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.privacy-card h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.privacy-card p {
  font-size: 0.85rem;
}

.privacy-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.privacy-toggle:hover {
  border-color: var(--primary);
}

.privacy-toggle-arrow {
  transition: transform var(--transition-fast);
  font-size: 0.8rem;
}

.privacy-toggle.active .privacy-toggle-arrow {
  transform: rotate(180deg);
}

.privacy-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.privacy-content.open {
  max-height: 2000px;
}

.privacy-content-inner {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.privacy-content-inner h4 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.privacy-content-inner p {
  margin-bottom: 12px;
}


/* Tablet breakpoint */
@media (max-width: 1024px) {
  .cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ── 16. Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --nav-height: 64px;
  }

  /* Header mobile layout */
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .header-nav {
    display: none;
  }

  .header-actions .btn-ghost,
  .header-actions .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-logo img {
    height: 32px;
  }

  .header-logo-text {
    font-size: 1rem;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 40px) 0 48px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  /* Sections */
  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 32px 0;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  /* Cards */
  .cards-grid--2,
  .cards-grid--3,
  .cards-grid--4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  /* Terminal */
  .terminal-body {
    padding: 16px;
    font-size: 0.75rem;
    line-height: 1.7;
    max-height: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Floating buttons — smaller & repositioned */
  .floating-buttons {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .fab {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  /* Cookie banner */
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
    max-width: none;
  }

  .cookie-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .cookie-accept,
  .cookie-reject {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Privacy section */
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-toggle {
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .section-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .fab {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ── 17. Utility Classes ── */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mt-sm {
  margin-top: 16px;
}

.mt-md {
  margin-top: 32px;
}

.mt-lg {
  margin-top: 64px;
}

.mb-sm {
  margin-bottom: 16px;
}

.mb-md {
  margin-bottom: 32px;
}

.mb-lg {
  margin-bottom: 64px;
}

.gap-sm {
  gap: 16px;
}

.gap-md {
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ── 12. Clients Section ── */
.clients-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.client-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: all var(--transition-fast);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  letter-spacing: -0.02em;
}

.client-logo:hover {
  opacity: 1;
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  cursor: default;
}

@media (min-width: 768px) {
  .client-logos {
    gap: 48px;
  }

  .client-logo {
    font-size: 1.25rem;
  }
}

/* -- 11. Custom Enhancements (Dealers Optimization) -- */
.btn-pulse {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 var(--primary-glow); }
  70% { box-shadow: 0 0 0 15px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.glass-card {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-radius: var(--radius-xl);
  margin: 40px 0;
}

.calc-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(10, 1, 24, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.calc-input-group {
  margin-bottom: 24px;
}

.calc-input-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

.calc-result {
  margin-top: 32px;
  padding: 24px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
}

.calc-result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
}

.risk-reversal {
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  padding: 40px;
  border-radius: var(--radius-xl);
  background: rgba(168, 85, 247, 0.02);
}



/* -- Responsive Adjustments -- */
@media (max-width: 991px) {
  .hero .container {
    overflow: hidden;
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1; /* Mover visual arriba en m�vil si se prefiere, o dejar debajo */
  }
}



/* -- About Us Section Adjustments -- */
@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .about-standard {
    position: static !important;
  }
}

