:root {
    --bg: #080d18;
    --bg-elevated: #0f1628;
    --card: rgba(17, 24, 42, 0.92);
    --line: rgba(255, 255, 255, 0.09);
    --text: #f0f4fa;
    --muted: #94a3b8;
    --gold: #c9a227;
    --gold-soft: rgba(201, 162, 39, 0.14);
    --teal: #2eb8c9;
    --teal-soft: rgba(46, 184, 201, 0.12);
    --green: #34d399;
    --purple: #a78bfa;
    --danger: #fb923c;
    --radius: 20px;
    --container: 1180px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-top-h: 36px;
    --header-main-h: 68px;
    --header-h: calc(var(--header-top-h) + var(--header-main-h));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 70% 45% at 10% -5%, rgba(46, 184, 201, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 0%, rgba(201, 162, 39, 0.12), transparent 50%),
        linear-gradient(180deg, #060a14 0%, var(--bg) 100%);
}
.mesh {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, black, transparent);
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }

/* Site header — doble barra institucional */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(8, 13, 24, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--line);
}

.site-topbar {
    height: var(--header-top-h);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
}
.site-topbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
}
.site-topbar__nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-topbar__nav a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.site-topbar__nav a:hover,
.site-topbar__nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}
.site-topbar__lang { flex-shrink: 0; }

.site-navbar {
    height: var(--header-main-h);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled .site-navbar { border-color: rgba(255, 255, 255, 0.05); }
.site-navbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.site-navbar__menu {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}
.site-navbar__menu a {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color .2s, border-color .2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.site-navbar__menu a:hover {
    color: var(--text);
}
.site-navbar__menu a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.nav-item { position: relative; }
.nav-item.has-children > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    margin-left: .35rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .6;
    vertical-align: middle;
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    min-width: 200px;
    background: #0c1220;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .4rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 50;
}
.nav-item.has-children:hover .nav-dropdown,
.nav-item.has-children:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: .55rem .75rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border-bottom: 0;
    white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.site-mobile__children { padding-left: 1rem; }
.site-mobile__children a { font-size: .82rem; color: rgba(255, 255, 255, 0.6); border-bottom-style: dashed; }
.site-navbar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    flex-shrink: 0;
}
.btn-cta {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
    min-width: 0;
}
.site-brand__logo {
    height: 46px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}
.site-brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(145deg, #dbb94a, var(--gold));
    display: grid;
    place-items: center;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0a0f1a;
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.25);
    flex-shrink: 0;
}
.site-brand__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.site-brand__program {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--gold);
    white-space: nowrap;
}
.site-brand__institute {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.lang-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 6px;
    padding: 0.35rem 1.6rem 0.35rem 0.65rem;
    font-weight: 600;
    font-size: 0.72rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath stroke='%2394a3b8' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}
.lang-select--compact { font-size: 0.7rem; padding-top: 0.28rem; padding-bottom: 0.28rem; }
.lang-select--mobile { width: 100%; font-size: 0.85rem; padding: 0.55rem 2rem 0.55rem 0.75rem; }

.btn-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}
.btn-menu span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
.btn-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.btn-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-mobile[hidden] { display: none; }
.site-mobile { position: fixed; inset: 0; z-index: 200; }
.site-mobile__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.site-mobile__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #0c1220;
    border-left: 1px solid var(--line);
    padding: 1.25rem 1.25rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: slideIn .25s var(--ease);
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.site-mobile__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    color: var(--gold);
}
.btn-menu-close {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}
.site-mobile__label {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}
.site-mobile__section a {
    display: block;
    padding: 0.65rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-mobile__section--secondary a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}
.site-mobile__cta { margin-top: auto; width: 100%; }

