/* Habilitando Aprendizajes · hoja de estilos única.
   Base: design system GE 2026 (tokens.css). Móvil primero (375 px),
   dos puntos de quiebre: 640 px y 960 px. */

@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/RedHatDisplay-Light.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/RedHatDisplay-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/RedHatDisplay-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/RedHatDisplay-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/RedHatDisplay-Bold.woff2') format('woff2'); }

/* ---- Tokens del sitio (semánticos, sobre los de marca) ---- */
:root {
  --fondo: var(--ge-blanco);
  --superficie: var(--ge-gris-fondo);
  --borde: var(--ge-gris-borde);
  --texto: var(--ge-slate);
  --texto-suave: #56646B;           /* gris-texto oscurecido para AA sobre blanco */
  --primario: var(--ge-teal);
  --primario-texto: var(--ge-teal);
  --cta: var(--ge-magenta);
  --cta-hover: #9A0058;
  --verde-texto: #8B9000;
  --chip-fondo: #F3F5D0;
  --chip-borde: #D6DA6A;
  --chip-texto: var(--ge-slate);
  --foco: var(--ge-magenta);
  --radio: 6px;
  --gutter: 16px;
  --ancho: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0E1A1F;
    --superficie: #15262D;
    --borde: #2A3F47;
    --texto: #E4EAEC;
    --texto-suave: #A8B6BC;
    --primario: #1F6F80;
    --primario-texto: #7CCBDB;
    --cta: #C0006E;
    --cta-hover: #D9268A;
    --verde-texto: #D2D85A;
    --chip-fondo: #2A2E10;
    --chip-borde: #6E7212;
    --chip-texto: #E9ECC4;
    --foco: #FF7AC0;
    color-scheme: dark;
  }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--ge-font);
  font-weight: var(--ge-weight-body);
  font-size: var(--ge-size-cuerpo);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primario-texto); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-weight: var(--ge-weight-heading); line-height: 1.2; color: var(--primario-texto); margin: 0 0 0.5em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); margin-top: 1.6em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.seccion { padding-top: 2rem; padding-bottom: 2rem; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--primario); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.saltar:focus { left: var(--gutter); }
.antetitulo { font-size: var(--ge-size-etiqueta); font-weight: var(--ge-weight-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: 0.5rem; }
.intro { font-size: 1.1rem; font-weight: var(--ge-weight-body-long); max-width: 46rem; }
.vacio { padding: 1.5rem; background: var(--superficie); border-radius: var(--radio); color: var(--texto-suave); }
.nota { font-size: 0.9rem; color: var(--texto-suave); }
.punto { display: inline-block; width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--acento, var(--primario)); margin-right: 0.45em; vertical-align: 0.05em; flex: none; }

