/* ============================================
   MOTOR DIGITAL AWARDS — main.css
   Variables CSS, Reset, Tipografía, Utilidades,
   Animaciones de scroll
   ============================================ */

/* Fuente Inter desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   DESIGN TOKENS — CSS Custom Properties
   ============================================ */
:root {
  /* Paleta de colores */
  --color-primary:     #0A3D78;
  --color-secondary:   #00AEEF;
  --color-dark:        #0B1F3A;
  --color-white:       #FFFFFF;
  --color-light-bg:    #F0F4F8;
  --color-text-on-dark:#E8EDF2;
  --color-accent-hover:#0097D6;
  --color-text-muted:  #94A3B8;
  --color-border-dark: rgba(0, 174, 239, 0.2);

  /* Tipografía */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Espaciado */
  --spacing-xs:  0.5rem;
  --spacing-sm:  1rem;
  --spacing-md:  2rem;
  --spacing-lg:  4rem;
  --spacing-xl:  6rem;

  /* Bordes */
  --radius-btn:  4px;
  --radius-card: 8px;
  --radius-pill: 999px;

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;

  /* Layout */
  --container-max:     1200px;
  --container-padding: 1.5rem;
  --header-height:     72px;
}

/* ============================================
   RESET MINIMAL
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  max-width: 65ch;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.text-center  { text-align: center; }
.text-white   { color: var(--color-white) !important; }
.text-on-dark { color: var(--color-text-on-dark); }
.text-secondary { color: var(--color-secondary); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   ANIMACIONES ON-SCROLL
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   SEPARADOR DECORATIVO
   ============================================ */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: var(--radius-pill);
  margin: 1rem 0 1.5rem;
}

.section-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ALERTAS / NOTICES
   ============================================ */
.draft-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-dark);
  background: rgba(0, 174, 239, 0.15);
  border: 1px solid rgba(0, 174, 239, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.draft-notice::before {
  content: '⚠';
  font-size: 0.8em;
}

/* ============================================
   LEGAL PAGE BASE
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--container-padding);
}

.legal-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-white);
}

.legal-content .legal-body {
  background: var(--color-white);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-card);
  margin-top: calc(-1 * var(--spacing-md));
}

.legal-body h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: var(--spacing-md);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-light-bg);
}

.legal-body p,
.legal-body li {
  color: #374151;
  margin-bottom: 0.75rem;
  max-width: none;
}

.legal-body ul,
.legal-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body ol { list-style: decimal; }

.legal-body strong { color: var(--color-primary); }

.legal-body .legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.legal-body .legal-disclaimer {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  color: #92400E;
  max-width: none;
}
