/* R1 v1.1 · hoja comun de las PAGINAS NUEVAS (FENIX S7, actividad 1, 22-oct-2026).
   Fuente de verdad: 16_UX DESIGN AND PRINCIPLES/R1_REGLAS_DISENO_WEB_v1.1_2026-10-17.html, seccion 4.
   Reglas de esta hoja:
   - Todo color, tamano, espacio, radio y sombra vive en :root. Fuera de :root no se escribe
     ni un hex ni un px (sello: build_worker.py lo cuenta y para si encuentra alguno).
     Las condiciones de @media son la unica excepcion: son los dos cortes de 5.3.
   - La letra va en rem (4.2): crece con la letra del lector y la prueba del 200 % la ve.
   - Lo estructural (margenes, columnas) va en px o en proporcion, nunca en rem (4.3, AC1).
   - Valores de partida = la marca de hoy. Si D6 (S10) elige otra cara, cambian los valores;
     los nombres se quedan. Titulos: Source Serif 4 600 desde R1 v1.2 (17-nov, web seq 89 y 90).
   - Las letras se sirven desde nuestro dominio (LE1, VE3): cero peticiones a Google.
   - Las paginas viejas NO enlazan esta hoja: no cambian de aspecto (S18). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal-f052ee44.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal-48f540fb.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* LE1 y LE2 (R1 v1.2, 17-nov-2026): Source Serif 4, solo el 600, para los titulos de 22 px para arriba.
   Desde nuestro dominio, latin y latin extendido. La alternativa ajustada (Times New Roman Bold,
   o Liberation Serif en Linux) tiene las medidas de la serif: el titulo no salta al cargar (CLS 0, web seq 90). */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/source-serif-4-latin-600-normal-f2b7e1cf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/fonts/source-serif-4-latin-ext-600-normal-ba70bfd7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4 alternativa';
  font-style: normal;
  font-weight: 600;
  src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Liberation Serif Bold'), local('LiberationSerif-Bold');
  size-adjust: 110.09%;
  ascent-override: 94.11%;
  descent-override: 30.43%;
  line-gap-override: 0%;
}
:root {
  /* 4.1 Color: 12 con nombre (por funcion, nunca por valor) */
  --tinta: #020548;
  --texto: #1c1b1b;
  --apagado: #62626c;
  --acento: #0058bc;
  --acento-hover: #00479a;
  --papel: #fcf9f8;
  --banda: #f6f3f2;
  --tarjeta: #ffffff;
  --acento-suave: rgba(0, 88, 188, .06);
  --bien: #047857;
  --mal: #b42318;
  --aviso: #b45309;

  /* 4.2 Letra: una familia para el texto, 6 tamanos, 3 pesos (en rem; px = referencia) */
  --f-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-titulo: 'Source Serif 4', 'Source Serif 4 alternativa', Georgia, serif;   /* LE1 v1.2 */
  --t-dato: 0.875rem;                                  /* 14 px, el minimo de la web */
  --t-ui: 1rem;                                        /* 16 px */
  --t-lectura: 1.0625rem;                              /* 17 px en movil; 18 desde 640 */
  --t-h3: 1.375rem;                                    /* 22 px */
  --t-h2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);       /* 24 a 30 px */
  --t-h1: clamp(2rem, 1.4rem + 2.4vw, 3rem);           /* 32 a 48 px */
  --lh-dato: 1.4;
  --lh-ui: 1.4;
  --lh-lectura: 1.65;
  --lh-h3: 1.25;
  --lh-h2: 1.2;
  --lh-h1: 1.1;
  --w-normal: 400;
  --w-medio: 600;
  --w-fuerte: 800;
  --mayus-espacio: 0.07em;                             /* LE3: 0,06 a 0,08 em */

  /* 4.3 Espacio: 8 pasos */
  --e-1: 4px;
  --e-2: 8px;
  --e-3: 12px;
  --e-4: 16px;
  --e-5: 24px;
  --e-6: 40px;
  --e-7: 64px;
  --e-8: 96px;

  /* 4.4 Esquinas y sombras (sombras tintadas de tinta, nunca grises) */
  --r: 12px;
  --r-pieza: 20px;
  --r-pildora: 999px;
  --r-circulo: 50%;
  --sombra-1: 0 1px 2px rgba(2, 5, 72, .06), 0 4px 12px rgba(2, 5, 72, .06);
  --sombra-2: 0 8px 24px rgba(2, 5, 72, .14);
  --borde: 2px;                                        /* grosor del borde del boton de cabecera (seccion 6) */

  /* 5.2 y 5.3 Maquetacion */
  --contenedor: 1200px;
  --margen: 16px;                                      /* 24 desde 640 */
  --lectura: 68ch;                                     /* LC1 */
  --tactil: 44px;                                      /* MO1, CB5 */
  --foco: 3px;                                         /* AX1 */

  /* MV5 Curvas fijas */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* 5.3 Dos cortes, y solo dos: 640 y 1024 */
