/* Entrega del equipo de diseño, 9 de noviembre de 2026 (mockup plataforma 2.0).
   Copiado literal del artefacto; ni una regla reescrita. */

/* Contraste alto (panel de accesibilidad) */
:root[data-contrast="high"] {
  --text: var(--navy);
  --muted: var(--navy);
  --line: var(--field-border);
  --card-border: var(--field-border);
}

:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 24px); }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--navy); letter-spacing: -.02em; }
[hidden] { display: none !important; }


/* Círculo con degradado que sigue al puntero, detrás del contenido */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: -1; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(circle, color-mix(in srgb, var(--btn-card) 11%, transparent) 0%, color-mix(in srgb, var(--btn-card) 4%, transparent) 40%, transparent 70%);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
body:has(#home[hidden]) .cursor-glow { display: none; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1146px, 100% - 48px); margin-inline: auto; }


/* ---------- Marca y botones ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: #003482; color: var(--gold); font: 800 0.9375rem var(--heading); flex: none;
}
.brand__copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand__copy strong { font: 700 1rem var(--heading); color: var(--navy); }
.brand__copy small { font-size: 0.6875rem; letter-spacing: .14em; color: var(--navy); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 32px; border: 2px solid transparent; border-radius: 999px;
  background: var(--btn); color: var(--on-btn); box-shadow: var(--btn-shadow);
  font: 700 1rem/1.25 var(--heading); white-space: nowrap;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.button .icon { transition: transform .25s ease; }
@media (hover: hover) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgb(0 76 205 / 45%); }
  .button:hover .icon { transform: translateX(3px); }
  .button:not(.button--outline):hover { background: color-mix(in srgb, var(--btn) 82%, #001a4d); }
  .course-card .button:hover { background: var(--btn); }
}
.button:active { transform: translateY(0); box-shadow: var(--btn-shadow); }
@media (prefers-reduced-motion: reduce) { .button:hover, .button:hover .icon { transform: none; } }
.button--outline { background: transparent; color: var(--blue); border-color: var(--blue); box-shadow: none; }
.button--outline:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); box-shadow: 0 12px 28px -12px rgb(0 76 205 / 35%); }
.button--small { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.button--block { width: 100%; }
.button .icon { width: 1.15em; height: 1.15em; stroke-width: 2.2; }

.link-button { background: none; border: 0; padding: 0; color: var(--navy); font-size: 1rem; }
.link-button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   INICIO
   ========================================================= */
.site-header { padding: 17px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; gap: 36px; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.site-nav a:hover { color: var(--blue); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 561px); gap: 64px;
  align-items: center; padding: 84px 0 132px;
}
.hero__copy { max-width: 476px; padding-left: 8px; }
.hero h1 { font-size: clamp(2.75rem, 5.2vw, 4.375rem); font-weight: 800; line-height: 1; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; font-weight: inherit; color: var(--blue); }
.rotator { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.rotator__word { display: inline-block; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s ease; }
.rotator__word.is-out { transform: translateY(-100%); opacity: 0; }
.rotator__word.is-in { transform: translateY(100%); opacity: 0; transition: none; }
.hero p { margin-top: 24px; color: var(--text); }
.hero .button { margin-top: 32px; }

.login {
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow);
  padding: 54px 48px 44px;
}
.login h2 { color: var(--blue); font-size: 2rem; line-height: 1.2; letter-spacing: -.025em; }
.login__intro { margin-top: 4px; }
.login__fields { display: grid; gap: 24px; margin-top: 33px; }
.field { position: relative; display: block; }
.field .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--placeholder); pointer-events: none; }
.field input {
  width: 100%; height: 49px; padding: 10px 18px 10px 52px; border: 1px solid var(--field-border);
  border-radius: 30px; background: var(--surface); color: var(--navy); font-size: 1.0625rem;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus-visible { outline-offset: 2px; }
.login__forgot { display: block; margin: 16px auto 20px; font-size: 1.0625rem; }
.login__guest { margin: 20px 0 14px; text-align: center; font-size: 1rem; color: var(--text); }
.login__msg { margin-top: 14px; text-align: center; font-size: 0.9375rem; color: var(--text); min-height: 1.5em; }
.login__msg:empty { display: none; }

