/* Landing virtual.enelmapa.co — sistema "Corporate EdTech Modern" */
:root {
  --navy-deep: #0A0F1D;
  --navy-surface: #16213E;
  --primary: #004AC6;
  --primary-2: #2563EB;
  --primary-fixed: #DBE1FF;
  --crimson: #E11D48;
  --coral: #F43F5E;
  --tertiary: #943700;
  --tertiary-2: #BC4800;
  --success: #10B981;
  --warning: #F59E0B;
  --surface: #FAF8FF;
  --card: #FFFFFF;
  --subtle: #F8FAFC;
  --c-low: #F3F3FE;
  --c-mid: #EDEDF9;
  --c-high: #E7E7F3;
  --c-var: #E1E2ED;
  --text: #191B23;
  --text-strong: #0F172A;
  --text-var: #434655;
  --muted: #64748B;
  --on-dark: #BEC6E0;
  --border: #E2E8F0;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px -1px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .06);
  --gutter: 1.5rem;
  --hdr-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: 400 15px/24px var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Material Symbols */
.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr; flex-shrink: 0;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  width: 1em; overflow: hidden;
}
.ms--green { color: var(--success); }

/* Visibilidad escritorio / movil */
.only-m, .only-m-inline { display: none !important; }
.only-d-inline { display: inline; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Colores utilitarios */
.c-crimson { color: var(--crimson); }
.c-coral { color: var(--coral); }
.c-blue { color: var(--primary); }
.c-tertiary { color: var(--tertiary-2); }
.green { color: var(--success); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 24px; min-height: 40px; border-radius: 8px; border: 0;
  font: 600 14px/20px var(--font-body); letter-spacing: .01em;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .ms { font-size: 18px; }
.btn--sm { padding: 6px 14px; min-height: 36px; font-size: 12px; line-height: 16px; letter-spacing: .02em; }
.btn--sm .ms { font-size: 16px; }
.btn--lg { min-height: 46px; }
.btn--xl { padding: 16px 40px; min-height: 58px; border-radius: 12px; font: 600 18px/26px var(--font-head); gap: 8px; }
.btn--xl svg { width: 24px; height: 24px; }
.btn--xl .ms { font-size: 20px; }
.btn--block { width: 100%; }
.btn--crimson { background: var(--crimson); color: #fff; box-shadow: 0 4px 14px rgba(225, 29, 72, .3); }
.btn--crimson:hover { background: var(--coral); }
.hero .btn--crimson:hover { transform: translateY(-2px); }
.btn--blue { background: var(--primary); color: #fff; }
.btn--blue:hover { background: var(--primary-2); }
.btn--navy { background: var(--navy-surface); color: #fff; }
.btn--navy:hover { background: var(--c-high); color: var(--navy-deep); }
.btn--ghost { color: var(--primary); padding: 8px 16px; }
.btn--ghost:hover { background: var(--c-mid); color: var(--text); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(4px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--wa { background: #25D366; color: #fff; box-shadow: var(--shadow-xl); }
.btn--wa:hover { background: #1EBE5D; transform: scale(1.04); }
.btn--dark { background: var(--navy-deep); color: #fff; }
.btn--dark:hover { background: var(--navy-surface); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--text);
}
.icon-btn .ms { font-size: 24px; }
.icon-btn:hover { background: var(--c-mid); }
.icon-btn--wa { color: var(--success); border-radius: 999px; }
.icon-btn--solidwa { background: #10B981; color: #fff; }
.icon-btn--solidwa:hover { background: #059669; }
.icon-btn--solidwa .ms { font-size: 22px; }

/* Pills, tags, eyebrows */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px; border-radius: 999px;
  font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.pill .ms { font-size: 14px; }
.pill--navy { background: var(--navy-surface); color: var(--primary-fixed); }
.pill--glass { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(8px); }
.tag {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--c-mid);
  color: var(--muted); font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.tag--blue { color: var(--primary); }
.tag--green { background: rgba(16, 185, 129, .15); color: var(--success); }
.tag--soft { background: #DAE2FD; color: #131B2E; text-transform: none; letter-spacing: .02em; font: 600 12px/16px var(--font-body); border-radius: 6px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 4px;
  font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow .ms { font-size: 14px; }
.eyebrow--blue { color: var(--primary); }
.eyebrow--crimson { color: var(--crimson); }
.eyebrow--coral { color: var(--coral); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: inline-block; flex-shrink: 0; }
.dot--pulse { width: 8px; height: 8px; animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(64px); }
.glow--blue { width: 384px; height: 384px; top: -128px; right: -128px; background: rgba(37, 99, 235, .2); }
.glow--crimson { width: 320px; height: 320px; bottom: -96px; left: -80px; background: rgba(225, 29, 72, .15); }
.glow--white { width: 256px; height: 256px; top: -64px; right: -64px; background: rgba(255, 255, 255, .1); filter: blur(40px); }

.bar { width: 100%; height: 8px; border-radius: 999px; background: var(--c-var); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--crimson)); }
.bar--blue { background: var(--c-mid); }
.bar--blue span { background: var(--primary-2); }

/* Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand__txt { font: 600 18px/26px var(--font-head); color: var(--navy-deep); letter-spacing: -.01em; white-space: nowrap; }
.brand__txt span { color: var(--primary); }
.brand__txt--light { font-size: 22px; line-height: 30px; color: #fff; }
.brand__txt--light span { color: var(--primary-fixed); }
.hdr__nav { display: flex; align-items: center; gap: 24px; }
.hdr__nav a { font: 600 14px/20px var(--font-body); color: var(--text-var); transition: color .2s; }
.hdr__nav a:hover { color: var(--text); }
.hdr__act { display: flex; align-items: center; gap: 8px; }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(10, 15, 29, .5); }
.drawer__panel {
  position: absolute; inset: 0 auto 0 0; width: min(320px, 86vw); background: var(--card);
  padding: 16px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-xl);
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 14px 8px; border-bottom: 1px solid var(--border); font: 600 16px/24px var(--font-head); color: var(--text-strong); }

main { padding-top: var(--hdr-h); }

/* Barra de contexto */
.ctx {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  background: var(--card); border-radius: 12px; padding: 6px 16px; box-shadow: var(--shadow-sm);
  font: 600 12px/16px var(--font-body); letter-spacing: .02em;
}
.ctx__l { display: flex; align-items: center; gap: 8px; color: var(--text-var); }
.ctx__flag { width: 24px; height: 24px; border-radius: 50%; background: var(--c-low); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ctx__r { display: flex; align-items: center; gap: 16px; }
.ctx__r a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); }
.ctx__r a:hover { text-decoration: underline; }
.ctx__r .ms { font-size: 16px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.sep { color: var(--muted); }

/* Hero */
.hero-sec { padding-top: 40px; padding-bottom: 40px; }
.hero {
  position: relative; overflow: hidden; background: var(--navy-deep); color: #fff;
  border-radius: 16px; padding: 56px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.hero__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero h1 { font: 800 48px/56px var(--font-head); letter-spacing: -.03em; }
.hero h1 span { color: var(--coral); }
.hero__lead { font-size: 18px; line-height: 28px; color: var(--on-dark); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.trust { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 16px; color: var(--on-dark); font-size: 13px; line-height: 20px; }
.trust li { display: flex; align-items: center; gap: 4px; }
.trust .ms { color: var(--success); font-size: 18px; }

.dash { background: var(--card); color: var(--text); border-radius: 16px; padding: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35); }
.dash__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.dash__id { display: flex; align-items: center; gap: 8px; }
.dash__id strong { display: block; font: 600 18px/26px var(--font-head); color: var(--navy-deep); }
.dash__id small, .dash small { display: block; font-size: 13px; line-height: 20px; color: var(--muted); }
.dash__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-fixed); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.dash__ico .ms { font-size: 24px; }
.dash__mod { background: var(--c-low); border-radius: 12px; padding: 16px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.dash__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash__row b { font-size: 13px; color: var(--text-strong); }
.dash__title { font: 600 18px/26px var(--font-head); color: var(--text-strong); }
.dash__mod .bar { margin: 6px 0 8px; }
.dash__link { display: inline-flex; align-items: center; color: var(--primary); font: 700 12px/16px var(--font-body); }
.dash__link .ms { font-size: 16px; }
.avatars { display: flex; }
.av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 11px/1 var(--font-body); font-style: normal; margin-left: -8px; border: 2px solid var(--c-low); }
.av:first-child { margin-left: 0; }
.av--1 { background: var(--primary-fixed); color: var(--primary); }
.av--2 { background: #DAE2FD; color: #565E74; }
.av--3 { background: #FFDBCD; color: var(--tertiary); }
.av--4 { background: var(--c-var); color: var(--text-var); }
.dash__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash__stats > div { background: var(--subtle); border-radius: 12px; padding: 8px 12px; }
.dash__stats b { display: block; margin-top: 4px; font: 700 22px/30px var(--font-head); color: var(--navy-deep); }
.dash__stats b.green { color: var(--success); }

/* Estadisticas */
.stats-sec { position: relative; z-index: 2; margin-top: -48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--card); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .3s;
}
.stat:hover { transform: translateY(-4px); }
.stat__ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.stat__ico .ms { font-size: 28px; }
.stat__ico--crimson { background: rgba(225, 29, 72, .1); color: var(--crimson); }
.stat__ico--blue { background: rgba(0, 74, 198, .1); color: var(--primary); }
.stat__ico--coral { background: rgba(244, 63, 94, .1); color: var(--coral); }
.stat__ico--blue2 { background: rgba(37, 99, 235, .1); color: var(--primary-2); }
.stat b { font: 800 36px/44px var(--font-head); letter-spacing: -.02em; margin-bottom: 4px; }
.stat strong { font: 600 18px/26px var(--font-head); color: var(--navy-deep); margin-bottom: 4px; }
.stat p { font-size: 13px; line-height: 20px; color: var(--muted); }

/* Secciones */
.sec { padding: 40px 0; }
.sec--tint { background: var(--c-low); }
.sec__head { margin-bottom: 24px; }
.sec__head h2 { font: 700 36px/44px var(--font-head); letter-spacing: -.02em; color: var(--navy-deep); margin: 8px 0; }
.sec__head p { font-size: 18px; line-height: 28px; color: var(--muted); }
.sec__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec__head--split > div:first-child { max-width: 42rem; }
.sec__head--center { text-align: center; max-width: 48rem; margin: 0 auto 40px; }

/* Cursos */
.filters { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.filters button {
  border: 0; padding: 4px 16px; border-radius: 999px; background: var(--c-mid); color: var(--text);
  font: 600 12px/16px var(--font-body); letter-spacing: .02em; white-space: nowrap; min-height: 32px; transition: background-color .2s;
}
.filters button:hover { background: var(--c-high); }
.filters button.is-active { background: var(--navy-deep); color: #fff; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course {
  background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: box-shadow .3s;
}
.course:hover { box-shadow: var(--shadow-xl); }
.course[hidden] { display: none; }
.course__img { position: relative; height: 176px; background: var(--c-low); overflow: hidden; }
.course__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course:hover .course__img img { transform: scale(1.05); }
.course__cat, .course__dur {
  position: absolute; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
}
.course__cat .ms, .course__dur .ms { font-size: 14px; }
.course__cat { top: 12px; left: 12px; background: rgba(255, 255, 255, .95); font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.course__dur { bottom: 12px; right: 12px; background: rgba(10, 15, 29, .8); color: #fff; font: 600 12px/16px var(--font-body); }
.course__body { padding: 24px 24px 16px; flex: 1; }
.course__body h3 { font: 600 18px/26px var(--font-head); color: var(--navy-deep); margin-bottom: 8px; transition: color .2s; }
.course:hover .course__body h3 { color: var(--primary); }
.course__body p { color: var(--text-var); }
.course__foot { background: var(--subtle); padding: 16px 24px 24px; }
.course__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 8px; }
.course__meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.course__meta .ms { font-size: 16px; color: var(--success); }

/* Beneficios */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { background: var(--card); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.feat:hover { box-shadow: var(--shadow-md); }
.feat__ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat__ico .ms { font-size: 26px; }
.fi-blue { background: var(--primary-fixed); color: var(--primary); }
.fi-crimson { background: rgba(225, 29, 72, .1); color: var(--crimson); }
.fi-navy { background: #DAE2FD; color: var(--navy-deep); }
.fi-amber { background: #FFDBCD; color: var(--tertiary); }
.fi-green { background: rgba(16, 185, 129, .15); color: var(--success); }
.fi-sky { background: rgba(59, 130, 246, .15); color: var(--primary); }
.feat h3 { font: 600 18px/26px var(--font-head); color: var(--navy-deep); margin-bottom: 8px; }
.feat p { color: var(--text-var); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.step:hover { transform: translateY(-4px); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step__n { width: 48px; height: 48px; border-radius: 16px; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 28px/1 var(--font-head); }
.n-navy { background: var(--navy-deep); }
.n-blue { background: var(--primary); }
.n-crimson { background: var(--crimson); }
.step h3 { font: 600 22px/30px var(--font-head); letter-spacing: -.01em; color: var(--navy-deep); margin-bottom: 4px; }
.step p { color: var(--text-var); }
.step__note { margin-top: 16px; padding-top: 16px; display: flex; align-items: center; gap: 8px; color: var(--primary); font: 600 12px/16px var(--font-body); }
.step__note .ms { font-size: 18px; }
.step__note--crimson { color: var(--crimson); }

/* Simulador */
.sim-sec { padding-bottom: 40px; }
.sim {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--navy-surface), var(--navy-deep)); color: #fff;
  border-radius: 16px; padding: 40px; box-shadow: var(--shadow-xl);
}
.sim__l { display: flex; flex-direction: column; gap: 8px; }
.sim__l h2 { font: 700 28px/36px var(--font-head); letter-spacing: -.015em; }
.sim__l p { color: var(--on-dark); }
.sim__l label { margin-top: 8px; font: 600 12px/16px var(--font-body); color: var(--subtle); }
.sim__l label b { color: var(--coral); font-size: 18px; }
.sim__l input[type=range] { width: 100%; accent-color: var(--crimson); cursor: pointer; }
.sim__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-dark); }
.sim__r { background: var(--card); color: var(--text); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-md); }
.sim__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sim__head strong { font: 600 18px/26px var(--font-head); color: var(--navy-deep); }
.sim__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sim__stats > div { background: var(--subtle); padding: 8px 12px; border-radius: 8px; }
.sim__stats small { font-size: 13px; line-height: 20px; color: var(--muted); }
.sim__stats b { display: block; margin-top: 4px; font: 700 22px/30px var(--font-head); }
.sim__r > p { font-size: 13px; line-height: 20px; color: var(--text-var); margin-bottom: 16px; }

/* CTA */
.cta-sec { padding-bottom: 40px; }
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 16px; padding: 40px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow-xl);
}
.cta .glow--crimson { background: rgba(10, 15, 29, .2); width: 256px; height: 256px; bottom: -64px; left: -64px; filter: blur(40px); }
.cta__in { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta .pill { text-transform: none; letter-spacing: .02em; font: 600 12px/16px var(--font-body); gap: 8px; }
.cta h2 { font: 700 36px/44px var(--font-head); letter-spacing: -.02em; }
.cta__in > p { font-size: 18px; line-height: 28px; color: var(--primary-fixed); max-width: 32rem; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 8px; width: 100%; }
.cta__small { font-size: 12px !important; line-height: 16px !important; color: rgba(219, 225, 255, .8) !important; }

/* Footer escritorio */
.ftr { background: var(--navy-deep); color: var(--subtle); }
.ftr .wrap { padding-top: 40px; padding-bottom: 40px; }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.ftr__brand { display: flex; flex-direction: column; gap: 16px; }
.ftr p { color: var(--on-dark); max-width: 24rem; }
.ftr__brand ul { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 20px; color: var(--on-dark); }
.ftr__brand li { display: flex; align-items: center; gap: 8px; }
.ftr__brand .ms { color: var(--coral); font-size: 18px; }
.ftr__brand a:hover { color: #fff; }
.ftr strong { display: block; font: 600 18px/26px var(--font-head); color: #fff; margin-bottom: 8px; }
.ftr nav { display: flex; flex-direction: column; gap: 4px; }
.ftr nav a { color: var(--on-dark); transition: color .2s; }
.ftr nav a:hover { color: #fff; }
.ftr__grid > div:last-child p { font-size: 13px; line-height: 20px; margin-bottom: 8px; }
.store { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; background: var(--navy-surface); color: #fff; font: 600 14px/20px var(--font-body); transition: background-color .2s; }
.store:hover { background: #22305a; }
.store .ms { color: var(--primary-fixed); }
.store small { display: block; font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); }
.ftr__bottom { padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 20px; color: var(--on-dark); }
.ftr__bottom p { max-width: none; }
.ftr__bottom > span { display: inline-flex; align-items: center; gap: 8px; }
.ftr__bottom .ms { color: var(--success); font-size: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 1279px) {
  .hdr__nav { gap: 16px; }
  .hdr__nav a { font-size: 13px; }
}
@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .hero { padding: 40px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .stats-sec { margin-top: -32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .courses, .feats { grid-template-columns: repeat(2, 1fr); }
  .sec__head--split { flex-direction: column; align-items: flex-start; }
  .sim { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Movil ---------- */
@media (max-width: 767px) {
  :root { --gutter: 1rem; --hdr-h: 64px; }
  body { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }

  .only-d, .only-d-inline { display: none !important; }
  .only-m { display: revert !important; }
  .only-m-inline { display: inline !important; }
  .btn.only-m, .icon-btn.only-m { display: inline-flex !important; }

  .hdr { background: rgba(250, 248, 255, .8); padding-top: env(safe-area-inset-top, 0px); }
  .hdr__in { gap: 4px; }
  .brand { margin-right: auto; gap: 6px; }
  .brand__txt { font-size: 16px; }
  .brand__txt span { display: none; }
  .hdr__act { gap: 4px; }
  main { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); }

  /* Hero */
  .hero-sec { padding-top: 4px; padding-bottom: 24px; }
  .hero { border-radius: 12px; padding: 16px; box-shadow: var(--shadow-xl); }
  .hero .glow--blue { width: 176px; height: 176px; top: -48px; right: -48px; background: rgba(0, 74, 198, .2); }
  .hero .glow--crimson { width: 144px; height: 144px; bottom: -40px; left: -40px; background: rgba(225, 29, 72, .2); filter: blur(40px); }
  .hero__txt { align-items: center; text-align: center; gap: 0; }
  .pill--glass { font-size: 11px; padding: 4px 12px; margin-bottom: 8px; color: #DAE2FD; }
  .hero h1 { font-size: 32px; line-height: 40px; letter-spacing: -.02em; max-width: 20rem; margin: 4px 0; }
  .hero__lead { font-size: 13px; line-height: 20px; max-width: 20rem; margin-bottom: 16px; }
  .hero__cta { flex-direction: column; width: 100%; gap: 4px; padding-top: 0; }
  .hero__cta .btn { width: 100%; }
  .hero__foot { display: flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding-top: 4px; font: 700 11px/16px var(--font-head); color: var(--on-dark); }
  .hero__foot .ms { font-size: 15px; color: var(--success); }

  /* Stats */
  .stats-sec { margin-top: 0; padding-bottom: 24px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 4px; }
  .stat { padding: 8px; box-shadow: var(--shadow-sm); }
  .stat:hover { transform: none; }
  .stat b { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.015em; margin: 0; }
  .stat .c-blue { color: var(--primary-2); }
  .stat .c-coral { color: var(--crimson); }
  .stat strong { font: 600 12px/16px var(--font-body); letter-spacing: .02em; color: var(--text-strong); margin: 2px 0 0; }
  .stat p { font-size: 11px; line-height: 1.25; display: block !important; }
  .stat p.only-d { display: none !important; }

  /* Secciones */
  .sec { padding: 0 0 40px; }
  .sec--tint { background: transparent; }
  .sec__head, .sec__head--center { text-align: left; margin: 0 0 8px; }
  .sec__head h2 { font: 600 22px/30px var(--font-head); letter-spacing: -.01em; color: var(--text); margin: 2px 0; display: flex; align-items: baseline; justify-content: space-between; }
  .sec__head h2 small { font: 600 12px/16px var(--font-body); color: var(--muted); }
  .sec__head p { font-size: 13px; line-height: 20px; color: var(--text-var); }

  /* Cursos: carrusel horizontal */
  .courses-sec .sec__head { margin-bottom: 8px; }
  .wrap--track { padding: 0; }
  .courses {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 var(--gutter);
  }
  .courses::-webkit-scrollbar { display: none; }
  .course { flex: 0 0 275px; scroll-snap-align: start; border-radius: 12px; }
  .course[hidden] { display: flex; }
  .course:hover { box-shadow: var(--shadow-sm); }
  .course__body { padding: 8px 8px 0; }
  .course__mhead { display: flex !important; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .emoji { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  .e-green { background: #ECFDF5; } .e-blue { background: #EFF6FF; } .e-amber { background: #FFFBEB; }
  .e-rose { background: #FFF1F2; } .e-teal { background: #F0FDFA; } .e-orange { background: #FFF7ED; }
  .course__body h3 { color: var(--text); margin-bottom: 4px; }
  .course:hover .course__body h3 { color: var(--text); }
  .course__body p { font-size: 13px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .course__foot { background: transparent; padding: 8px; }
  .course__meta { margin: 0; font-size: 12px; }
  .course__meta .ms { font-size: 16px; }
  .course__mlink { display: inline-flex !important; align-items: center; gap: 2px; padding: 4px 0; color: var(--primary-2); font: 600 12px/16px var(--font-body); }
  .course__mlink .ms { color: var(--primary-2); }
  .course__bar { display: block !important; height: 4px; background: var(--c-mid); }
  .course__bar span { display: block; height: 100%; border-radius: 999px; }

  /* Campus */
  .courses-sec { padding-bottom: 24px; }
  .campus-sec { display: block !important; padding-bottom: 40px; }
  .campus { background: var(--card); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
  .campus__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .live--muted { color: var(--muted); font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
  .live--muted .dot { width: 10px; height: 10px; }
  .campus__box { background: var(--subtle); border-radius: 8px; padding: 8px; }
  .campus__row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
  .campus__play { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 74, 198, .1); color: var(--primary); display: flex; align-items: center; justify-content: center; }
  .campus__play .ms { font-size: 22px; }
  .campus__txt { min-width: 0; }
  .campus__txt strong { display: block; font: 600 12px/16px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .campus__txt small { font-size: 11px; color: var(--muted); }
  .campus__box .bar { height: 8px; margin-bottom: 4px; }
  .campus__row--sm { justify-content: space-between; font-size: 11px; color: var(--muted); margin: 0; }
  .campus__row--sm b { color: var(--primary); font: 600 12px/16px var(--font-body); }
  .campus__foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 4px; font-size: 12px; color: var(--muted); }
  .campus__foot > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
  .campus__foot .ms { font-size: 16px; color: var(--success); }

  /* Beneficios en lista */
  .feats { display: flex; flex-direction: column; gap: 4px; }
  .feat { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 12px; }
  .feat__ico { width: 44px; height: 44px; border-radius: 8px; margin: 0; flex-shrink: 0; }
  .feat__ico .ms { font-size: 24px; }
  .fi-navy { background: #F5F3FF; color: #7C3AED; }
  .fi-amber { background: #FFFBEB; color: #D97706; }
  .fi-sky { background: #F0FDFA; color: #0D9488; }
  .feat h3 { color: var(--text); margin: 0; }
  .feat p { font-size: 13px; line-height: 20px; margin-top: 2px; }

  /* Pasos */
  .steps-box { background: var(--c-low); border-radius: 12px; padding: 16px; }
  .steps-box .sec__head { text-align: center; margin-bottom: 16px; }
  .steps { display: flex; flex-direction: column; gap: 16px; }
  .step { display: flex; align-items: flex-start; gap: 8px; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
  .step:hover { transform: none; }
  .step__top { margin: 0; }
  .step__n { width: 40px; height: 40px; border-radius: 50%; font: 600 18px/1 var(--font-head); box-shadow: var(--shadow-md); }
  .n-navy, .n-blue { background: var(--primary-2); }
  .step > div:last-child { padding-top: 4px; }
  .step h3 { font: 600 18px/26px var(--font-head); color: var(--text); margin: 0; }
  .step p { font-size: 13px; line-height: 20px; margin-top: 4px; }

  /* FAQ */
  .faq-sec { display: block !important; padding-bottom: 40px; }
  .faq { display: flex; flex-direction: column; gap: 4px; }
  .faq details { background: var(--card); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
  .faq summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 52px; padding: 8px; cursor: pointer; font: 600 18px/26px var(--font-head); color: var(--text);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .ms { color: var(--primary); transition: transform .2s; }
  .faq details[open] summary .ms { transform: rotate(180deg); }
  .faq details p { padding: 0 8px 8px; font-size: 13px; line-height: 20px; color: var(--text-var); }

  /* CTA */
  .cta-sec { padding-bottom: 24px; }
  .cta { background: var(--navy-deep); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-md); }
  .cta .glow--crimson { width: 128px; height: 128px; left: auto; right: -32px; bottom: -32px; background: rgba(225, 29, 72, .25); filter: blur(24px); }
  .cta__in { gap: 0; }
  .cta__rocket { display: flex !important; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #DAE2FD; align-items: center; justify-content: center; margin-bottom: 4px; }
  .cta__rocket .ms { font-size: 28px; }
  .cta h2 { font-size: 28px; line-height: 36px; letter-spacing: -.015em; margin-bottom: 4px; }
  .cta__in > p { font-size: 13px; line-height: 20px; color: var(--on-dark); max-width: 20rem; margin-bottom: 16px; }
  .cta__btns { padding: 0; margin-bottom: 4px; }
  .cta__btns .btn { min-height: 48px; }
  .cta__small { margin-top: 8px; font: 700 11px/16px var(--font-head) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark) !important; }

  /* Footer movil */
  .mftr { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 4px var(--gutter) 24px; text-align: center; color: var(--text-var); }
  .mftr nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 12px; }
  .mftr nav a { padding: 4px 0; }
  .mftr nav a:hover { color: var(--primary); }
  .mftr p { font-size: 11px; color: var(--muted); }

  /* Barra inferior */
  .dock { display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
  .dock__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 10px var(--gutter);
    background: rgba(250, 248, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  }
  .dock__info { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .dock__info strong { display: block; font: 700 11px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--text-strong); }
  .dock__info small { display: block; font-size: 11px; color: var(--muted); }
  .dock__btns { display: flex; gap: 8px; }
  .dock__btns .btn { min-height: 44px; }
  .tabs {
    height: 64px; display: flex; align-items: center; justify-content: space-around; padding: 0 var(--gutter);
    padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: content-box;
    background: rgba(250, 248, 255, .92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
  }
  .tabs a { min-width: 44px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-var); font: 700 11px/16px var(--font-head); letter-spacing: .06em; }
  .tabs a .ms { font-size: 22px; }
  .tabs a.is-active { color: var(--primary); }
}

@media (max-width: 359px) {
  .brand__txt { display: none; }
  .course { flex-basis: 250px; }
}

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

/* Chips de disponibilidad en las tarjetas de curso */
.chip {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--c-mid); color: var(--muted);
  font: 700 10px/16px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.chip--ok { background: rgba(16, 185, 129, .15); color: #047857; }

/* Temario del curso disponible */
.temario-sec { padding-top: 0; }
.temario { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.temario__mod {
  display: flex; gap: 16px; background: var(--card); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm);
}
.temario__n {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font: 700 20px/1 var(--font-head);
}
.temario__mod h3 { font: 600 18px/26px var(--font-head); color: var(--navy-deep); margin-bottom: 8px; }
.temario__mod ul { display: flex; flex-direction: column; gap: 6px; }
.temario__mod li { display: flex; gap: 8px; color: var(--text-var); font-size: 14px; line-height: 21px; }
.temario__mod .ms { font-size: 18px; color: var(--success); flex-shrink: 0; }
.temario__cta {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  background: var(--c-low); border-radius: 16px; padding: 24px;
}
.temario__cta p { color: var(--text-var); max-width: 42rem; }

@media (max-width: 1100px) {
  .temario { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .temario-sec { padding-bottom: 40px; }
  .temario { gap: 8px; }
  .temario__mod { padding: 12px; gap: 12px; border-radius: 12px; }
  .temario__n { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
  .temario__mod h3 { font-size: 16px; line-height: 24px; color: var(--text); }
  .temario__mod li { font-size: 13px; line-height: 20px; }
  .temario__cta { flex-direction: column; align-items: stretch; padding: 16px; margin-top: 8px; }
  .temario__cta p { font-size: 13px; line-height: 20px; }
  .temario__cta .btn { width: 100%; }
  .chip { display: block; margin: 4px 0 0; width: fit-content; }
}

/* Modal de temario */
.modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0; border: 0; border-radius: 16px; overflow: auto;
  background: var(--card); color: var(--text); box-shadow: var(--shadow-xl);
}
.modal::backdrop { background: rgba(10, 15, 29, .6); backdrop-filter: blur(2px); }
.modal__img { position: relative; height: 200px; background: var(--c-low); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: rgba(10, 15, 29, .7); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.modal__x:hover { background: var(--navy-deep); }
.modal__body { padding: 24px; }
.modal__head { margin-bottom: 24px; }
.modal__head h2 { font: 700 28px/36px var(--font-head); letter-spacing: -.015em; color: var(--navy-deep); margin: 6px 0 12px; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.modal__meta .chip { margin: 0; }
.modal__head p { color: var(--text-var); }
.modal .temario { grid-template-columns: 1fr; gap: 12px; }
.modal .temario__mod { background: var(--c-low); box-shadow: none; padding: 16px; }
.modal__foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding: 16px 24px;
  background: var(--subtle); border-top: 1px solid var(--border);
}
.modal__foot p { font-size: 13px; line-height: 20px; color: var(--muted); max-width: 26rem; }

@media (max-width: 767px) {
  .modal {
    width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh;
    margin: 0; border-radius: 0;
  }
  .modal__img { height: 160px; }
  .modal__body { padding: 16px; }
  .modal__head h2 { font-size: 22px; line-height: 30px; }
  .modal__foot { flex-direction: column; align-items: stretch; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .modal__foot .btn { width: 100%; }
  .modal__foot p { max-width: none; }
}