/* ---- Botones y enlaces ---- */
.boton { display: inline-block; padding: 0.75rem 1.25rem; border-radius: var(--radio); font-weight: var(--ge-weight-heading); text-decoration: none; line-height: 1.2; }
.boton--cta { background: var(--cta); color: #fff; }
.boton--cta:hover { background: var(--cta-hover); }
.boton-texto { background: none; border: 0; padding: 0.25rem 0; font: inherit; color: var(--primario-texto); text-decoration: underline; cursor: pointer; }
.enlace-flecha { font-weight: var(--ge-weight-heading); text-decoration: none; }
.enlace-flecha::after { content: " →"; }
.enlace-flecha:hover { text-decoration: underline; }

/* ---- Cabecera y navegación ---- */
.cabecera { border-bottom: 1px solid var(--borde); background: var(--fondo); }
.cabecera__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.marca { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--texto); }
.marca img { width: 64px; height: auto; }
.marca__nombre { display: none; font-weight: var(--ge-weight-heading); color: var(--primario-texto); border-left: 1px solid var(--borde); padding-left: 0.75rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1rem; align-items: center; }
.nav a, .nav summary { color: var(--texto); text-decoration: none; font-weight: 500; padding: 0.4rem 0; display: inline-block; cursor: pointer; }
.nav a[aria-current="page"], .nav summary.activo { color: var(--primario-texto); box-shadow: inset 0 -2px 0 var(--primario); }
.nav a:hover, .nav summary:hover { color: var(--primario-texto); }
.nav__menu { position: relative; }
.nav__menu summary { list-style: none; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary::after { content: ""; display: inline-block; margin-left: 0.35em; border: 0.3em solid transparent; border-top-color: currentColor; vertical-align: -0.05em; }
.nav__menu ul { position: absolute; right: 0; top: 100%; z-index: 5; display: block; min-width: 13rem; background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 0.4rem 0; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.nav__menu li a { display: flex; align-items: center; padding: 0.5rem 1rem; }
.nav__menu li a:hover { background: var(--superficie); }

/* ---- Pie ---- */
.pie { margin-top: 3rem; border-top: 4px solid var(--primario); background: var(--superficie); font-size: 0.9rem; color: var(--texto-suave); }
.pie__fila { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pie img { width: 88px; }
.pie p { margin: 0 0 0.5rem; max-width: 52rem; }
.pie__nota { font-weight: var(--ge-weight-heading); color: var(--texto); }

/* ---- Portada ---- */
.portada { background: var(--superficie); border-bottom: 1px solid var(--borde); padding: 2.5rem 0; }
.portada__titulo { font-size: var(--ge-size-titulo); margin-bottom: 0.4rem; }
.portada__bajada { font-size: clamp(1.1rem, 3.5vw, 1.4rem); font-weight: var(--ge-weight-body-long); max-width: 40rem; margin-bottom: 1.5rem; }
.resumen-programa { display: grid; gap: 1.5rem; }
.resumen-programa h2 { margin-top: 0; font-size: 1.15rem; }
.resumen-programa p { font-weight: var(--ge-weight-body-long); }
.cifras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cifras li { border-top: 3px solid var(--primario); padding-top: 0.6rem; display: flex; flex-direction: column; }
.cifras__valor { font-size: clamp(2rem, 8vw, 2.75rem); font-weight: var(--ge-weight-heading); color: var(--primario-texto); line-height: 1.1; }
.cifras__etiqueta { font-size: 0.9rem; color: var(--texto-suave); }
.recorridos { display: grid; gap: 1rem; }
.recorrido { border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.25rem; background: var(--fondo); }
.recorrido h3 { margin-bottom: 0.4rem; }
.lista-slep { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.lista-slep a { font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; }
.lista-slep a:hover { text-decoration: underline; }
.seccion--cta { text-align: center; border-top: 1px solid var(--borde); }

/* ---- Chips ---- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: var(--ge-size-etiqueta); font-weight: 500; background: var(--chip-fondo); color: var(--chip-texto); border: 1px solid var(--chip-borde); border-radius: 999px; padding: 0.15rem 0.6rem; }

/* ---- Tarjetas ---- */
.tarjetas { display: grid; gap: 1rem; }
.tarjeta { position: relative; border: 1px solid var(--borde); border-left: 5px solid var(--acento); border-radius: var(--radio); padding: 1rem 1.1rem; background: var(--fondo); display: flex; flex-direction: column; gap: 0.35rem; }
.tarjeta:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.tarjeta:focus-within { outline: 3px solid var(--foco); outline-offset: 2px; }
.tarjeta[hidden] { display: none; }
.tarjeta p { margin: 0; }
.tarjeta__slep { font-size: var(--ge-size-etiqueta); font-weight: var(--ge-weight-label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--texto-suave); display: flex; align-items: center; }
.tarjeta__titulo { font-size: 1.1rem; margin: 0; }
.tarjeta__titulo a { text-decoration: none; color: var(--primario-texto); }
.tarjeta__titulo a::after { content: ""; position: absolute; inset: 0; } /* tarjeta entera clicable */
.tarjeta__titulo a:focus-visible { outline: none; }
.tarjeta__liceo { font-weight: 500; }
.tarjeta__resumen { font-weight: var(--ge-weight-body-long); flex: 1; margin-bottom: 0.4rem !important; }

.etiqueta-ejemplo { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.04em; border: 1px solid var(--texto-suave); border-radius: 999px; padding: 0 0.5rem; }
.nota-previa { margin-top: 1.5rem; padding: 0.75rem 1rem; border: 1px dashed var(--texto-suave); border-radius: var(--radio); font-size: 0.95rem; color: var(--texto-suave); }
.nota-previa blockquote { margin: 0; }
.nota-previa p:last-child { margin-bottom: 0; }

/* ---- Filtros de la galería ---- */
.filtros { display: grid; gap: 1rem; margin: 1.5rem 0; padding: 1rem; background: var(--superficie); border-radius: var(--radio); }
.filtros__busqueda span { display: block; font-weight: var(--ge-weight-heading); margin-bottom: 0.3rem; }
.filtros__busqueda input { width: 100%; font: inherit; color: var(--texto); background: var(--fondo); border: 1px solid #8A989F; border-radius: var(--radio); padding: 0.6rem 0.75rem; }
.filtros__grupo { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtros__grupo legend { font-weight: var(--ge-weight-heading); padding: 0; margin-bottom: 0.4rem; }
.chip-filtro { font: inherit; font-size: 0.9rem; display: inline-flex; align-items: center; cursor: pointer; background: var(--fondo); color: var(--texto); border: 1px solid var(--borde); border-radius: 999px; padding: 0.35rem 0.8rem; min-height: 2.25rem; }
.chip-filtro:hover { border-color: var(--primario); }
.chip-filtro[aria-pressed="true"] { background: var(--primario); border-color: var(--primario); color: #fff; }
.chip-filtro[aria-pressed="true"] .punto { box-shadow: 0 0 0 2px #fff; }
.chip-filtro--estrategia { border-color: var(--chip-borde); background: var(--chip-fondo); color: var(--chip-texto); }
.filtros__estado { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.filtros__estado p { margin: 0; font-weight: var(--ge-weight-heading); }

/* ---- Página de proyecto ---- */
.proyecto__cabecera { background: var(--superficie); border-top: 6px solid var(--acento); border-bottom: 1px solid var(--borde); padding: 1.25rem 0 1.5rem; }
.migas { font-size: 0.9rem; color: var(--texto-suave); margin-bottom: 1rem; }
.proyecto__liceo { font-size: 1.15rem; font-weight: var(--ge-weight-heading); margin-bottom: 0.4rem; }
.proyecto__resumen { font-size: 1.1rem; font-weight: var(--ge-weight-body-long); max-width: 46rem; }
.ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; margin: 1.25rem 0 0; }
.ficha div { min-width: 0; }
.ficha__ancho { grid-column: 1 / -1; }
.ficha dt { font-size: var(--ge-size-etiqueta); font-weight: var(--ge-weight-label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--texto-suave); }
.ficha dd { margin: 0; font-weight: 500; }
.afiche { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-top: 1.25rem; }
.afiche__miniatura img { width: 140px; border: 1px solid var(--borde); border-radius: 4px; background: #fff; }
.proyecto__cuerpo { max-width: 46rem; }
.bloque h2 { padding-top: 0.75rem; border-top: 1px solid var(--borde); }
.bloque p, .bloque li, .prosa p, .prosa li { font-weight: var(--ge-weight-body-long); }
.relato { margin: 2rem 0 0; padding: 1.25rem 1.25rem 0.5rem; background: var(--superficie); border-left: 4px solid var(--cta); border-radius: 0 var(--radio) var(--radio) 0; }
.relato h2 { margin-top: 0; font-size: 1.15rem; }
.relato p { font-size: 1.1rem; font-style: italic; }
.fotos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.fotos a { display: block; }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--superficie); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100vh - 2 * var(--gutter)); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 6rem); margin: 0 auto; }
.lightbox__controles { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.lightbox__controles button { font: inherit; font-weight: var(--ge-weight-heading); min-width: 2.75rem; min-height: 2.75rem; border: 0; border-radius: var(--radio); background: #fff; color: var(--ge-slate); cursor: pointer; padding: 0 0.9rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ge-teal); border-radius: var(--radio); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__activar { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff; font: inherit; font-weight: var(--ge-weight-heading); font-size: 1.1rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; }
.video__activar small { font-weight: var(--ge-weight-body); font-size: 0.85rem; opacity: 0.9; }
.video__play { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ge-magenta); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; padding-left: 0.2rem; }
.recursos { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.recursos a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--borde); border-radius: var(--radio); text-decoration: none; }
.recursos a:hover { border-color: var(--primario); }
.recursos__nombre { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.recursos__meta { color: var(--texto-suave); font-size: 0.9rem; white-space: nowrap; }
.relacionados { border-top: 1px solid var(--borde); margin-top: 2rem; }

/* ---- Página SLEP ---- */
.slep-cabecera { background: var(--superficie); border-top: 8px solid var(--acento); border-bottom: 1px solid var(--borde); padding: 1.5rem 0; }
.cifras--compactas { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 36rem; margin-top: 1rem; }
.cifras--compactas li { border-top-color: var(--acento); }
.cifras--compactas .cifras__valor { font-size: clamp(1.5rem, 6vw, 2.1rem); }
.prosa { max-width: 46rem; }

/* ---- Página del programa ---- */
.toc { background: var(--superficie); border-radius: var(--radio); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 46rem; }
.toc h2 { font-size: 1rem; margin: 0 0 0.4rem; color: var(--texto); }
.toc ol { margin: 0; }
.toc li { margin: 0.2rem 0; }
.programa .prosa h2 { scroll-margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--borde); }

/* ---- 640 px ---- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .marca__nombre { display: inline; }
  .marca img { width: 72px; }
  .cifras { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cifras--compactas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fotos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ficha { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pie__fila { flex-direction: row; align-items: flex-start; gap: 2rem; }
  .portada { padding: 4rem 0; }
}

/* ---- 960 px ---- */
@media (min-width: 960px) {
  .resumen-programa, .recorridos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filtros { grid-template-columns: 1fr 1fr; align-items: start; }
  .filtros__busqueda, .filtros__estado { grid-column: 1 / -1; }
  .filtros__busqueda input { max-width: 28rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
