/* ======================================================
   BASE CSS - Coaching y Resulta2
   Reset, tipografía y comportamiento global
   ====================================================== */

/* Reset moderno (inspirado en Andy Bell y Josh Comeau) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Tipografía base */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-principal);
  font-size: var(--fs-sm);
  color: var(--color-texto);
  background-color: var(--color-fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Links y texto */
a {
  color: var(--color-primario);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  color: var(--color-secundario);
  outline: none;
}

/* Títulos */
h1, h2, h3, h4, h5 {
  font-family: var(--fuente-secundaria);
  color: var(--color-primario);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Listas */
ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

/* Bloques comunes */
section {
  padding: var(--space-16) 0;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Transiciones globales */
button, a, input, textarea {
  transition: all 0.2s ease;
}

/* Selección de texto */
::selection {
  background: var(--color-primario);
  color: #fff;
}

html {
  scroll-padding-top: var(--space-12); /* útil si el header es fijo */
}
