/* ============================================================
   EASY TRADING ACADEMY — Base & Reset
   Estilos globales, tipografía base y utilidades genéricas.
   ============================================================ */

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


/* ── RESET ───────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-secondary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }

ul, ol { list-style: none; }


/* ── TIPOGRAFÍA ──────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
}

h1 { font-size: var(--fs-h1);   font-weight: var(--fw-black); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3);   font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-h4);   font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-small);font-weight: var(--fw-semibold); }

p { font-size: var(--fs-body-l); }

strong { font-weight: var(--fw-semibold); color: var(--text-primary); }

@media (max-width: 768px) {
  h1 { font-size: var(--fs-h1-m); }
  h2 { font-size: var(--fs-h2-m); }
  h3 { font-size: var(--fs-h3-m); }
  h4 { font-size: var(--fs-h4-m); }
  p  { font-size: var(--fs-body); }
}


/* ── LAYOUT BASE ─────────────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.container--sm { max-width: var(--container-sm); }
.container--xs { max-width: var(--container-xs); }

section {
  padding: var(--sp-7) 0;
}

@media (max-width: 768px) {
  section { padding: var(--sp-5) 0; }
  .container { padding: 0 var(--sp-2); }
}


/* ── UTILIDADES ──────────────────────────────────────────── */

/* Texto */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Eyebrow (etiqueta sobre títulos) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.eyebrow--line::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow--pill {
  padding: 6px 14px;
  background: var(--accent-muted);
  border-radius: var(--radius-pill);
}

/* Lead (bajada de título) */
.lead {
  font-size: var(--fs-body-l);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  max-width: 680px;
}

/* Section header */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.section-head h2 { margin-bottom: var(--sp-2); }
.section-head .lead { margin: 0 auto; }

.section-head--left {
  text-align: left;
  margin: 0;
}

/* Divisor */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-5) 0;
}

/* Visibilidad responsive */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
