/* =========================================================================
   BECAS G&G — SISTEMA DE DISEÑO v2 «Aula Premium» (22-sep-2026)
   Portado TAL CUAL de `ops/rediseno_premium/html/gg.css` (fuente única de
   verdad del prototipo, ver LEEME.md de esa carpeta) — mismos nombres de
   token y de clase, mismo ámbito raíz `.gg`, sin prefijo `ap-`. Única
   diferencia con el original: el `@font-face` de Sora, añadido aquí porque
   el prototipo lo carga de Google Fonts y el portal aloja las fuentes él
   mismo (privacidad de menores, ver style.css §Tipografía). Nunito ya la
   declara `style.css` vía class-gta-fuente-nunito.php.
   ========================================================================= */

@font-face {
  font-family: 'Sora';
  src: url('../fuentes/sora-variable-latino.woff2') format('woff2-variations'),
       url('../fuentes/sora-variable-latino.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Neutros (base cálida, no gris frío) ---- */
  --ground: #F5F3EC;        /* fondo de la app */
  --surface: #FFFFFF;       /* tarjetas */
  --surface-2: #FBFAF6;     /* superficies secundarias */
  --line: #E7E3D8;          /* bordes */
  --line-2: #EFECE3;
  --ink-900: #0F1F1D;       /* texto principal  — 16.8:1 sobre blanco */
  --ink-700: #2A3A38;
  --ink-500: #55635F;       /* texto secundario — 6.1:1 sobre blanco, 5.6:1 sobre ground */
  --ink-400: #5F6B68;       /* metadatos — 5.5:1 sobre blanco (P23 Q2c1: #6E7B78 daba 4.4:1, bajo el 4.5 AA) */
  --ink-300: #A7B1AE;       /* solo decorativo */

  /* ---- Marca ---- */
  --teal-950: #042F2C;
  --teal-900: #073C38;
  --teal-800: #0A4A45;
  --teal-700: #0E5B55;      /* PRIMARIO — blanco encima 7.9:1 */
  --teal-600: #11706A;
  --teal-500: #14766E;
  --teal-400: #2E9589;
  --teal-300: #5FB3A9;
  --teal-100: #DCEDEA;
  --teal-50:  #EEF6F4;

  /* ---- Logro (oro del certificado) ---- */
  --gold-700: #8A5A0E;      /* texto dorado sobre claro — 5.9:1 */
  --gold-600: #A87C34;
  --gold-500: #D9A031;
  --gold-400: #F1C04E;
  --gold-100: #FBEFD2;
  --gold-50:  #FDF7E8;

  /* ---- Urgencia / estado ---- */
  --coral-700: #9E3525;
  --coral-600: #B8432F;
  --coral-100: #FBE4DF;
  --ok-700: #1F6B3A;  --ok-100: #E2F2E7;
  --info-700: #1D5A94; --info-100: #E3EEF9;
  --live: #E5484D;          /* «En vivo» */

  /* ---- Color por curso (portadas, chips, acentos de curso) ---- */
  --c-excel: #1E7B4F;   --c-excel-soft: #E4F2EA;
  --c-pbi: #B07A06;     --c-pbi-soft: #FCF1D6;
  --c-canva: #6A3FD0;   --c-canva-2: #16A3C4; --c-canva-soft: #EEE8FB;
  --c-gemini: #3456E0;  --c-gemini-2: #8B5CF6; --c-gemini-soft: #EAEEFD;
  --c-sap: #0A5FB4;     --c-sap-soft: #E4EEF9;
  --c-ia: #7C3AED;      --c-ia-soft: #F0E9FE;
  --c-code: #D9480F;    --c-code-soft: #FDEBE3;

  /* ---- Tipografía ---- */
  --font-display: 'Sora', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-d1: 44px;  --lh-d1: 52px;   /* hero */
  --fs-h1: 34px;  --lh-h1: 42px;   /* título de página */
  --fs-h2: 24px;  --lh-h2: 32px;   /* sección */
  --fs-h3: 19px;  --lh-h3: 26px;   /* tarjeta */
  --fs-body: 16px; --lh-body: 26px;
  --fs-sm: 14px;  --lh-sm: 22px;
  --fs-xs: 12.5px; --lh-xs: 18px;

  /* ---- Geometría ---- */
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px; --r-xs: 8px; --r-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-7: 32px; --sp-8: 40px; --sp-9: 56px; --sp-10: 72px;
  --shadow-1: 0 1px 2px rgb(15 31 29 / .05), 0 1px 1px rgb(15 31 29 / .03);
  --shadow-2: 0 1px 2px rgb(15 31 29 / .04), 0 6px 18px -6px rgb(15 31 29 / .10);
  --shadow-3: 0 2px 4px rgb(15 31 29 / .05), 0 18px 40px -12px rgb(15 31 29 / .18);
  --ring: 0 0 0 3px rgb(20 118 110 / .35);
  --touch: 44px;
  --nav-h: var(--navbar-h);
  --content: 1200px;
}

/* ======================= Base ======================= */
.gg { font-family: var(--font-body); color: var(--ink-900); background: var(--ground);
  font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
.gg *, .gg *::before, .gg *::after { box-sizing: border-box; }
.gg h1, .gg h2, .gg h3, .gg h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; color: var(--ink-900); }
.gg h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; }
.gg h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
.gg h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.gg p { margin: 0; }
.gg a { color: var(--teal-700); text-decoration: none; }
.gg .num { font-variant-numeric: tabular-nums; }
.gg .muted { color: var(--ink-500); }
.gg .meta { color: var(--ink-400); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.gg .page { max-width: var(--content); margin: 0 auto; padding: 36px 40px 72px; }
.gg .row { display: flex; gap: var(--sp-6); }
.gg .stack { display: flex; flex-direction: column; }
/* B1 (TANDA 24-SEP-P14B): sin `.gg ` — `GTA_UI::ico()` no pone width/height en el `<svg>`, así
 * que la pantalla que lo use fuera de un contenedor `.gg` (DocenteMiAula, DocenteReportes,
 * DocenteAlumno, Secretaría, los botones de cabecera de DireccionAulas, MovilDocente) se quedaba
 * sin regla que lo mida y el navegador lo pintaba a su tamaño intrínseco (100 px o más). */
/* B3 (TANDA 24-SEP-P14B): mismo motivo — `.eyebrow` de la cabecera del prototipo (DireccionAulas,
 * DireccionPersonas, DireccionBandeja, DireccionSesiones, DireccionInformes, DocenteMiAula,
 * DocenteSesiones) vive fuera de `.gg`; Secretaría ya lo usaba sin efecto por lo mismo. */
.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--teal-600); }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 24px; height: 24px; }

