/* ==========================================================
   LLEBIPC – Base: fuentes, variables de diseño y reset
   Valores extraídos del site.css original de Squarespace
   ========================================================== */

/* Poppins alojada localmente (assets/fonts) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  /* Paleta */
  --color-teal: #156573;          /* barra de navegación, títulos y acentos */
  --color-navy: #12164B;          /* textos destacados */
  --color-orange: #DC5A28;        /* llamados a la acción */
  --color-sky: #D9F9FF;           /* fondo de secciones claras */
  --color-accent: rgb(86, 84, 3); /* enlaces y líneas (acento del tema) */
  --color-text: #000;
  --color-bg: #fff;

  /* Tipografía (Poppins en todo el sitio) */
  --font-main: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-weight: 300;
  --body-line-height: 1.8em;
  --heading-weight: 500;
  --heading-line-height: 1.4em;

  /* Escalas de tamaño de Squarespace (multiplicadores de 1rem) */
  --h1: 4;
  --h2: 2.8;
  --h3: 2.2;
  --h4: 1.2;
  --text-large: 1.4;
  --text-small: 0.9;

  /* Medidas de página */
  --max-page-width: 1400px;
  --page-padding: 2vw;          /* margen lateral en escritorio */
  --page-padding-mobile: 6vw;   /* margen lateral en móvil */
}

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

html {
  font-size: 13px;              /* --base-font-size del original */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: var(--body-weight);
  font-size: 1rem;
  line-height: var(--body-line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: var(--heading-weight);
  margin: 2rem 0;
}

p {
  margin: 1rem 0;
  line-height: var(--body-line-height); /* 1.8 × el tamaño propio del párrafo */
}

strong,
b {
  font-weight: 700;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Tamaños de texto (fórmulas originales) ---------- */

/* Escritorio, tablet y móvil horizontal: escalan con el ancho */
h1, .h1 { font-size: min(calc((var(--h1) - 1) * 1.2vw + 1rem), max(calc((var(--h1) - 1) * 0.012 * var(--max-page-width) + 1rem), calc(var(--h1) * 1rem))); line-height: calc(var(--heading-line-height) * (1 + (1 - var(--h1)) / 25)); }
h2, .h2 { font-size: min(calc((var(--h2) - 1) * 1.2vw + 1rem), max(calc((var(--h2) - 1) * 0.012 * var(--max-page-width) + 1rem), calc(var(--h2) * 1rem))); line-height: calc(var(--heading-line-height) * (1 + (1 - var(--h2)) / 25)); }
h3, .h3 { font-size: min(calc((var(--h3) - 1) * 1.2vw + 1rem), max(calc((var(--h3) - 1) * 0.012 * var(--max-page-width) + 1rem), calc(var(--h3) * 1rem))); line-height: calc(var(--heading-line-height) * (1 + (1 - var(--h3)) / 25)); }
h4, .h4 { font-size: min(calc((var(--h4) - 1) * 1.2vw + 1rem), max(calc((var(--h4) - 1) * 0.012 * var(--max-page-width) + 1rem), calc(var(--h4) * 1rem))); line-height: calc(var(--heading-line-height) * (1 + (1 - var(--h4)) / 25)); }
.text-large { font-size: min(calc((var(--text-large) - 1) * 1.2vw + 1rem), max(calc((var(--text-large) - 1) * 0.012 * var(--max-page-width) + 1rem), calc(var(--text-large) * 1rem))); }
.text-small { font-size: calc(var(--text-small) * 1rem); }

/* Móvil vertical: escalan con la altura de la pantalla */
@media screen and (max-width: 767px) and (orientation: portrait) {
  h1, .h1 { font-size: calc((var(--h1) - 1) * 0.012 * min(100vh, 900px) + 1rem); }
  h2, .h2 { font-size: calc((var(--h2) - 1) * 0.012 * min(100vh, 900px) + 1rem); }
  h3, .h3 { font-size: calc((var(--h3) - 1) * 0.012 * min(100vh, 900px) + 1rem); }
  h4, .h4 { font-size: calc((var(--h4) - 1) * 0.012 * min(100vh, 900px) + 1rem); }
  .text-large { font-size: calc((var(--text-large) - 1) * 0.012 * min(100vh, 900px) + 1rem); }
}

/* Colores de texto */
.c-teal { color: var(--color-teal); }
.c-navy { color: var(--color-navy); }
.c-orange { color: var(--color-orange); }
.c-white { color: #fff; }
.c-black { color: #000; }
.t-right { text-align: right; }
.t-center { text-align: center; }
.t-justify { text-align: justify; }
