/* ==========================================================================
   Baterías JM - Minimalist Light Design System
   Aesthetic: Clean, Architectural, High-Contrast Automotive Precision
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Surface & Background Colors (Minimalist Light Theme) */
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-subtle: #f8fafc;

  /* Text Colors (High Contrast Legibility) */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Accent Colors */
  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-primary-light: #e0f2fe;

  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --accent-orange-light: #ffedd5;

  --accent-green: #16a34a;
  --accent-green-light: #dcfce7;

  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd5b;
  --whatsapp-light: #ecfdf5;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  --border-primary: rgba(2, 132, 199, 0.3);
  --border-orange: rgba(234, 88, 12, 0.3);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Inter', monospace, sans-serif;

  /* Spacing & Radii */
  --container-max: 1240px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Elevation Shadows (Clean, subtle & modern) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ==========================================================================
   Dark Theme Design System (Black, Graphite Gray & Electric Battery Yellow)
   ========================================================================== */
[data-theme="dark"] {
  /* Surfaces & Backgrounds (Pitch Black & Charcoal Graphite) */
  --bg-main: #000000;
  --bg-surface: #0d0d0f;
  --bg-surface-elevated: #17171a;
  --bg-surface-alt: #121214;
  --bg-subtle: #1a1a1e;

  /* Text Colors (High Contrast Legibility) */
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --text-inverse: #000000;

  /* Accent Colors (High Voltage Battery Yellow) */
  --brand-primary: #facc15;
  --brand-primary-hover: #eab308;
  --brand-primary-light: rgba(250, 204, 21, 0.12);

  --accent-orange: #facc15;
  --accent-orange-hover: #eab308;
  --accent-orange-light: rgba(250, 204, 21, 0.15);

  --accent-green: #4ade80;
  --accent-green-light: rgba(74, 222, 128, 0.15);

  --whatsapp: #25d366;
  --whatsapp-hover: #22c55e;
  --whatsapp-light: rgba(37, 211, 102, 0.15);

  /* Borders & Dividers */
  --border-subtle: #222226;
  --border-medium: #333338;
  --border-strong: #484850;
  --border-primary: rgba(250, 204, 21, 0.45);
  --border-orange: rgba(250, 204, 21, 0.45);

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.75);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-brand {
  background: #facc15;
  color: #000000 !important;
  font-weight: 800;
  border-color: #facc15;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.35);
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-brand:hover {
  background: #eab308;
  color: #000000 !important;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.5);
}

[data-theme="dark"] .btn-secondary {
  background: #17171a;
  border-color: #333338;
  color: #ffffff;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #222226;
  border-color: #facc15;
  color: #facc15;
}


/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}

.section {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--brand-primary-light);
  border: 1px solid var(--border-primary);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-tag.orange {
  background: var(--accent-orange-light);
  border-color: var(--border-orange);
  color: var(--accent-orange);
}

.section-tag.green {
  background: var(--accent-green-light);
  border-color: rgba(22, 163, 74, 0.25);
  color: var(--accent-green);
}

.section-title {
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  color: #ffffff;
}

.btn-brand {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-brand:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Minimalist Pulse Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
