:root {

    /* Paleta de colores ESUNM / GRYFFINDOR */
    --red: #740001;
    --red2: #7F0909;
    --deep: #4B0001;
    --gold: #EEBA30;
    --gold2: #F7D66E;

    /* Paleta de colores neutrales */
    --white: #FFFFFF;
    --off: #FBFAF8;
    --cream: #F6F1E7;
    --ink: #211B1A;
    --muted: #746D69;
    --line: #E9E3DC;

    /* Formas y sombras */
    --shadow: 0 22px 60px rgba(60, 20, 20, .08);
    --shadow-lg: 0 30px 90px rgba(65, 0, 1, .12);
    --radius: 24px;
    --max: 1240px;
}


/* Global */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #fff;
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: auto;
}

section {
    padding: 100px 0;
}

/* Tipografía */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
.display {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(4rem, 8vw, 8.2rem);
    line-height: .89;
    margin: 0 0 26px;
}

h2 {
    font-size: clamp(2.5rem, 4.8vw, 4.9rem);
    line-height: .98;
    margin-bottom: 22px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.lead {
    max-width: 780px;
    font-size: clamp(1.05rem, 1.5vw, 1.24rem);
    color: var(--muted);
}

/* Botones */

.btn {
    min-height: 52px;
    padding: 0 23px;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    font-weight: 800;
    transition: .25s;
}

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

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: var(--red2);
}

.btn-gold {
    background: var(--gold);
    color: var(--deep);
}

.btn-gold:hover {
    background: var(--gold2);
}

.btn-outline {
    background: white;
    color: var(--red);
    border-color: rgba(116, 0, 1, .2);
}

.btn-outline:hover {
    border-color: var(--red);
    background: #fff8f3;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 12px 0;
    transition: .25s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(30, 15, 15, .06);
    border-bottom: 1px solid rgba(116, 0, 1, .06);
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    width: 250px;
    max-width: 24vw;
}

.navlinks {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: .82rem;
    font-weight: 700;
    color: #554847;
}

.navlinks a {
    position: relative;
}

.navlinks a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--gold);
    transition: .25s;
}

.navlinks a:hover::after {
    right: 0;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Menú hamburguesa para móvil */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(116, 0, 1, .12);
    border-radius: 50%;
    background: #fff;
    color: var(--red);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    margin: 4px auto;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 990;
    background: #fff;
    padding: 104px 22px 28px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: grid;
}

.mobile-menu nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font: 600 1.45rem/1.1 "Oswald", sans-serif;
    text-transform: uppercase;
    color: var(--red);
}

.mobile-bottom {
    margin-top: 34px;
}

/* Sección Hero */

.hero {
    min-height: 100svh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 88% 32%, rgba(238, 186, 48, .10), transparent 24%), linear-gradient(180deg, #fff 0%, #fff 76%, #FBF7F1 100%);
}

.hero::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 34%;
    height: 100%;
    background: linear-gradient(180deg, rgba(116, 0, 1, .035), transparent);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 65px;
    align-items: center;
}

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

