:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --accent: #ffb703;
    --success: #28a745;
    --info: #17a2b8;
    --danger: #dc3545;
    --dark: #1c1c1c;
    --gray: #6c757d;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f7fb;
    color: #333;
}

/* ============ NAVBAR ============ */
.navbar-mp {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-mp .container {
    gap: 16px;
    flex-wrap: wrap;
}

.navbar-mp .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
}

.navbar-mp .brand small {
    display: block;
    font-size: .7rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: .5px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-login {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 30px;
    padding: 6px 22px;
    transition: all .25s;
}

.btn-login:hover {
    background: var(--primary);
    color: #fff;
}

.btn-register {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    padding: 6px 22px;
    transition: all .25s;
}

.btn-register:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 60, 114, .3);
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 60%, #3f6fb5 100%);
    color: #fff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero p.lead {
    font-size: 1.1rem;
    opacity: .92;
    max-width: 620px;
    margin-bottom: 30px;
}

.hero .badge-mp {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.hero .btn-hero-primary {
    background: var(--accent);
    border: none;
    color: #1c1c1c;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 30px;
    transition: all .25s;
}

.hero .btn-hero-primary:hover {
    background: #ffc93c;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 183, 3, .4);
}

.hero .btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 30px;
    transition: all .25s;
}

.hero .btn-hero-outline:hover {
    background: #fff;
    color: var(--primary);
}

.hero-institution {
    display: inline-flex;
    width: min(100%, 340px);
    min-height: 340px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 28px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 24px 60px rgba(9, 26, 58, .28);
    backdrop-filter: blur(6px);
}

.hero-logo {
    display: block;
    width: min(100%, 230px);
    max-height: 230px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .2));
}

.hero-institution figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
}

.hero-institution figcaption strong {
    font-size: 1.15rem;
}

.hero-institution figcaption span {
    font-size: .78rem;
    opacity: .85;
}

/* ============ ATAJOS ============ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    max-width: 620px;
    margin: 0 auto;
}

.atajos {
    padding: 80px 0;
    margin-top: -60px;
}

.card-atajo {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    transition: all .3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.card-atajo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.card-atajo:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(30, 60, 114, .18);
    border-color: rgba(30, 60, 114, .08);
}

.card-atajo.is-unavailable {
    cursor: not-allowed;
}

.card-atajo.is-unavailable::before {
    display: none;
}

.card-atajo.is-unavailable:hover {
    transform: none;
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

.card-atajo:hover::before {
    transform: scaleX(1);
}

.card-atajo .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 18px;
}

.card-atajo h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card-atajo p {
    color: var(--gray);
    font-size: .92rem;
    margin-bottom: 15px;
}

.card-atajo .link-more {
    color: var(--primary);
    font-weight: 600;
    font-size: .88rem;
}

.card-atajo:hover .link-more i {
    transform: translateX(4px);
}

.card-atajo .link-more i {
    transition: transform .25s;
    margin-left: 5px;
}

.bg-grad-1 {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.bg-grad-2 {
    background: linear-gradient(135deg, #17a2b8, #0f7f92);
}

.bg-grad-3 {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.bg-grad-4 {
    background: linear-gradient(135deg, #ffb703, #e69500);
}

.bg-grad-5 {
    background: linear-gradient(135deg, #6f42c1, #553098);
}

.bg-grad-6 {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

/* ============ CÓMO FUNCIONA ============ */
.como-funciona {
    padding: 70px 0;
    background: #fff;
}

.paso {
    text-align: center;
    padding: 20px;
}

.paso .num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(30, 60, 114, .25);
}

.paso h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.paso p {
    color: var(--gray);
    font-size: .9rem;
}

/* ============ CTA ============ */
.cta {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta h3 {
    font-weight: 700;
    margin-bottom: 12px;
}

.cta p {
    opacity: .9;
    margin-bottom: 25px;
}

/* ============ FOOTER ============ */
footer {
    background: #0f1f3d;
    color: #b8c3d6;
    padding: 50px 0 20px;
    font-size: .9rem;
}

footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: .5px;
}

footer a {
    color: #b8c3d6;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color .2s;
}

footer a:hover {
    color: #fff;
}

footer .footer-link-unavailable {
    display: block;
    margin-bottom: 8px;
    color: #8995a8;
    cursor: not-allowed;
}

footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    border-radius: 8px;
}

footer .social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all .25s;
}

footer .social .social-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 50%;
    color: #b8c3d6;
    background: rgba(255, 255, 255, .08);
    opacity: .65;
    cursor: not-allowed;
}

footer .social a:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-3px);
}

footer .copy {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    font-size: .82rem;
    color: #8896b3;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .atajos {
        margin-top: -40px;
    }
}

.navbar-actions .btn {
    margin: 0;
}

.badge-dot {
    font-size: .5rem;
}

@media (max-width: 575.98px) {
    .navbar-mp .container {
        justify-content: center !important;
    }

    .navbar-mp .brand {
        font-size: 1.05rem;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .navbar-actions {
        width: 100%;
        justify-content: center;
    }

    .navbar-actions .btn {
        padding: 6px 14px;
        font-size: .88rem;
    }

    .section-title h2 {
        font-size: 1.65rem;
    }

    footer .footer-brand {
        font-size: 1.05rem;
    }
}
