/* =====================================================================
   GLOBAL — Reset, tipografía base, utilidades, contenedor
   ===================================================================== */

/* ----- Reset mínimo ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente);
  font-weight: var(--peso-normal);
  font-size: 15px;
  color: var(--color-texto);
  background: var(--color-fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

/* ----- Tipografía base ----- */

h1,
.h1 {
  font-size: 26px;
  font-weight: var(--peso-bold);
  color: var(--color-texto);
  line-height: 1.25;
}

h2,
.h2 {
  font-size: 22px;
  font-weight: var(--peso-bold);
  color: var(--color-acento);
  line-height: 1.3;
}

h3,
.h3 {
  font-size: 15px;
  font-weight: var(--peso-bold);
  color: var(--color-primario);
  line-height: 1.4;
}

p {
  font-size: 14px;
  font-weight: var(--peso-normal);
  color: var(--color-texto-secundario);
  line-height: 1.75;
}

/* ----- Contenedor central ----- */

.contenedor {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ----- Utilidades de botones compartidas ----- */

.btn-primario,
.btn-secundario,
.btn-cta,
.btn-hero,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fuente);
  font-weight: var(--peso-bold);
  font-size: 14px;
  border-radius: var(--radio-small);
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* ----- H2 de bloque compartido ----- */

.bloque-h2 {
  font-size: 22px;
  font-weight: var(--peso-bold);
  color: var(--color-acento);
  text-align: center;
  margin-bottom: 32px;
}

/* ----- Sección padding compartido ----- */

section {
  padding: var(--padding-seccion-movil);
}

@media (min-width: 768px) {
  h1,
  .h1 {
    font-size: 38px;
  }

  h2,
  .h2 {
    font-size: 30px;
  }

  h3,
  .h3 {
    font-size: 16px;
  }

  p {
    font-size: 15px;
  }

  .bloque-h2 {
    font-size: 30px;
    margin-bottom: 48px;
  }

  section {
    padding: var(--padding-seccion);
  }
}
