/* ==========================================================================
   VoltaEco · tema compartido (dorado del logo VE sobre negro neutro)
   Se carga en todas las páginas DESPUÉS de sus estilos propios: las variables
   de aquí ganan y cualquier componente que use var(--...) toma la paleta.
   ========================================================================== */
:root {
  --gold: #E8B428;
  --gold-bright: #F3C752;
  --gold-deep: #C9971A;
  --on-gold: #111111;
  --bg: #050505;
  --bg-alt: #0B0B0B;
  --surface: #121212;
  --surface-2: #1A1A1A;
  --text: #F5F5F5;
  --text-2: #B0B0B0;
  --text-3: #8A8A8A;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(232, 180, 40, 0.35);
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Alias heredados: los usan los estilos propios de cada página y los formularios */
  --solar-yellow: var(--gold);
  --solar-yellow-light: var(--gold-bright);
  --solar-yellow-dark: var(--gold-deep);
  --flash-red: #FF5A5A;
  --flash-red-light: #FF7A7A;
  --flash-red-dark: #E04848;
  --primary: var(--gold);
  --primary-hover: var(--gold-bright);
  --accent: var(--flash-red);
  --accent-hover: var(--flash-red-dark);
  --success: #3DDC84;
  --ai-blue: var(--gold);
  --ai-purple: var(--gold-deep);
  --ai-cyan: var(--gold-bright);
  --ai-orange: var(--gold);
  --neon-blue: var(--gold);
  --neon-purple: var(--gold-deep);
  --neon-green: #3DDC84;
  --neon-pink: var(--gold);
  --background: var(--bg);
  --background-secondary: var(--bg-alt);
  --background-tertiary: var(--surface-2);
  --surface-elevated: var(--surface-2);
  --dark-surface: var(--bg-alt);
  --dark-background: var(--bg);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --text-tertiary: var(--text-3);
  --text-quarternary: #6A6A6A;
  --gradient-hero: linear-gradient(135deg, #E8B428 0%, #E8B428 100%);
  --gradient-accent: linear-gradient(135deg, #E8B428 0%, #C9971A 100%);
  --gradient-surface: linear-gradient(180deg, #121212 0%, #0B0B0B 100%);
  --gradient-ai: linear-gradient(135deg, #E8B428 0%, #C9971A 100%);
  --gradient-tech: linear-gradient(90deg, #E8B428 0%, #F3C752 100%);
  --gradient-neural: radial-gradient(circle at 50% 50%, rgba(232, 180, 40, 0.12) 0%, transparent 70%);
  --gradient-ambient: linear-gradient(135deg, #E8B428, #C9971A);
  --gradient-dark-card: linear-gradient(145deg, #121212 0%, #0E0E0E 100%);
  --gradient-glow: linear-gradient(135deg, rgba(232, 180, 40, 0.14) 0%, rgba(232, 180, 40, 0.04) 100%);
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.7);
  --glow-yellow: 0 0 20px rgba(232, 180, 40, 0.28);
  --glow-blue: 0 0 20px rgba(232, 180, 40, 0.2);
  --glow-purple: 0 0 20px rgba(232, 180, 40, 0.2);
  --glow-green: 0 0 20px rgba(61, 220, 132, 0.25);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 999px;
  --border-color: var(--border);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --container: 1200px;
}

/* Base */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  padding-top: 0 !important; /* el header ya no es fijo: va en flujo y pegajoso */
}
body::before, body::after { content: none !important; } /* fondos animados de la versión anterior */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1, h2, h3, h4 { -webkit-text-fill-color: initial; background: none; }
a { color: var(--gold); }
a:hover { color: var(--gold-bright); }
::selection { background: rgba(232, 180, 40, 0.35); }

/* Cabecera anterior (por si alguna página conserva restos) */
header.header, nav.nav.container, .background-animation, .floating-shape { display: none !important; }

/* Hero de las páginas internas: sin degradados morados, con resplandor dorado */
section.hero, .page-hero {
  padding: 64px 0 56px;
  background: radial-gradient(720px 360px at 50% 0%, rgba(232, 180, 40, 0.14), transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
section.hero::before, section.hero::after { display: none; }
section.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); letter-spacing: -0.03em; color: var(--text); -webkit-text-fill-color: initial; background: none; animation: none; }
section.hero p { color: var(--text-2); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 12px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; box-shadow: none; }
.btn-primary, .tab-button.active, .form-submit, .submit-btn, .cta-button, .btn-submit { background: var(--gold) !important; color: var(--on-gold) !important; border-color: transparent; box-shadow: none; }
.btn-primary:hover, .form-submit:hover, .submit-btn:hover, .cta-button:hover, .btn-submit:hover { background: var(--gold-bright) !important; color: var(--on-gold) !important; transform: translateY(-1px); filter: none; }
.btn-secondary, .tab-button:not(.active) { background: transparent !important; color: var(--text) !important; border: 1px solid rgba(245, 245, 245, 0.22) !important; box-shadow: none; }
.btn-secondary:hover, .tab-button:not(.active):hover { color: var(--gold-bright) !important; border-color: rgba(232, 180, 40, 0.6) !important; }
.btn-outline { background: transparent !important; color: var(--gold) !important; border: 1px solid var(--border-gold) !important; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Superficies y formularios */
.card, .feature-card, .info-card, .pricing-card, .faq-item, .contact-card, .status-card, .help-card, .legal-section, .form-container, .form-card { background: var(--surface); border-color: var(--border); box-shadow: none; backdrop-filter: none; }
.card:hover, .feature-card:hover, .info-card:hover, .pricing-card:hover, .help-card:hover, .contact-card:hover { border-color: rgba(232, 180, 40, 0.45); box-shadow: none; }
input, select, textarea { font-family: var(--font-body); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { background-color: var(--surface-2); color: var(--text); border-color: rgba(255, 255, 255, 0.12); }
input:focus, select:focus, textarea:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(232, 180, 40, 0.18) !important; outline: none; }
::placeholder { color: var(--text-3); }

/* Íconos SVG que reemplazan a los emojis */
.ve-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; color: var(--gold); flex-shrink: 0; }
[class*="icon"] > .ve-icon { width: 1em; height: 1em; max-width: 64px; max-height: 64px; vertical-align: middle; }
.error-icon > .ve-icon { width: 64px; height: 64px; }
.error-code { background-image: linear-gradient(135deg, #F3C752 0%, #E8B428 50%, #C9971A 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: #E8B428; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