@media (max-width: 1180px) {
    .site-navbar__menu { display: none; }
    .btn-menu { display: flex; }
    .btn-cta { display: none; }
}
@media (max-width: 768px) {
    :root {
        --header-top-h: 0px;
        --header-main-h: 60px;
        --header-h: 60px;
    }
    .site-topbar { display: none; }
    .site-brand__institute { max-width: 140px; }
    .site-brand__program { font-size: 1.15rem; }
    .site-brand__logo { height: 38px; max-width: 110px; }
}
@media (min-width: 769px) and (max-width: 1180px) {
    .site-topbar__nav { gap: 0; }
    .site-topbar__nav a { padding: 0.35rem 0.45rem; font-size: 0.68rem; }
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .9rem; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn-primary {
    background: linear-gradient(145deg, #dbb94a, var(--gold)); color: #0a0f1a;
    box-shadow: 0 10px 32px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(201, 162, 39, 0.45); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }

/* Hero + carousel */
.hero { padding: 0; position: relative; }
.hero-carousel-wrap { padding-top: var(--header-h); }
.hero-carousel { position: relative; min-height: min(88vh, 720px); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.hero-slide.active { opacity: 1; visibility: visible; position: relative; min-height: min(88vh, 720px); }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(8,13,24,.92) 0%, rgba(8,13,24,.55) 45%, rgba(8,13,24,.75) 100%);
}
.hero-slide-content { position: relative; z-index: 2; padding: 5rem 0 4rem; max-width: 42rem; }
.hero-fallback { padding: calc(var(--header-h) + 3rem) 0 5rem; }

/* Página editable */
.page-content { padding: calc(var(--header-h) + 2.5rem) 0 4rem; }
.page-content .prose { max-width: 72ch; }
.page-content .prose p { margin: 0 0 1rem; color: #c8d4e6; }
.page-content .prose h2 { font-family: "Cormorant Garamond", serif; color: var(--gold); margin: 2rem 0 0.75rem; }
.page-content .prose ul { padding-left: 1.25rem; color: #c8d4e6; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
    display: inline-flex; padding: .4rem .85rem; border-radius: 999px;
    background: var(--gold-soft); border: 1px solid rgba(201,162,39,.3);
    color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-family: "Cormorant Garamond", serif; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; margin: 1rem 0 0; }
.hero-lead { color: #c8d4e6; font-size: 1.05rem; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.metric strong { display: block; font-size: 2rem; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.metric span { font-size: .82rem; color: var(--muted); }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dot.active { background: var(--gold); width: 28px; border-radius: 999px; }

section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .75rem; }
.section-head p { color: var(--muted); margin: 0; }
.accent-line { width: 56px; height: 3px; margin: 1rem auto 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--teal)); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.35rem; box-shadow: 0 12px 40px rgba(0,0,0,.2); transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(201,162,39,.25); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fact-list { margin: 0; padding-left: 1.1rem; color: #c5d0e2; }

.courses-grid .course-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course-media { aspect-ratio: 16/10; overflow: hidden; background: #0c1220; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .course-media img { transform: scale(1.04); }
.course-body { padding: 1.15rem 1.25rem 1.25rem; }
.course-code { font-size: .75rem; font-weight: 800; color: var(--teal); letter-spacing: .08em; }
.course-body h3 { font-size: 1rem; margin: .4rem 0; line-height: 1.35; }
.course-desc { font-size: .88rem; color: var(--muted); margin: 0 0 .5rem; }
.course-body small { color: var(--muted); font-size: .78rem; }
.track.sustainability { border-top: 3px solid var(--green); }
.track.consulting { border-top: 3px solid var(--purple); }
.track.supply-chain { border-top: 3px solid var(--teal); }
.track.it-ai { border-top: 3px solid var(--gold); }

.number-badge {
    display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px;
    background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: .85rem; margin-bottom: .75rem;
}
.outcome-card h3 { font-size: 1rem; margin: 0 0 .5rem; }
.outcome-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.avatar {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold); font-weight: 800; margin-bottom: .75rem;
}
.team-card.gold .avatar { background: var(--gold-soft); color: var(--gold); }
.team-card.cyan .avatar { background: var(--teal-soft); color: var(--teal); }
.team-card.purple .avatar { background: rgba(167,139,250,.15); color: var(--purple); }
.role { font-size: .82rem; color: var(--teal); font-weight: 600; margin-bottom: .5rem; }
.bio { font-size: .9rem; color: var(--muted); margin: 0; }

.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 1rem; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; padding: 0; }
.faq-a { margin-top: .75rem; color: var(--muted); }
.faq-a[hidden] { display: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.contact-list { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.25rem; }
.contact-item .ci-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--teal-soft); color: var(--teal);
    display: grid; place-items: center; flex-shrink: 0; font-weight: 800;
}
.contact-item strong {
    display: block; font-size: .75rem; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); margin-bottom: .25rem;
}
.contact-item a { color: var(--gold); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.social-row { display: flex; gap: .5rem; margin-top: .25rem; }
.social-btn {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .75rem;
    border: 1px solid var(--line); transition: .2s;
}
.social-btn:hover { background: var(--gold); color: #0a0f1a; }
.contact-form label { display: block; font-size: .85rem; color: var(--muted); margin: .75rem 0 .35rem; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: .65rem .75rem; border-radius: 12px; border: 1px solid var(--line);
    background: #0c1220; color: var(--text); font: inherit;
}
.form-success { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); padding: .75rem; border-radius: 12px; margin-bottom: 1rem; }
.form-error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); padding: .75rem; border-radius: 12px; margin-bottom: 1rem; }

.doc-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.download-link { color: var(--teal); font-weight: 700; }

.footer { border-top: 1px solid var(--line); padding: 2rem 0; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--muted); }
.footer-links { display: flex; gap: 1rem; }

.cta-float {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.25rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem;
    transform: translateY(120%); opacity: 0; transition: .4s var(--ease);
}
.cta-float.show { transform: none; opacity: 1; }
.cta-float p { margin: 0; font-size: .88rem; max-width: 14rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .hero-grid, .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; }
    .hero-slide-content { padding: 3.5rem 0 3rem; }
}
