/* TYPOGRAPHY NOTE: Brandbook specifies Montserrat. Decision made to
   keep Exo 2 (display) + Sora (body) for consistency across all pages.
   Revisit in v2 if client requests migration. */
/* ============================================
   1. :root — Electric Horizon design tokens
   ============================================ */
:root {
  /* ✅ COLORES OFICIALES DEL BRANDBOOK — NO MODIFICAR */
  --color-bg-primary:    #000000;
  --color-bg-secondary:  #0a0a0a;
  --color-bg-card:       #141414;
  --color-gray-mid:      #757572;
  --color-gray-light:    #d6d6d6;
  --color-white:         #ffffff;
  --color-accent:        #ffffff;
  --color-accent-hover:  #d6d6d6;
  --color-accent-glow:   rgba(255, 255, 255, 0.06);
  --color-text-primary:  #ffffff;
  --color-text-secondary:#757572;
  --color-text-muted:    #4a4a48;
  --color-border:        rgba(117, 117, 114, 0.25);
  --color-border-strong: rgba(214, 214, 214, 0.50);
  /* Fonts */
  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Sora', sans-serif;
  /* Spacing scale — rem-based (used in components) */
  --spacing-xs:  0.5rem;
  --spacing-sm:  1rem;
  --spacing-md:  1.5rem;
  --spacing-lg:  2rem;
  --spacing-xl:  3rem;
  --spacing-2xl: 4rem;
  /* Spacing scale — px-based (used in responsive section padding) */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   64px;
  --space-xl:   96px;
  --space-2xl:  128px;
  /* Typography scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;
  --text-9xl:  8rem;
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* ============================================
   2. CSS reset and base styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
input, textarea, select {
  font-family: inherit;
}
/* ============================================
   3. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}
h1 { font-size: clamp(32px, 6vw, var(--text-8xl)); }
h2 { font-size: clamp(28px, 4.5vw, var(--text-6xl)); }
h3 { font-size: clamp(22px, 3.5vw, var(--text-4xl)); }
h4 { font-size: clamp(18px, 2.5vw, var(--text-3xl)); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }
p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-accent-hover);
}
/* ============================================
   4. Layout utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section {
  padding: var(--space-2xl) 0;
}
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.hidden       { display: none; }
.block        { display: block; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.justify-around   { justify-content: space-around; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.mt-2xl { margin-top: var(--spacing-2xl); }
/* ============================================
   5. Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================
   6. Section divider
   ============================================ */
.section-angled {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 100%);
}
/* ============================================
   12. Utility classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
/* ============================================
   13. Media queries — all breakpoints together
   ============================================ */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-sm);
  }
  .section {
    padding: var(--space-lg) 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-md);
  }
  .section {
    padding: var(--space-xl) 0;
  }
}
@media (min-width: 768px) {
  .md\:flex  { display: flex; }
  .md\:grid  { display: grid; }
  .md\:text-left   { text-align: left; }
  .md\:text-center { text-align: center; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
}
