@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900&display=swap');

/* =========================================================
   TIPOGRAFIA — CONSCIENTIA
   Escala fluida con clamp(). Reemplaza los 5 bloques de
   media queries que habia antes: un solo valor por elemento
   que interpola solo entre mobile y desktop.

   COMO SE ARMA UN clamp() QUE REALMENTE ESCALA
   ---------------------------------------------------------
   clamp(MINIMO, PREFERIDO, MAXIMO)

   El PREFERIDO tiene que llevar un componente vw, si no el
   clamp queda fijo y no escala nada. Ejemplo de lo que NO
   sirve: clamp(14px, 1rem, 16px) es siempre 16px.

   La recta se calcula entre dos viewports de referencia,
   aca 375px (mobile) y 1440px (desktop):

     pendiente = (max - min) / (1440 - 375)
     vw        = pendiente * 100
     rem       = (min - pendiente * 375) / 16

   Ejemplo del h1 (32px -> 44px):
     pendiente = 12 / 1065 = 0.011268
     vw        = 1.127vw
     rem       = (32 - 4.23) / 16 = 1.736rem
     => clamp(32px, 1.736rem + 1.127vw, 44px)

   Comprobacion: a 375px da 32px, a 1440px da 44px.

   El componente en rem no es decorativo: hace que el texto
   siga respondiendo al zoom del navegador. Un clamp que solo
   usa vw bloquea el zoom y rompe accesibilidad.
   ========================================================= */

/* --- UTILITARIAS --- */
.comfortaa {
  font-family: "Comfortaa", sans-serif;
}
.lato {
  font-family: "Lato", sans-serif;
}

.light {
  font-weight: 300 !important;
}
.regular {
  font-weight: 400 !important;
}
.bold {
  font-weight: 700 !important;
}

/* --- TITULARES (Comfortaa) ---
   Cada nivel tiene ademas su clase (.h1 ... .h6) para poder separar
   el nivel semantico del tamaño visual. Ejemplo: el titulo de un
   episodio tiene que ser <h1> para Google y para un lector de
   pantalla, pero se ve como un h4: <h1 class="h4 big">. */
h1, .h1 {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 1.736rem + 1.127vw, 44px);
  line-height: 1.15;
}

h2, .h2 {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 1.449rem + 0.751vw, 34px);
  line-height: 1.2;
}

h3, .h3 {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 1.265rem + 0.469vw, 27px);
  line-height: 1.25;
}

/* --- SUBTITULOS (Lato, para contraste con los titulares) --- */
h4, .h4 {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(19px, 1.121rem + 0.282vw, 22px);
  line-height: 1.3;
}
h4.big, .h4.big {
  font-size: clamp(20px, 1.14rem + 0.469vw, 25px);
}

h5, .h5 {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.019rem + 0.188vw, 19px);
  line-height: 1.35;
}

h6, .h6 {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 0.916rem + 0.094vw, 17px);
  line-height: 1.4;
}

/* --- CUERPO DE TEXTO ---
   line-height 1.6: el texto corrido necesita aire entre
   lineas. WCAG 1.4.12 pide 1.5 como minimo. */
p {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 0.831rem + 0.188vw, 18px);
  line-height: 1.2;
}

.p-sm {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 0.831rem + 0.188vw, 16px);
  line-height: 1.2;
}

.p-md {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 0.916rem + 0.094vw, 20px);
  line-height: 1.6;
}

.p-lg {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 0.956rem + 0.188vw, 22px);
  line-height: 1.5;
}

a {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 0.831rem + 0.188vw, 18px);
  text-decoration: none;
  color: inherit;
}

/* --- BOTONES Y NAVEGACION --- */
.btn-text,
.nav-link {
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 0.791rem + 0.094vw, 18px);
  line-height: 1.2;
}

.btn-big {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 0.894rem + 0.188vw, 20px);
  line-height: 1.2;
}

/* --- FORMULARIOS --- */
input::placeholder,
textarea::placeholder,
input,
textarea {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 0.831rem + 0.188vw, 18px);
  line-height: 1.5;
}