@media (min-width: 640px) {
  :root {
    --t-lectura: 1.125rem;                             /* 18 px */
    --margen: 24px;
  }
}

/* Base minima. Solo tokens: aqui no hay ni un hex ni un px. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
  font-weight: var(--w-normal);
  color: var(--texto);
  background: var(--papel);
}
h1, h2, h3 { font-family: var(--f-titulo); color: var(--tinta); text-wrap: balance; margin: 0; font-weight: var(--w-medio); font-style: normal; font-synthesis-weight: none; }
h1 { font-size: var(--t-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); font-weight: var(--w-medio); }
p { text-wrap: pretty; margin: 0; }
small { font-size: var(--t-dato); line-height: var(--lh-dato); }
a { color: var(--acento); }
:focus-visible { outline: var(--foco) solid var(--tinta); outline-offset: var(--foco); }
img { max-width: 100%; height: auto; }

.r1-contenedor { max-width: var(--contenedor); margin-inline: auto; padding-inline: var(--margen); }
.r1-lectura { max-width: var(--lectura); font-size: var(--t-lectura); line-height: var(--lh-lectura); }
.r1-dato { font-size: var(--t-dato); line-height: var(--lh-dato); color: var(--apagado); }
.r1-etiqueta { font-size: var(--t-dato); font-weight: var(--w-medio); text-transform: uppercase; letter-spacing: var(--mayus-espacio); }

/* AX2: hover solo con raton de verdad */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--acento-hover); }
}

/* ===== 5.4 CABECERA COMUN (CB1 a CB7) · plantilla _components/site/templates/cabecera_r1__<lang>.html =====
   Movil (menos de 640): logo, Entrar, Prep Platform y menu. El idioma va dentro del menu.
   Desde 640: aparece el idioma. Desde 1024: aparecen los 5 enlaces y se va el boton de menu.
   Fondo claro a proposito: el borde de acento sobre la tinta no llega a 3:1 (AX). */
.r1-cab { position: sticky; top: 0; z-index: 50; background: var(--tarjeta); box-shadow: var(--sombra-1); }
.r1-cab__fila { max-width: var(--contenedor); margin-inline: auto; padding: var(--e-2) var(--margen); display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-1); }
/* flex-wrap: con la letra al 200 % (prueba AC1) la fila no cabe y pasa a dos lineas en vez de salirse. A tamano normal sigue en una. */
.r1-cab__logo { margin-right: auto; display: inline-flex; align-items: center; min-height: var(--tactil); font-size: var(--t-ui); font-weight: var(--w-fuerte); color: var(--tinta); text-decoration: none; white-space: nowrap; }
.r1-cab__logo span { color: var(--acento); }
.r1-cab__nav { display: none; }
.r1-cab__nav a, .r1-cab__entrar, .r1-cab__idioma { display: inline-flex; align-items: center; min-height: var(--tactil); font-size: var(--t-dato); font-weight: var(--w-medio); color: var(--tinta); text-decoration: none; white-space: nowrap; }
.r1-cab__entrar { padding-inline: var(--e-1); }
.r1-cab__prep { display: inline-flex; align-items: center; min-height: var(--tactil); padding-inline: var(--e-2); border: var(--borde) solid var(--acento); border-radius: var(--r-pildora); background: transparent; color: var(--acento); font-size: var(--t-dato); font-weight: var(--w-medio); text-decoration: none; white-space: nowrap; }
.r1-cab__idioma { display: none; justify-content: center; min-width: var(--tactil); gap: var(--e-1); color: var(--apagado); }
.r1-cab__idioma b { color: var(--tinta); font-weight: var(--w-fuerte); }
.r1-cab__menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tactil); min-height: var(--tactil); padding: 0; border: 0; background: transparent; color: var(--tinta); cursor: pointer; }
.r1-cab__menu-btn svg { width: 1.5em; height: 1.5em; }
.r1-cab__menu { max-width: var(--contenedor); margin-inline: auto; padding: 0 var(--margen) var(--e-4); display: grid; }
.r1-cab__menu[hidden] { display: none; }
.r1-cab__menu a { display: flex; align-items: center; min-height: var(--tactil); font-size: var(--t-ui); color: var(--texto); text-decoration: none; }
@media (min-width: 640px) {
  .r1-cab__fila { gap: var(--e-2); }
  .r1-cab__idioma { display: inline-flex; }
  .r1-cab__menu .r1-cab__menu-idioma { display: none; }
}
@media (min-width: 1024px) {
  .r1-cab__logo { margin-right: var(--e-5); }
  .r1-cab__nav { display: flex; flex-wrap: wrap; column-gap: var(--e-4); margin-right: auto; }
  .r1-cab__menu-btn, .r1-cab__menu { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .r1-cab__nav a:hover, .r1-cab__entrar:hover { color: var(--acento); }
  .r1-cab__prep:hover { color: var(--acento-hover); border-color: var(--acento-hover); }
}