.hero h1 .gold {
    color: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* Hero - Flama y card ESUNM */

.hero-art {
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-flame {
    width: min(24vw, 305px);
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 28px 60px rgba(116, 0, 1, .08));
}

.hero-circle {
    position: absolute;
    width: min(39vw, 490px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(116, 0, 1, .11);
}

.hero-circle::before {
    content: "";
    position: absolute;
    inset: 42px;
    border-radius: 50%;
    border: 1px solid rgba(238, 186, 48, .30);
}

.hero-card {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 48px;
    width: 315px;
    padding: 22px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 5;
}

.hero-card small {
    display: block;
    color: var(--gold);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.hero-card strong {
    display: block;
    font: 600 1.38rem/1.08 "Oswald", sans-serif;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 7px;
}

.hero-card span {
    color: var(--muted);
    font-size: .81rem;
}

.ledger-grid {
    position: absolute;
    inset: 55px 25px 80px;
    background-image: linear-gradient(rgba(116, 0, 1, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(116, 0, 1, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    z-index: 1;
}

.audit-line {
    position: absolute;
    width: 220px;
    height: 3px;
    background: var(--gold);
    right: 32px;
    top: 160px;
    transform: rotate(-22deg);
    opacity: .75;
}

.audit-line::after {
    content: "✓";
    position: absolute;
    right: -17px;
    top: -18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: #FFFFFF;
    font-weight: 900;
}

/* Datos del programa */

.facts {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fact {
    padding: 24px;
    border-right: 1px solid var(--line);
}

.fact:last-child {
    border-right: 0;
}

.fact small {
    display: block;
    color: var(--gold);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fact strong {
    display: block;
    color: var(--red);
    font-size: .95rem;
}

.fact span {
    color: var(--muted);
    font-size: .78rem;
}

/* Propósito del programa */

.purpose {
    background: white;
}

.two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.copy-card {
    padding: 52px;
    background: var(--off);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.copy-card h2 {
    color: var(--red);
    margin-top: 18px;
}

.copy-card p {
    color: var(--muted);
}

.statement-card {
    min-height: 560px;
    padding: 48px;
    border-radius: var(--radius);
    background: var(--red);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.statement-card::before {
    content: "";
    position: absolute;
    inset: -8%;
    background: url("Varios (7).png") center / 66% no-repeat;
    opacity: .12;
}

.statement-card>* {
    position: relative;
    z-index: 2;
}

.statement-card .big {
    font: 700 clamp(2.9rem, 4.4vw, 4.9rem)/.95 "Oswald", sans-serif;
    text-transform: uppercase;
}

.statement-card .big span {
    color: var(--gold);
}

/* Sección Real World */

.build {
    background: #fff;
}

.build-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 64px;
    align-items: center;
}

.build-copy p {
    color: var(--muted);
}

.build-list {
    margin-top: 32px;
    border-top: 1px solid var(--line);
}

.build-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.build-row>span {
    color: var(--gold);
    font: 700 .8rem "Oswald", sans-serif;
}

.build-row strong {
    display: block;
    color: var(--red);
    margin-bottom: 3px;
}

.build-row p {
    margin: 0;
    font-size: .86rem;
}

.build-quote {
    min-height: 540px;
    padding: 48px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid #EADFCF;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.build-quote::after {
    content: "";
    position: absolute;
    right: -105px;
    bottom: -120px;
    width: 430px;
    height: 430px;
    background: url("Varios (7).png") center / contain no-repeat;
    opacity: .12;
}

.build-quote>* {
    position: relative;
    z-index: 2;
}

.build-quote .quote {
    font: 700 clamp(3rem, 5vw, 5.2rem)/.94 "Oswald", sans-serif;
    text-transform: uppercase;
}

.build-quote .quote span {
    color: var(--red);
}

/* Campo profesional */

.career {
    background: #fff;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.career-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    min-height: 260px;
    transition: .25s;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.career-card .n {
    color: var(--gold);
    font: 700 .75rem "Oswald", sans-serif;
    letter-spacing: .12em;
    margin-bottom: 28px;
}

.career-card h3 {
    font: 600 1.38rem/1.08 "Oswald", sans-serif;
    text-transform: uppercase;
    color: var(--red);
}

.career-card p {
    font-size: .86rem;
    color: var(--muted);
}

/* Plan de estudios */

.plan {
    background: var(--off);
}

.plan-head {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: end;
    margin-bottom: 36px;
}

.plan-head p {
    max-width: 650px;
    color: var(--muted);
}

.plan-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.plan-btn {
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: #655955;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.plan-btn.active,
.plan-btn:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.term {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px;
}

.term.active {
    display: block;
}

.term h3 {
    font: 600 2rem/1 "Oswald", sans-serif;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 24px;
}

.subjects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.subject {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
    color: #5f5652;
}

.download-btn-container {
    padding-top: 22px;
    text-align: center;
}

/* Modalidades de estudio */
.modality {
    background: #fff;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mode {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.mode small {
    display: block;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mode h3 {
    font: 600 1.7rem/1 "Oswald", sans-serif;
    text-transform: uppercase;
    color: var(--red);
}

.mode p {
    color: var(--muted);
    font-size: .88rem;
}

/* Validez Oficial */
.validity {
    background: var(--off);
}

.valid-box {
    padding: 46px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #FFFFFF;
    display: grid;
    grid-template-columns: .2fr 1fr;
    gap: 35px;
    align-items: center;
}

.valid-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cream);
    color: var(--red);
    font: 700 2rem "Oswald", sans-serif;
    border: 1px solid #EADFCF;
}

.valid-box p {
    color: var(--muted);
    margin: 0;
}

/* Tu siguiente decisión */
.cta {
    background: var(--cream);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta h2 {
    color: var(--red);
    margin-bottom: 10px;
}

.cta p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
}

/* Animación reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/*========================================
Mobile
========================================*/
@media(max-width: 680px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    section {
        padding: 72px 0;
    }

    .site-header {
        padding: 8px 0;
        background: rgba(255, 255, 255, .95);
    }

    .nav {
        min-height: 60px;
    }

    .logo {
        width: 188px;
        max-width: 66vw;
    }

    h1 {
        font-size: clamp(3.3rem, 15.7vw, 4.8rem);
    }

    h2 {
        font-size: clamp(2.5rem, 12vw, 3.7rem);
    }

    .hero {
        padding: 108px 0 48px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-art {
        min-height: 330px;
    }

    .hero-circle {
        width: 300px;
    }

    .hero-flame {
        width: 190px;
    }

    .hero-card {
        width: calc(100% - 18px);
        max-width: 300px;
        padding: 17px;
    }

    .facts-grid,
    .pillars-grid,
    .profile-grid,
    .career-grid,
    .subjects,
    .foot {
        grid-template-columns: 1fr;
    }

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

    .fact:last-child {
        border-bottom: 0;
    }


    .copy-card,
    .statement-card,
    .build-quote,
    .profile-card,
    .term,
    .valid-box,
    .built-box {
        padding: 28px;
    }

    .statement-card {
        min-height: 500px;
    }

    .build-quote {
        min-height: 470px;
    }

    .plan-head {
        display: block;
    }

    .plan-head p {
        margin-top: 15px;
    }

    .cta .btn {
        width: 100%;
    }

    .bottom {
        flex-direction: column;
        gap: 6px;
    }

    .pillar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .pillar:last-child {
        border-bottom: 0;
    }

}