﻿/* ==========================================================================
   BullTax - Global Stylesheet
   Strict adherence to:
   1. Semantic HTML5 support
   2. 8px Grid System (spacing variables)
   3. CSS variables for easy theme switching
   4. Accessibility & prefers-reduced-motion support
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design System (8px Grid & Responsive Color Palette)
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Default Dark Theme matching screenshot */
  --color-bg-main: #060919;
  --color-bg-alt: #0b0f28;
  --color-surface: rgba(18, 24, 58, 0.55);
  --color-surface-hover: rgba(30, 41, 88, 0.75);
  --color-glass-border: rgba(255, 255, 255, 0.12);
  --color-glass-border-hover: rgba(255, 255, 255, 0.28);
  --color-glass-glow: rgba(124, 58, 237, 0.3);

  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-inverse: #070913;

  --color-accent-blue: #3b82f6;
  --color-accent-cyan: #06b6d4;
  --color-accent-purple: #8b5cf6;
  --color-accent-magenta: #ec4899;
  --color-accent-emerald: #10b981;

  --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.4) 0%, rgba(139, 92, 246, 0.4) 100%);
  --gradient-button: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-button-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.35);

  /* Typography */
  --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-heading: 'Outfit', sans-serif;

  /* 8px Grid System Tokens */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;
  
  --header-height: 72px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --color-bg-main: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-surface: rgba(255, 255, 255, 0.75);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-glass-border: rgba(0, 0, 0, 0.08);
  --color-glass-border-hover: rgba(59, 130, 246, 0.3);
  
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #ffffff !important;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  background-color: #ffffff !important;
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.video-banner-section {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* --------------------------------------------------------------------------
   Dynamic Fluid Animated Background (Matching Screenshot)
   -------------------------------------------------------------------------- */
 .video-banner-section {
  width: 100%;
  height: 590px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.video-banner-section .navbar-glass {
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Image Slider (reemplaza al video de fondo) */
.image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slider-slide.active {
  opacity: 1;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header & Floating Glass Navigation Bar (Matching Screenshot)
   -------------------------------------------------------------------------- */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 var(--space-2);
}

.navbar-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  height: 54px;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
  background: #03dd00;
  border: 2px solid #FFD700;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transition: var(--transition-normal);
}

.navbar-glass.scrolled {
  background: #03dd00;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Brand Logo (Exact design from image) */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  color: var(--color-text-primary);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}

.brand-icon-orb {
  display: none;
}

.navbar-glass .brand-text {
  font-size: 1.5rem;
}

.brand-text {
  color: #000000;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: 700;
  height: auto;
  display: inline;
  align-items: center;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 6px var(--space-2);
  border-radius: var(--border-radius-pill);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Nav Right Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--space-3);
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  color: #ffffff;
  font-family: var(--font-family-base);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
}

.btn-login:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
  background: linear-gradient(135deg, #e67600, #cc3700);
}

/* --------------------------------------------------------------------------
   Container & Shared Section Layouts (8px Grid Rules)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section {
  padding: var(--space-10) 0;
  position: relative;
}

#pricing {
  padding-top: var(--space-6);
}

/* Typography Utilities */
.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

/* Glass Card Component */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.2);
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: var(--color-accent-purple);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
}

.popular-badge {
  position: absolute;
  top: 8px;
  right: 16px;
  background: var(--gradient-button);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 0;
}

.price-tag {
  font-family: var(--font-family-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin: var(--space-2) 0;
}

.price-tag span {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.feature-list {
  list-style: none;
  margin-bottom: var(--space-4);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.feature-list li::before {
  content: '✓';
  color: var(--color-accent-emerald);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6) 0 var(--space-4);
  background: #06A110;
  color: #ffffff;
}

footer h4,
footer h2,
footer p,
footer a,
footer li {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.footer-col h4 {
  font-family: var(--font-family-heading);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

footer .brand-text {
  font-size: 1.6rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-1);
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Accessibility: Prefers-Reduced-Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can be toggled with mobile JS */
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
