/* Kaizen Force V4 — Globales
   Variables de diseño, tipografía, utilidades. Mobile-first. */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Fondos */
  --bg-base: #080808;
  --bg-carbon: #111111;
  --bg-surface: #181818;
  --bg-surface-hover: #1f1f1f;
  --bg-elevated: #232323;

  /* Marca */
  --color-red: #e11d2c;
  --color-red-bright: #f53144;
  --color-red-dark: #8f221c;
  --color-red-soft: rgba(225, 29, 44, 0.14);
  --color-gold: #caa12f;
  --color-gold-bright: #e0b93b;
  --color-gold-soft: rgba(202, 161, 47, 0.14);

  /* Texto */
  --color-text: #f4f1ea;
  --color-text-muted: #a8a29c;
  --color-text-dim: #6b6660;

  /* Estados */
  --color-success: #4ade80;
  --color-warning: #facc15;
  --color-danger: #ef4444;
  --color-info: #60a5fa;

  /* Bordes */
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-border-gold: rgba(202, 161, 47, 0.4);
  --color-border-red: rgba(225, 29, 44, 0.5);

  /* Tipografía */
  --font-display: 'Oswald', 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radios */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.65);
  --shadow-glow-red: 0 0 24px rgba(225, 29, 44, 0.35);
  --shadow-glow-gold: 0 0 24px rgba(202, 161, 47, 0.28);

  /* Layout */
  --container: 1240px;
  --container-narrow: 960px;
  --header-h: 64px;
  --section-pad-y: 56px;

  /* Animación */
  --tr-fast: 150ms ease;
  --tr: 220ms ease;
  --tr-slow: 380ms ease;

  /* Z-index */
  --z-header: 50;
  --z-drawer: 80;
  --z-modal: 90;
  --z-toast: 100;
}

html, body {
  background: var(--bg-base);
  color: var(--color-text);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(225, 29, 44, 0.08), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(202, 161, 47, 0.05), transparent 70%),
    var(--bg-base);
}

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 2.4vw, 1.3rem); letter-spacing: 0.04em; }

p { color: var(--color-text); }
small { color: var(--color-text-muted); font-size: 0.85rem; }

a {
  color: var(--color-text);
  transition: color var(--tr);
}
a:hover {
  color: var(--color-gold-bright);
}

::selection {
  background: var(--color-red);
  color: var(--color-text);
}

/* Scrollbar oscuro */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-red-dark) var(--bg-base);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--bg-base); }
*::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}
*::-webkit-scrollbar-thumb:hover { background: var(--color-red-dark); }

/* Utilidades */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 16px;
}
.section {
  padding-block: var(--section-pad-y);
}
.section-tight {
  padding-block: 32px;
}
.text-gold     { color: var(--color-gold-bright); }
.text-red      { color: var(--color-red); }
.text-muted    { color: var(--color-text-muted); }
.text-dim      { color: var(--color-text-dim); }
.text-center   { text-align: center; }
.uppercase     { text-transform: uppercase; letter-spacing: 0.08em; }
.condensed     { font-family: var(--font-display); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 600;
}
.eyebrow-gold { color: var(--color-gold-bright); }

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 30%, var(--color-gold) 70%, transparent);
  border: 0;
  width: 60px;
  margin: 16px 0;
}

.kaizen-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kaizen-mark span {
  color: var(--color-red);
}

/* Estados visuales */
.is-hidden { display: none !important; }
.is-disabled { opacity: 0.5; pointer-events: none; }

/* Animaciones globales */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 44, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(225, 29, 44, 0); }
}
.fade-up { animation: fadeUp 380ms ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