/* ======================= Navegación ======================= */
.gg .nav { height: var(--nav-h); white-space: nowrap; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 28px; gap: 16px; position: relative; z-index: 40; }
.gg .brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink-900); }
.gg .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-50); display: grid; place-items: center; border: 1px solid var(--gold-100); }
.gg .brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .06em; color: var(--ink-400); text-transform: uppercase; line-height: 12px; }
.gg .nav-links { display: flex; gap: 2px; margin-left: 8px; }
.gg .nav-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; color: var(--ink-700); white-space: nowrap; position: relative; }
.gg .nav-link .pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--coral-600); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }
.gg .nav-link .ico { width: 18px; height: 18px; color: var(--ink-400); }
.gg .nav-link.is-active { background: var(--teal-50); color: var(--teal-800); box-shadow: inset 0 0 0 1px var(--teal-100); }
.gg .nav-link.is-active .ico { color: var(--teal-600); }
.gg .nav-spacer { flex: 1; }
.gg .nav-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.gg .nav-chip .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.gg .icon-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink-700); position: relative; }
.gg .badge-dot { position: absolute; top: 6px; right: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral-600); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid #fff; }
.gg .avatar-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 4px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink-900); }
.gg .avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--gold-50); flex: none; }
.gg .menu { position: absolute; right: 32px; top: 64px; width: 280px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: 8px; z-index: 60; }
.gg .menu-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.gg .menu-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink-700); font-weight: 700; font-size: 15px; }
.gg .menu-item:hover { background: var(--teal-50); }
.gg .menu-item.danger { color: var(--coral-700); }
.gg .menu-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }

