/* Inicio público y pie del portal. Mantiene aisladas las vistas del aula. */
.home-layout {
  --home-ink: #182c45;
  --home-muted: #53677f;
  --home-blue: #1e4b92;
  --home-line: #dce5ef;
  --home-gutter: max(24px, calc((100% - 1240px) / 2));
  background: #fff;
}
.home-layout :is(h1, h2, h3, p) { text-wrap: pretty; }
.home-layout :is(h1, h2) { text-wrap: balance; }
.home-layout .section-kicker, .home-layout .journey-head > span {
  color: #22579a; font-size: 12px; font-weight: 650; letter-spacing: .09em;
}
.home-layout :is(.home-section-head, .partner-band, .home-learning-showcase) h2,
.home-layout .journey-head h2 {
  color: var(--home-ink); font-size: clamp(28px, 3vw, 40px); font-weight: 700;
  line-height: 1.2; letter-spacing: -.035em;
}
.home-layout :is(.home-section-head, .partner-band-copy, .journey-head) > p:not(.section-kicker),
.home-layout .home-section-head > div > p:not(.section-kicker) {
  color: var(--home-muted); font-size: 15px; line-height: 1.7; font-weight: 400;
}
.home-layout .market-hero {
  border-radius: 0; min-height: 0; padding: 64px var(--home-gutter);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px);
  background: linear-gradient(120deg, #f6f9fe, #eef4fc);
}
.home-layout .market-hero::before { opacity: .45; }
.home-layout .market-hero h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.home-layout .market-kicker { font-size: 11px; font-weight: 650; letter-spacing: .055em; line-height: 1.6; }
.home-layout .market-lead { font-size: 16px; margin-top: 20px; line-height: 1.75; }
.home-layout .hero-search { margin-top: 24px; box-shadow: 0 6px 20px rgb(28 55 90 / 6%); border-color: #cdd9e7; border-radius: 12px; }
.home-layout .hero-search button { font-weight: 650; border-radius: 8px; background: var(--home-blue); }
.home-layout .hero-search:focus-within { outline: 2px solid #76a9e5; outline-offset: 3px; }
.home-layout .hero-search input:focus { outline: none; }
.home-layout .hero-popular { gap: 8px 12px; }
.home-layout .hero-popular :is(span, button) { font-size: 12px; color: #50647d; }
.home-layout .hero-popular button { min-height: 36px; padding: 5px 0; }
.home-layout .hero-trust { gap: 12px; margin-top: 24px; }
.hero-trust-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: #216660; background: #e1eeec; }
.hero-trust-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-layout .hero-trust strong { font-size: 13px; font-weight: 650; color: var(--home-ink); }
.home-layout .hero-trust p span { font-size: 12px; color: var(--home-muted); line-height: 1.5; margin-top: 3px; }
.home-layout .market-hero-visual { min-height: 0; align-self: stretch; display: grid; align-items: center; }
.home-layout .market-hero-visual::before { display: none; }
.home-layout .hero-image-frame { position: relative; inset: auto; width: 100%; height: 100%; min-height: 390px; max-height: 470px; border-radius: 22px; box-shadow: 0 14px 40px rgb(28 55 90 / 12%); }
.home-layout .home-proof-strip { padding: 0 var(--home-gutter); border-color: var(--home-line); }
.home-layout .home-proof-strip > div { padding: 23px 24px; border-color: var(--home-line); gap: 5px; }
.home-layout .home-proof-strip > div:first-child { padding-left: 0; }
.home-layout .home-proof-strip strong { font-size: 14px; font-weight: 650; color: var(--home-ink); }
.home-layout .home-proof-strip > div > span { font-size: 12px; color: var(--home-muted); line-height: 1.5; }
.home-layout .home-courses { padding: 68px var(--home-gutter); }
.home-layout .home-section-head > div { max-width: 700px; }
.home-layout .home-category-chips button { font-size: 12px; font-weight: 600; min-height: 40px; }
.home-layout .home-course-body h3 { font-size: 17px; line-height: 1.4; }
.home-layout .home-course-meta { font-size: 12px; line-height: 1.6; }
.home-layout .text-link { font-weight: 650; min-height: 44px; }
.home-layout .partner-band h2 { max-width: 540px; color: #fff; }
.home-layout .partner-band .section-kicker { color: #d9f1ff; }
.home-layout .partner-band-copy > p:not(.section-kicker) { margin: 18px 0; color: #dbe7f7; }
.home-layout .partner-benefits li { font-weight: 600; font-size: 13px; }
.home-layout .partner-cta { font-weight: 650; }

/* Cuatro pasos legibles, sin conectores que compriman el contenido. */
.home-layout .student-journey { background: #f6f8fc; padding: 68px var(--home-gutter); }
.home-layout .journey-shell { max-width: none; }
.home-layout .journey-head { max-width: 680px; margin: 0 0 30px; text-align: left; }
.home-layout .journey-head h2 { margin: 10px 0 12px; }
.home-layout .journey-head p { font-size: 15px; }
.home-layout .journey-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-layout .flow-connector { display: none; }
.home-layout .flow-step { min-height: 214px; padding: 24px; border-radius: 14px; border-color: var(--home-line); gap: 24px; }
.home-layout .flow-step::before { display: none; }
.home-layout .flow-number { color: #61758b; font-weight: 600; top: 24px; right: 24px; }
.home-layout .flow-step .journey-icon { width: 42px; height: 42px; border-radius: 12px; color: #285ba0; background: #eef4fd; }
.home-layout .flow-step small { font-size: 10px; font-weight: 600; color: #586c83; letter-spacing: .05em; }
.home-layout .flow-step h3 { font-size: 20px; font-weight: 650; color: var(--home-ink); margin: 5px 0 8px; }
.home-layout .flow-step p { font-size: 13px; color: var(--home-muted); line-height: 1.6; }
.home-layout .flow-step-final { background: #183e76; border-color: #183e76; }
.home-layout .flow-step-final :is(h3, .flow-number) { color: #fff; }
.home-layout .flow-step-final :is(small, p) { color: #d8e5f8; }
.home-layout .flow-step-final .journey-icon { color: #fff; background: rgb(255 255 255 / 12%); }
.home-layout .journey-outcome { border-color: var(--home-line); margin-top: 24px; padding-top: 20px; }
.home-layout .journey-outcome span { font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--home-muted); }
.home-layout .journey-outcome strong { font-size: 16px; font-weight: 600; color: var(--home-ink); margin-top: 5px; }
.journey-certificate-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 600; color: #22579a; text-decoration: none; }
.home-layout .journey-certificate-link span { color: inherit; font-size: 17px; }
.journey-certificate-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Recorrido explicativo del campus: sin controles ni cifras ficticias. */
.home-layout .home-learning-showcase { padding: 80px var(--home-gutter); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 76px); align-items: center; }
.home-layout .learning-showcase-copy { max-width: 500px; }
.home-layout .learning-showcase-copy h2 { font-size: clamp(32px, 3.3vw, 44px); line-height: 1.16; margin: 0; }
.home-layout .learning-showcase-copy h2 em { font-style: normal; color: var(--home-blue); }
.home-layout .learning-showcase-copy > p:not(.section-kicker) { margin: 20px 0 26px; font-size: 15px; color: var(--home-muted); line-height: 1.75; }
.home-layout .learning-feature-list { margin: 0 0 28px; gap: 22px; }
.home-layout .learning-feature-list li { align-items: flex-start; gap: 14px; }
.home-layout .learning-feature-list li > span { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; color: #285ba0; background: #eef4fd; }
.home-layout .learning-feature-list li > span svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.learning-feature-list strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.5; color: var(--home-ink); }
.learning-feature-list small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.6; font-weight: 400; color: var(--home-muted); }
.home-layout .learning-showcase-copy .button.light { background: var(--home-blue); border-color: var(--home-blue); min-height: 48px; border-radius: 10px; padding: 13px 20px; gap: 20px; font-size: 14px; font-weight: 650; }
.home-layout .learning-showcase-copy .button.light:hover { background: #173b75; }
.campus-tour { min-width: 0; padding: 22px; border: 1px solid var(--home-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 48px rgb(27 53 88 / 9%); }
.campus-tour-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.campus-tour-mark { display: grid; place-items: center; width: 42px; height: 46px; background: #f4f7fc; border-radius: 12px; flex-shrink: 0; }
.campus-tour-head strong { display: block; font-size: 15px; color: var(--home-ink); font-weight: 650; line-height: 1.4; }
.campus-tour-head > div > span { display: block; margin-top: 3px; font-size: 12px; color: var(--home-muted); }
.campus-tour-label { margin-left: auto; font-size: 11px; color: #285ba0; border: 1px solid #d9e4f3; border-radius: 30px; padding: 5px 9px; }
.campus-tour-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #f0f4fa; margin-bottom: 16px; }
.campus-tour-tabs[hidden], .campus-tour-panel[hidden] { display: none; }
.campus-tour-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; min-width: 0; min-height: 44px; padding: 8px; color: #526780; cursor: pointer; transition: color .15s, background .15s, box-shadow .15s; }
.campus-tour-tabs button[aria-selected="true"] { color: #1e4b92; background: #fff; border-color: #dce5ef; box-shadow: 0 2px 5px rgb(24 44 69 / 5%); }
.campus-tour-tabs button:hover { color: #1e4b92; background: #fff; }
.campus-tour svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.campus-tour-tabs svg { width: 18px; height: 18px; }
.campus-tour-scene { position: relative; display: flex; align-items: flex-end; min-height: 260px; overflow: hidden; border-radius: 14px; background: #17385c; padding: 28px; color: #fff; isolation: isolate; }
.campus-tour-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; z-index: -2; }
.campus-tour-scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(14 35 62 / 92%), rgb(14 35 62 / 56%)); z-index: -1; }
.campus-tour-scene > div { max-width: 320px; position: relative; z-index: 1; }
.campus-tour-scene > div > span { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: #d9eaff; }
.campus-tour-scene h3 { margin: 12px 0 10px; font-size: clamp(26px, 2.2vw, 32px); font-weight: 650; line-height: 1.2; color: #fff; }
.campus-tour-scene p { max-width: 295px; font-size: 13px; font-weight: 400; line-height: 1.6; margin: 0; color: #e1eaf6; }
.campus-tour-scene .campus-tour-scene-icon { position: absolute; top: 22px; right: 22px; width: 35px; height: 35px; opacity: .8; }
.campus-tour-points { display: grid; gap: 18px; padding: 22px 4px; margin: 0; list-style: none; }
.campus-tour-points li { display: flex; gap: 14px; align-items: center; }
.campus-tour-points svg { width: 22px; height: 22px; color: #285ba0; }
.campus-tour-points strong { display: block; color: var(--home-ink); font-size: 13px; font-weight: 650; line-height: 1.5; }
.campus-tour-points span { display: block; color: var(--home-muted); font-size: 12px; line-height: 1.6; margin-top: 2px; }
.campus-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--home-line); padding-top: 12px; }
.campus-tour-foot > span { color: var(--home-muted); font-size: 11px; line-height: 1.5; }
.campus-tour-foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 650; color: #22579a; text-decoration: none; flex-shrink: 0; }
.campus-tour-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.campus-tour-panel:focus-visible { outline: 2px solid #76a9e5; outline-offset: 5px; border-radius: 14px; }

.home-layout .home-final-cta { padding: 52px var(--home-gutter); min-height: 0; gap: 36px; background: linear-gradient(115deg, #183e76, #1d4c91); }
.home-layout .home-final-cta::after { border-width: 1px; width: 470px; height: 470px; right: -180px; top: -225px; opacity: .7; }
.home-layout .home-final-cta > div:first-child { max-width: 720px; }
.home-layout .home-final-cta .section-kicker { color: #d9f1ff; margin-bottom: 14px; }
.home-layout .home-final-cta .section-kicker::before { display: none; }
.home-layout .home-final-cta h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 650; line-height: 1.18; letter-spacing: -.03em; color: #fff; margin: 0; }
.home-layout .home-final-cta p:not(.section-kicker) { font-size: 14px; line-height: 1.7; color: #dbe7f7; font-weight: 400; }
.home-layout .home-final-cta > div:last-child { display: flex; flex-direction: column; align-items: stretch; min-width: 245px; gap: 8px; }
.home-layout .home-final-cta .button.light { min-height: 48px; padding: 13px 22px; display: flex; justify-content: space-between; gap: 24px; font-size: 14px; font-weight: 650; box-shadow: none; border-radius: 10px; color: #183e76; }
.home-final-route-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 9px 22px; border-radius: 10px; border: 1px solid #7796c0; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.home-final-route-link:hover { background: rgb(255 255 255 / 10%); border-color: #fff; }
.home-layout .home-final-cta .home-final-student-link { font-size: 12px; text-align: center; margin: 10px 0 0; }
.home-final-student-link a { color: #fff; display: inline-block; padding-block: 8px; text-underline-offset: 3px; }

/* Navegación secundaria compartida, con columnas y enlaces amplios. */
.site-footer { display: block; padding: 0 max(24px, calc((100% - 1240px) / 2)); background: #f7f9fc; border-top: 1px solid #dce5ef; color: #182c45; }
.footer-main { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; padding: 44px 0 32px; }
.site-footer .footer-brand { display: block; }
.site-footer .footer-brand img { width: 145px; height: auto; max-height: 60px; object-fit: contain; object-position: left center; }
.footer-brand p { font-size: 13px; color: #53677f; font-weight: 400; line-height: 1.75; max-width: 295px; margin: 14px 0 0; }
.site-footer .footer-tabs { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 24px; }
.footer-link-group { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-link-group h2 { font-size: 13px; font-weight: 650; line-height: 1.5; color: #182c45; margin: 0 0 10px; letter-spacing: 0; }
.site-footer .footer-tabs :is(a, button) { display: flex; align-items: center; gap: 7px; width: auto; min-height: 36px; padding: 6px 0; border: 0; color: #53677f; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.6; text-align: left; text-decoration: none; background: transparent; }
.site-footer .footer-tabs :is(a, button):hover { color: #1e4b92; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-tabs :is(a, button) > span { font-size: 14px; color: inherit; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #dce5ef; padding: 20px 0; }
.footer-bottom p, .site-footer .footer-bottom > span { font-size: 12px; font-weight: 400; line-height: 1.6; color: #53677f; margin: 0; }

@media (max-width: 1050px) {
  .home-layout .market-hero { gap: 32px; }
  .home-layout .hero-image-frame { min-height: 360px; }
  .home-layout .journey-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-layout .flow-step { min-height: 190px; }
  .home-layout .home-learning-showcase { gap: 32px; }
  .campus-tour { padding: 18px; }
  .campus-tour-label { display: none; }
  .campus-tour-scene { padding: 24px; }
  .footer-main { gap: 32px; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .site-footer .footer-tabs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .home-layout .market-hero { grid-template-columns: 1fr; padding-block: 40px; gap: 30px; }
  .home-layout .market-hero-copy { max-width: none; }
  .home-layout .market-hero-visual { display: block; }
  .home-layout .hero-image-frame { height: 280px; min-height: 0; max-width: none; border-radius: 16px; }
  .home-layout .home-proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-layout .home-proof-strip > div { padding: 18px 20px; }
  .home-layout .home-proof-strip > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-layout .home-proof-strip > div:nth-child(n+3) { border-top: 1px solid var(--home-line); }
  .home-layout :is(.home-courses, .student-journey) { padding-block: 48px; }
  .home-layout .home-learning-showcase { grid-template-columns: 1fr; padding-block: 48px; gap: 32px; }
  .home-layout .learning-showcase-copy { max-width: none; }
  .campus-tour { max-width: 600px; width: 100%; justify-self: center; }
  .campus-tour-scene { min-height: 245px; }
  .home-layout .home-final-cta { flex-direction: column; align-items: stretch; padding-block: 40px; gap: 26px; }
  .home-layout .home-final-cta > div:last-child { min-width: 0; width: 100%; }
  .home-layout .home-final-cta .button.light { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-block: 32px; }
  .footer-brand p { max-width: 430px; }
  .site-footer .footer-tabs { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
  .site-footer .footer-tabs :is(a, button) { min-height: 44px; }
}
@media (max-width: 480px) {
  .home-layout { --home-gutter: 16px; }
  .home-layout .market-hero h1 { font-size: 36px; }
  .home-layout .market-lead { font-size: 15px; }
  .home-layout .hero-image-frame { height: 235px; }
  .home-layout .home-proof-strip > div { padding-block: 16px; padding-right: 12px; }
  .home-layout .home-proof-strip strong { font-size: 13px; }
  .home-layout .home-proof-strip > div > span { font-size: 11px; }
  .home-layout .journey-flow { gap: 12px; }
  .home-layout .flow-step { padding: 18px 14px; gap: 18px; min-height: 214px; }
  .home-layout .flow-number { top: 22px; right: 14px; font-size: 11px; }
  .home-layout .flow-step small { font-size: 9px; }
  .home-layout .flow-step h3 { font-size: 19px; }
  .home-layout .flow-step p { font-size: 12px; }
  .home-layout .journey-outcome { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-layout .learning-showcase-copy h2 { font-size: 32px; }
  .home-layout .learning-feature-list { gap: 18px; }
  .home-layout .learning-showcase-copy .button.light { width: 100%; justify-content: space-between; }
  .campus-tour { padding: 14px; border-radius: 18px; }
  .campus-tour-head { margin-bottom: 16px; gap: 10px; }
  .campus-tour-head strong { font-size: 14px; }
  .campus-tour-tabs button { gap: 5px; padding: 8px 4px; font-size: 12px; }
  .campus-tour-tabs svg { width: 15px; height: 15px; }
  .campus-tour-scene { padding: 22px 18px; min-height: 245px; }
  .campus-tour-scene h3 { font-size: 27px; }
  .campus-tour-scene p { font-size: 12px; }
  .campus-tour-scene .campus-tour-scene-icon { width: 27px; height: 27px; top: 16px; right: 16px; }
  .campus-tour-foot { gap: 8px; }
  .campus-tour-foot > span { max-width: 130px; }
  .home-layout .home-final-cta h2 { font-size: 31px; }
  .home-layout .home-final-cta p:not(.section-kicker) { font-size: 13px; }
  .site-footer { padding-inline: 16px; }
  .site-footer .footer-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-link-group:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 5px; padding-block: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-layout *, .home-layout *::before, .home-layout *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
@media (max-width: 360px) {
  .home-layout .course-finder-options { grid-template-columns: 1fr; }
  .home-layout .journey-flow { grid-template-columns: 1fr; }
  .home-layout .flow-step { grid-template-columns: 42px minmax(0, 1fr); gap: 8px 14px; padding: 18px; min-height: 0; }
  .home-layout .flow-step .journey-icon { grid-column: 1; grid-row: 1; }
  .home-layout .flow-number { position: static; grid-column: 1; grid-row: 2; align-self: start; text-align: center; }
  .home-layout .flow-step > div { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .home-layout .flow-step h3 { overflow-wrap: anywhere; }
  .campus-tour-tabs svg { display: none; }
}
