:root {
    --msw-red: #D71920;
    --msw-yellow: #F1BF00;
    --msw-ink: #0f172a;
    --msw-muted: #5f6f85;
    --msw-line: rgba(15, 23, 42, 0.1);
    --msw-soft: #fff8e7;
}

.logo {
    flex: 0 0 clamp(250px, 26vw, 360px);
    gap: 0.7rem;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo-isotipo {
    height: clamp(48px, 5vw, 68px);
    max-width: none;
}

.logo-wordmark {
    display: block;
    height: clamp(44px, 4.8vw, 64px);
    width: auto;
    max-width: clamp(150px, 18vw, 230px);
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.msw-home {
    padding-top: 126px;
    background:
        radial-gradient(circle at 86% 10%, rgba(241, 191, 0, 0.2), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fffdf8 42%, #ffffff 100%);
}

.msw-hero {
    max-width: 1480px;
    min-height: calc(100vh - 126px);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 5rem) 3rem;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.5rem);
}

.msw-eyebrow,
.msw-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.85rem;
    border-radius: 6px;
    background: rgba(215, 25, 32, 0.08);
    color: var(--msw-red);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.msw-hero h1 {
    max-width: 780px;
    margin: 1.2rem 0 1.25rem;
    color: var(--msw-ink);
    font-size: clamp(3.3rem, 5.7vw, 6.6rem);
    line-height: 0.98;
    font-weight: 900;
}

.msw-hero h1 span,
.msw-hero h1 strong {
    display: block;
}

.msw-hero h1 strong {
    color: var(--msw-red);
}

.msw-hero__lead {
    max-width: 640px;
    color: var(--msw-muted);
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.msw-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.msw-btn {
    min-height: 54px;
    padding: 0 1.35rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.msw-btn--primary {
    background: var(--msw-red);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(215, 25, 32, 0.2);
}

.msw-btn--quiet {
    background: #ffffff;
    color: var(--msw-red);
    border: 1px solid rgba(215, 25, 32, 0.35);
}

.msw-btn:hover {
    transform: translateY(-2px);
}

.msw-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
    border: 1px solid var(--msw-line);
    border-radius: 10px;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.msw-proof div {
    padding: 1rem;
    border-right: 1px solid var(--msw-line);
}

.msw-proof div:last-child {
    border-right: 0;
}

.msw-proof strong {
    display: block;
    color: var(--msw-red);
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.msw-proof span {
    color: var(--msw-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.msw-hero__media {
    position: relative;
    min-height: 590px;
}

.msw-hero__media::before {
    content: "";
    position: absolute;
    right: -28px;
    top: -22px;
    width: 55%;
    height: 72%;
    border-radius: 18px;
    background: var(--msw-red);
}

.msw-hero__media::after {
    content: "";
    position: absolute;
    left: -28px;
    bottom: 42px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: var(--msw-yellow);
    opacity: 0.9;
}

.msw-photo-card {
    position: absolute;
    inset: 40px 0 42px 36px;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
    z-index: 2;
}

.msw-photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.msw-photo-label {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    max-width: 310px;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.msw-photo-label span {
    display: block;
    color: var(--msw-red);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.msw-photo-label strong {
    color: var(--msw-ink);
    font-size: 1.05rem;
    line-height: 1.2;
}

.msw-campus-card {
    position: absolute;
    right: 24px;
    bottom: 0;
    z-index: 3;
    width: min(360px, 70%);
    padding: 1rem;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--msw-line);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.msw-campus-card > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--msw-red), #D71920);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.82rem;
}

.msw-campus-card strong {
    display: block;
    color: var(--msw-ink);
    margin-bottom: 0.2rem;
}

.msw-campus-card p {
    color: var(--msw-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.msw-feature-strip {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 5rem) 5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.msw-feature-strip article,
.msw-path-grid article {
    background: #ffffff;
    border: 1px solid var(--msw-line);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.055);
}

.msw-feature-strip span,
.msw-path-grid strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(241, 191, 0, 0.18);
    color: var(--msw-red);
    font-weight: 900;
    margin-bottom: 1rem;
}

.msw-feature-strip h2,
.msw-path-grid h3 {
    color: var(--msw-ink);
    font-size: 1.18rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.msw-feature-strip p,
.msw-path-grid p {
    color: var(--msw-muted);
    line-height: 1.65;
}

.msw-learning-path {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem clamp(1.25rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: 0.74fr 1.26fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.msw-learning-path h2,
.msw-home-cta h2 {
    color: var(--msw-ink);
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.05;
    margin-top: 1rem;
}

.msw-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.msw-home-cta {
    max-width: 1400px;
    margin: 0 auto 5rem;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(215, 25, 32, 0.94), rgba(215, 25, 32, 0.82)),
        var(--msw-red);
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.msw-home-cta::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--msw-yellow);
    opacity: 0.32;
}

.msw-home-cta .msw-section-label {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
}

.msw-home-cta h2 {
    max-width: 840px;
    color: #ffffff;
}

.msw-home-cta .msw-btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    background: #ffffff;
    color: var(--msw-red);
}

@media (max-width: 1100px) {
    .msw-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .msw-hero__content {
        max-width: 850px;
    }

    .msw-hero__media {
        min-height: 520px;
    }

    .msw-learning-path {
        grid-template-columns: 1fr;
    }

    .msw-path-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        width: min(58vw, 230px);
        min-width: 160px;
        height: 48px;
        gap: 0;
    }

    .logo-isotipo {
        height: 42px;
    }

    .logo-wordmark {
        display: none;
    }

    .msw-home {
        padding-top: 104px;
        background: #f8fafc;
    }

    .msw-hero {
        padding-top: 2.2rem;
        padding-bottom: 2.5rem;
    }

    .msw-hero h1 {
        font-size: clamp(2.75rem, 13vw, 4.4rem);
    }

    .msw-hero__lead {
        font-size: 1rem;
    }

    .msw-hero__actions {
        flex-direction: column;
    }

    .msw-btn {
        width: 100%;
    }

    .msw-proof {
        grid-template-columns: 1fr;
    }

    .msw-proof div {
        border-right: 0;
        border-bottom: 1px solid var(--msw-line);
    }

    .msw-proof div:last-child {
        border-bottom: 0;
    }

    .msw-hero__media {
        min-height: 410px;
    }

    .msw-photo-card {
        inset: 18px 0 54px;
    }

    .msw-hero__media::before {
        right: -32px;
        top: 0;
        width: 45%;
        height: 72%;
    }

    .msw-hero__media::after {
        left: -40px;
        bottom: 40px;
        width: 160px;
        height: 160px;
    }

    .msw-campus-card {
        right: 0;
        bottom: 0;
        width: min(92%, 350px);
    }

    .msw-photo-label {
        left: 0.9rem;
        right: 0.9rem;
        max-width: none;
    }

    .msw-feature-strip {
        grid-template-columns: 1fr;
        padding-bottom: 3rem;
    }

    .msw-learning-path {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .msw-home-cta {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile: show only the clickable isotipo symbol. */
@media (max-width: 768px) {
    .logo {
        width: min(40vw, 168px);
        min-width: 136px;
        height: 48px;
        gap: 0;
        position: absolute;
        left: 72px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 3200;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
    }

    .logo a {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: transparent;
        border: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
        pointer-events: auto;
        flex: 0 0 48px;
    }

    .logo a:active {
        transform: scale(0.96);
    }

    .logo a .logo-isotipo {
        content: normal;
        height: 42px;
        width: auto;
        max-width: 52px;
        object-fit: contain;
    }

    .logo > .logo-wordmark {
        display: none;
    }
}

/* Modern shared mobile menu button */
@media (max-width: 768px) {
    .hamburger {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        border-radius: 999px;
    }
    .hamburger span:nth-child(1) { background: var(--primary); }
    .hamburger span:nth-child(2) { background: var(--secondary); }
    .hamburger span:nth-child(3) { background: var(--primary); }

    .hamburger:active {
        transform: scale(0.96);
    }
}