/* ======================= Botones ======================= */
.gg .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 800; font-size: 16px; border: 0; cursor: pointer; white-space: nowrap; }
.gg .btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 6px 16px -6px rgb(14 91 85 / .6); }
.gg .btn-primary:hover { background: var(--teal-800); }
.gg .btn-gold { background: var(--gold-400); color: var(--ink-900); box-shadow: 0 6px 16px -8px rgb(169 124 52 / .8); }
.gg .btn-light { background: #fff; color: var(--teal-800); }
.gg .btn-ghost { background: transparent; color: var(--teal-700); box-shadow: inset 0 0 0 1.5px var(--teal-100); }
.gg .btn-soft { background: var(--teal-50); color: var(--teal-800); }
.gg .btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.gg .btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.gg .btn-block { width: 100%; }
.gg .btn[disabled], .gg .btn.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ======================= Tarjetas y chips ======================= */
.gg .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.gg .card-pad { padding: 24px; }
.gg .card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gg .card-title h3 { display: flex; align-items: center; gap: 10px; }
.gg .link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--teal-700); }
.gg .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 800; background: var(--teal-50); color: var(--teal-800); white-space: nowrap; }
.gg .chip .ico { width: 14px; height: 14px; }
.gg .chip-gold { background: var(--gold-100); color: var(--gold-700); }
.gg .chip-coral { background: var(--coral-100); color: var(--coral-700); }
.gg .chip-ok { background: var(--ok-100); color: var(--ok-700); }
.gg .chip-info { background: var(--info-100); color: var(--info-700); }
.gg .chip-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-700); }
.gg .chip-live { background: #FDECEC; color: #B4232A; }
.gg .chip-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgb(229 72 77 / .18); }
.gg .seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); }
.gg .seg a { height: 38px; padding: 0 16px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--ink-500); }
.gg .seg a.is-active { background: var(--teal-700); color: #fff; }
.gg .seg .count { font-size: 12px; padding: 0 7px; border-radius: 10px; background: rgb(15 31 29 / .07); line-height: 20px; }
.gg .seg a.is-active .count { background: rgb(255 255 255 / .18); }

/* ======================= Progreso ======================= */
.gg .bar { height: 8px; background: var(--teal-100); border-radius: 8px; overflow: hidden; }
.gg .bar > span { display: block; height: 100%; border-radius: 8px; background: var(--teal-500); }
.gg .bar.gold > span { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); }
.gg .bar-lg { height: 12px; }
/* B7 (TANDA 24-SEP-P14B): mismo patrón que B1 con `.ico` — sin `.gg `, porque DocenteAlumno
 * (<main class="wrap">, sin envoltorio `.gg`) montaba el «0 %» del anillo, sin `position:
 * absolute`, encima del texto «de su beca» de abajo en vez de centrarlo dentro del círculo. */
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-val { position: absolute; text-align: center; font-family: var(--font-display); font-weight: 800; line-height: 1; }
.ring .ring-val small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 11px; color: var(--ink-400); margin-top: 4px; letter-spacing: .04em; }

/* ======================= Portadas de curso ======================= */
.gg .cover { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; }
.gg .cover svg { display: block; width: 100%; height: 100%; }

/* ======================= Formularios ======================= */
.gg .field { display: flex; flex-direction: column; gap: 8px; }
.gg .label { font-weight: 800; font-size: 14px; color: var(--ink-700); }
.gg .input { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font: inherit; color: var(--ink-900); display: flex; align-items: center; gap: 10px; }
.gg .input.search { height: 54px; border-radius: var(--r-pill); padding: 0 20px; box-shadow: var(--shadow-1); }
.gg .input .ph { color: var(--ink-400); }
/* P34 lente 5: el campo interior va sin contorno; el aro de foco sale en la caja (WCAG 2.4.7). Segunda vuelta: el aro de 35 % de opacidad no llegaba a 3:1 (1.4.11); ahora es sólido con separador blanco. */
.gg .input:focus-within,
.gg a:focus-visible,
.gg button:focus-visible,
.gg select:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 4px #14766e; }
.gg textarea.input { height: 120px; padding: 14px 16px; resize: none; }

/* ======================= Utilidades ======================= */
.gg .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.gg .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.gg .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.gg .divider { height: 1px; background: var(--line); }
.gg .kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.gg .note { font-size: 13px; line-height: 20px; color: var(--ink-400); display: flex; gap: 8px; align-items: flex-start; }
.gg .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.gg a.card { color: inherit; }
.gg a.card:hover { box-shadow: var(--shadow-2); }
