:root {
  --blue: #214987;
  --deep: #0a2a5a;
  --purple: #7137a5;
  --pink: #ed087d;
  --pink-text: #ad075c;
  --yellow: #ffe500;
  --ink: #17213b;
  --muted: #52607a;
  --paper: #f6f7fb;
  --lilac: #eee7f8;
  --line: #dfe4ef;
  --white: #fff;
  --shadow: 0 20px 60px rgba(10, 42, 90, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Helvetica Neue", Arial, sans-serif; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.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; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 99; padding: 12px 18px; border-radius: 12px; background: var(--yellow); color: var(--deep); font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 12px; z-index: 20; display: grid; grid-template-columns: 240px 1fr 200px; align-items: center; gap: 28px; width: min(1440px, calc(100% - 40px)); margin: 16px auto 0; padding: 12px 20px; border: 1px solid rgba(33, 73, 135, .1); border-radius: 24px; background: rgba(255, 255, 255, .95); box-shadow: 0 12px 32px rgba(10, 42, 90, .08); backdrop-filter: blur(18px); }
.brand img { width: 210px; }
.tec-logo { width: 180px; justify-self: end; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(10px, 1.2vw, 18px); row-gap: 6px; }
.site-header nav a { color: var(--deep); font-size: .9rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--pink-text); }

.load-status, .load-error { width: min(1000px, calc(100% - 40px)); min-height: 55vh; margin: 70px auto; padding: 60px; border-radius: 32px; background: var(--white); box-shadow: var(--shadow); }
.load-status { min-height: 200px; font-size: 1.3rem; font-weight: 700; }
.load-error h1 { color: var(--deep); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.load-error p { max-width: 660px; color: var(--muted); }

.hero, .route-section, .learning-section, .campus-section, .source-note { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(380px, 1.06fr); align-items: center; gap: clamp(36px, 5vw, 90px); min-height: calc(100vh - 110px); padding: 70px 30px 90px; }
.career-picker { display: grid; gap: 8px; max-width: 600px; margin-bottom: 38px; }
.career-picker label { color: var(--deep); font-size: .81rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.career-picker select { width: 100%; min-height: 54px; padding: 12px 42px 12px 16px; border: 2px solid var(--blue); border-radius: 14px; color: var(--deep); background: var(--white); font-weight: 750; }
.career-count { color: var(--muted); font-size: .82rem; }
.eyebrow { margin: 0 0 16px; color: var(--pink-text); font-size: .82rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: 770px; margin-bottom: 20px; color: var(--deep); font-size: clamp(3.05rem, 5.8vw, 6.3rem); line-height: .98; letter-spacing: -.05em; overflow-wrap: anywhere; }
.career-name { margin-bottom: 16px; color: var(--purple); font-size: clamp(1.08rem, 1.5vw, 1.35rem); font-weight: 850; }
.hero-lead { max-width: 660px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.24rem); }
.hero-alert { max-width: 650px; margin: 0 0 25px; padding: 16px 18px; border-left: 6px solid var(--pink-text); border-radius: 12px; color: var(--deep); background: #ffe8f3; font-size: .91rem; font-weight: 760; }
.audience-switch { display: inline-flex; gap: 6px; max-width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.audience-button { padding: 12px 20px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-weight: 800; }
.audience-button.is-active { color: var(--white); background: var(--deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 2px solid transparent; border-radius: 16px; font-weight: 900; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--pink-text); box-shadow: 0 12px 26px rgba(173, 7, 92, .18); }
.button-ghost { border-color: var(--blue); color: var(--blue); background: var(--white); }
.button-yellow { color: var(--deep); background: var(--yellow); }
.campus-summary { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0; padding: 0; color: var(--muted); font-size: .84rem; font-weight: 800; list-style: none; }
.campus-summary li { display: flex; align-items: center; gap: 8px; }
.dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; }
.dot-cem { background: var(--blue); }.dot-sfe { background: var(--purple); }.dot-ccm { background: var(--pink); }

.hero-visual { position: relative; isolation: isolate; min-width: 0; }
.hero-visual::before { position: absolute; z-index: -1; inset: 7% -6% -5% 18%; border-radius: 50% 40% 46% 56%; background: linear-gradient(135deg, var(--pink), var(--purple) 52%, var(--blue)); content: ""; }
.hero-visual > img, .hero-abstract { width: 100%; aspect-ratio: 4 / 4.4; max-height: 760px; border: 12px solid var(--white); border-radius: 42px; box-shadow: var(--shadow); object-fit: cover; }
.hero-abstract { position: relative; overflow: hidden; background: radial-gradient(circle at 76% 23%, #5b68b3, transparent 29%), linear-gradient(145deg, #0a2a5a, #294a87 52%, #7137a5); }
.orbit { position: absolute; display: block; border: 4px solid rgba(255, 255, 255, .32); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { inset: 19% -12% 8% 9%; }.orbit-two { inset: 30% 4% 21% -22%; border-color: rgba(255, 229, 0, .66); }.orbit-three { inset: 8% 25% 39% -4%; border-color: rgba(237, 8, 125, .65); }
.orbital-point { position: absolute; top: 14%; right: 16%; width: clamp(38px, 6vw, 100px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 18px rgba(255, 229, 0, .16); }
.abstract-route { position: absolute; bottom: 16%; left: 10%; color: var(--white); font-size: clamp(3rem, 7vw, 8rem); font-weight: 900; line-height: .83; letter-spacing: -.08em; }
.hero-tag { position: absolute; right: -10px; bottom: 26px; max-width: 80%; margin: 0; padding: 14px 18px; border-radius: 14px; color: var(--deep); background: var(--yellow); box-shadow: var(--shadow); font-size: .9rem; font-weight: 900; }

.route-section { overflow: hidden; padding: 90px 0 100px; border-radius: 50px; color: var(--white); background: var(--deep); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: end; gap: 40px; padding-inline: clamp(24px, 5vw, 72px); }
.section-intro h2 { max-width: 830px; margin-bottom: 0; font-size: clamp(2.15rem, 4vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; }
.section-intro > p { margin: 0; color: #d4def3; font-size: 1.06rem; }
.route-section .eyebrow, .next-panel .eyebrow { color: var(--yellow); }
.rail-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 28px clamp(24px, 5vw, 72px) 18px; }
.rail-button { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, .08); font-size: 1.25rem; }
.rail-button:hover { color: var(--deep); background: var(--yellow); }
.rail-progress { min-width: 75px; color: #d4def3; font-variant-numeric: tabular-nums; font-weight: 800; text-align: center; }
.story-rail { display: grid; grid-auto-columns: min(82vw, 980px); grid-auto-flow: column; gap: 24px; overflow-x: auto; padding: 10px clamp(24px, 5vw, 72px) 30px; scroll-padding-inline: clamp(24px, 5vw, 72px); scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #8195c0 transparent; }
.story-card { position: relative; overflow: hidden; min-height: 560px; padding: clamp(32px, 5vw, 64px); border-radius: 36px; scroll-snap-align: start; }
.story-card::after { position: absolute; right: -90px; bottom: -120px; width: 330px; height: 330px; border: 42px solid rgba(255, 255, 255, .1); border-radius: 50%; content: ""; pointer-events: none; }
.story-card h3 { position: relative; z-index: 1; max-width: 780px; margin-bottom: 20px; font-size: clamp(2.2rem, 4.2vw, 4.6rem); line-height: 1.03; letter-spacing: -.04em; overflow-wrap: anywhere; }
.story-card > p { position: relative; z-index: 1; max-width: 760px; font-size: 1.12rem; }
.step-label { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-bottom: 38px; font-size: .82rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.step-label span { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--deep); background: var(--yellow); letter-spacing: 0; }
.card-discover { color: var(--deep); background: var(--yellow); }.card-discover .step-label span { color: var(--white); background: var(--deep); }
.card-explore { background: linear-gradient(135deg, #39236a, var(--purple)); }
.card-visualize { background: linear-gradient(135deg, #163f82, #1f6795); }
.card-next { color: var(--deep); background: var(--white); }
.stage-list, .future-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 800px; margin: 30px 0; padding: 0; list-style: none; }
.stage-list li, .future-list li { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 16px; background: rgba(255, 255, 255, .12); font-weight: 750; }
.card-discover .stage-list li { background: rgba(255, 255, 255, .66); border-color: rgba(10, 42, 90, .12); }
.card-next .stage-list li { color: var(--deep); background: var(--paper); border-color: var(--line); }
.future-list span { color: var(--yellow); font-weight: 900; }
.card-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px; max-width: 100%; padding: 0 0 4px; border: 0; border-bottom: 2px solid currentColor; color: inherit; background: transparent; font-weight: 900; text-decoration: none; text-align: left; }
.card-link span { font-size: 1.5rem; }
.card-next .card-link { color: var(--pink-text); }
.stage-prompt { margin: 18px 0 14px; padding-left: 15px; border-left: 4px solid currentColor; font-size: .95rem !important; font-weight: 760; }
.pending-copy { opacity: .8; }

.learning-section { padding: 112px 0; }
.learning-section .section-intro, .campus-section .section-intro { padding-inline: 0; }
.learning-section .section-intro > p, .campus-section .section-intro > p { color: var(--muted); }
.learning-map { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 60px; }
.learning-map::before { position: absolute; z-index: -1; top: 50%; right: -3%; left: -3%; height: 30px; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue)); content: ""; transform: rotate(-4deg); }
.learning-map article { min-height: 290px; padding: 28px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.learning-map article:nth-child(even) { margin-top: 42px; }
.learning-map article span { display: inline-grid; width: 44px; height: 44px; place-items: center; margin-bottom: 42px; border-radius: 50%; color: var(--white); background: var(--pink-text); font-weight: 900; }
.learning-map article:nth-child(2) span { background: var(--purple); }
.learning-map article:nth-child(n+3) span { background: var(--blue); }
.learning-map h3 { margin-bottom: 10px; color: var(--deep); font-size: 1.5rem; }
.learning-map p { margin: 0; color: var(--muted); }
.learning-map:has(.empty-state)::before { display: none; }
.empty-state { padding: 18px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); background: var(--white); }
.related-section { margin-top: 58px; padding: 24px 30px; border-left: 8px solid var(--yellow); border-radius: 18px; color: var(--white); background: var(--deep); }
.related-section h3 { margin-bottom: 6px; }.related-section p { margin: 0; }

.campus-section { padding: 80px 0 120px; }
.campus-cycle-note { margin: 32px 0 -24px; padding: 17px 20px; border-left: 6px solid var(--yellow); border-radius: 12px; color: var(--deep); background: #fff9d7; font-size: .91rem; font-weight: 760; }
.campus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 60px; }
.campus-card { position: relative; overflow: hidden; padding: 32px; border-radius: 30px; background: var(--white); box-shadow: var(--shadow); }
.campus-card::before { position: absolute; inset: 0 0 auto; height: 12px; background: var(--blue); content: ""; }
.campus-sfe::before { background: var(--purple); }.campus-ccm::before { background: var(--pink); }
.campus-code { margin-bottom: 24px; color: var(--blue); font-size: .82rem; font-weight: 900; letter-spacing: .15em; }
.campus-sfe .campus-code { color: var(--purple); }.campus-ccm .campus-code { color: var(--pink-text); }
.campus-card h3 { margin-bottom: 26px; color: var(--deep); font-size: 1.9rem; }
.campus-offer { padding-top: 20px; border-top: 1px solid var(--line); }
.campus-offer + .campus-offer { margin-top: 22px; }
.campus-offer h4 { margin: 0 0 10px; color: var(--deep); font-size: .93rem; }
.status { display: inline-block; margin: 0 0 8px; padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 900; }
.status-completo { color: #0d6746; background: #ddf6eb; }
.status-inicio_parcial { color: #62309a; background: var(--lilac); }
.status-no_listado { color: #784a00; background: #fff0c5; }
.status-pendiente { color: #4b5364; background: #e8ebf1; }
.offer-description, .cycle, .campus-sources { margin: 0; color: var(--muted); font-size: .9rem; }
.cycle, .campus-sources { margin-top: 8px; font-size: .8rem; }
.campus-sources a { color: var(--blue); text-decoration-thickness: 2px; }
.next-panel { display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: 32px; margin-top: 28px; padding: 42px; border-radius: 32px; color: var(--white); background: linear-gradient(135deg, var(--deep), #292b78); }
.next-panel h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.06; }
.next-panel ul { margin: 0; padding-left: 1.2em; color: #e0e7f8; }
.next-panel li + li { margin-top: 9px; }
.next-panel .button { white-space: nowrap; }

.source-note { margin-bottom: 90px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.source-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.source-head h2 { margin-bottom: 8px; color: var(--deep); font-size: 1.5rem; }
.source-head > p { margin-bottom: 8px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.source-note > p { color: var(--muted); }
.source-list { display: grid; gap: 9px; padding-left: 1.3em; }
.source-list a { color: var(--blue); font-weight: 750; text-decoration-thickness: 2px; }
.source-date { color: var(--muted); font-size: .84rem; }
.alerts-panel { margin-top: 25px; padding: 20px 24px; border-radius: 16px; background: #fff5df; }
.alerts-panel h3 { margin-bottom: 8px; color: #604003; font-size: 1rem; }
.alerts-panel ul { margin: 0; padding-left: 1.3em; color: #604003; }
.alerts-panel li + li { margin-top: 5px; }

footer { display: grid; grid-template-columns: 250px 1fr 220px; align-items: center; gap: 28px; padding: 44px max(24px, calc((100vw - 1440px) / 2)); color: #d1dbee; background: var(--deep); }
footer img:first-child { width: 220px; }
footer img:last-child { width: 200px; justify-self: end; }
footer p { margin: 0; text-align: center; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 180px 1fr 145px; gap: 12px; }
  .brand img { width: 170px; }.tec-logo { width: 145px; }
  .hero { grid-template-columns: 1fr .85fr; gap: 28px; padding-inline: 8px; }
  h1 { font-size: clamp(2.75rem, 5.2vw, 4.7rem); }
  .learning-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campus-grid { grid-template-columns: 1fr; }
  .campus-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .campus-card .campus-code, .campus-card h3 { grid-column: 1 / -1; }
  .campus-offer + .campus-offer { margin-top: 0; }
  .next-panel { grid-template-columns: 1fr 1fr; }.next-panel .button { justify-self: start; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .site-header { top: 8px; grid-template-columns: 1fr auto; width: calc(100% - 24px); margin-top: 8px; padding: 9px 12px; }
  .site-header nav { display: none; }.brand img { width: 150px; }.tec-logo { width: 126px; }
  .hero, .route-section, .learning-section, .campus-section, .source-note { width: calc(100% - 24px); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 26px 4px 78px; }
  .career-picker { margin-bottom: 25px; }
  h1 { font-size: clamp(2.7rem, 11vw, 4.7rem); }
  .hero-visual { order: -1; max-width: 560px; width: 100%; justify-self: center; }
  .hero-visual > img, .hero-abstract { aspect-ratio: 16 / 10; min-height: 260px; max-height: 380px; border-width: 8px; border-radius: 28px; }
  .abstract-route { font-size: clamp(2.8rem, 12vw, 5.5rem); }
  .hero-tag { right: 8px; bottom: 14px; padding: 10px 12px; font-size: .76rem; }
  .section-intro { grid-template-columns: 1fr; gap: 18px; }
  .route-section { padding-block: 70px; border-radius: 32px; }
  .rail-controls { display: none; }
  .story-rail { display: block; overflow: visible; padding-top: 28px; scroll-snap-type: none; }
  .story-card { min-height: 0; margin-bottom: 18px; padding: 30px 25px; border-radius: 28px; }
  .story-card h3 { font-size: clamp(2.15rem, 7vw, 3.1rem); }
  .step-label { margin-bottom: 28px; }
  .stage-list, .future-list { grid-template-columns: 1fr; margin-top: 26px; }
  .learning-section, .campus-section { padding-block: 80px; }
  .learning-map { grid-template-columns: 1fr; margin-top: 40px; }
  .learning-map article:nth-child(even) { margin-top: 0; }
  .learning-map article { min-height: 0; }
  .learning-map article span { margin-bottom: 25px; }
  .campus-grid { margin-top: 40px; }
  .campus-card { display: block; padding: 27px; }
  .campus-offer + .campus-offer { margin-top: 22px; }
  .next-panel { grid-template-columns: 1fr; padding: 28px; }
  .next-panel .button { white-space: normal; }
  .source-note { padding: 24px; }
  .load-status, .load-error { padding: 30px 24px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer img:last-child { justify-self: center; }
}
@media (max-width: 380px) {
  .site-header { gap: 8px; }.brand img { width: 132px; }.tec-logo { width: 107px; }
  .audience-button { padding-inline: 12px; font-size: .88rem; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.hero-visual > img { aspect-ratio: 3 / 2; object-fit: contain; background: var(--deep); }
