/* ============================================================
   Politécnico Salesiano Cristo Rey — Hoja de estilos principal
   ============================================================ */

:root {
    /* ===== Paleta institucional (tomada del logo Salesianos Barahona) ===== */
    --red: #c91824;          /* rojo principal */
    --red-dark: #9e131c;     /* rojo oscuro (hover) */
    --red-bright: #e1202e;   /* rojo vivo (BARAHONA) */
    --peach: #f9ae86;        /* durazno */
    --peach-light: #fbcdb4;  /* durazno claro */
    --charcoal: #2b2b2b;     /* gris casi negro (texto "salesianos") */

    /* Mapeo de variables de estructura */
    --navy: var(--charcoal);
    --navy-2: var(--red);
    --navy-3: var(--red-bright);
    --gold: var(--peach);
    --gold-dark: var(--red);
    --sky: #fdeae1;          /* fondo durazno muy claro */
    --cloud: #fdf7f4;        /* blanco cálido */
    --ink: var(--charcoal);
    --muted: #6b5b58;        /* gris cálido */
    --line: #f0e0d8;         /* borde cálido */
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 34px rgba(43, 43, 43, .10);
    --shadow-lg: 0 24px 60px rgba(120, 20, 28, .18);
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Iconos ---------- */
.icon { width: 28px; height: 28px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 15px; height: 15px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; border: 2px solid transparent;
    cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(201,24,36,.35); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--red); }
.btn--ghost { border-color: var(--navy-2); color: var(--navy-2); }
.btn--ghost:hover { background: var(--navy-2); color: var(--white); }
.btn--campus {
    background: var(--navy-2); color: var(--white) !important;
    padding: .55rem 1.15rem; font-size: .85rem;
}
.btn--campus:hover { background: var(--gold); color: var(--navy) !important; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   Header / Navegación
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar {
    background: var(--charcoal); color: #f6ded6; font-size: .8rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar__contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar a { color: #f6ded6; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold); }
.topbar__social { display: flex; gap: .9rem; }

.navbar { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(11,37,69,.08); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { color: var(--navy); }
.brand__logo { height: 62px; width: auto; display: block; }
.brand__logo--light { height: 58px; background: var(--white); padding: 9px 14px; border-radius: 12px; }
.brand__mark {
    display: grid; place-items: center; width: 48px; height: 48px;
    border-radius: 14px; background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
    color: var(--gold); box-shadow: 0 8px 18px rgba(18,60,105,.3);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.02rem; color: var(--navy); font-weight: 700; }
.brand__text em { font-style: normal; font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.brand--light .brand__text strong { color: var(--white); }
.brand--light .brand__text em { color: var(--peach); }

.nav-menu { display: flex; align-items: center; gap: .4rem; }
.nav-menu > li > a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .9rem; border-radius: 999px;
    font-size: .92rem; font-weight: 500; color: var(--ink);
    position: relative;
}
.nav-menu > li > a:not(.btn):hover { color: var(--navy-2); background: var(--sky); }
.nav-menu > li > a.active:not(.btn) { color: var(--navy-2); font-weight: 700; }
.nav-menu > li > a.active:not(.btn)::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 3px; background: var(--gold);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--navy); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Héroe
   ============================================================ */
.hero {
    position: relative; color: var(--white); overflow: hidden;
    background:
        linear-gradient(115deg, rgba(43,43,43,.96) 0%, rgba(130,20,28,.90) 52%, rgba(201,24,36,.80) 100%),
        radial-gradient(circle at 80% 18%, rgba(249,174,134,.38), transparent 45%),
        linear-gradient(135deg, #2b2b2b, #9e131c);
}
.hero::after {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 26px 26px;
}
.hero__inner { position: relative; z-index: 2; padding: 6.5rem 0 5.5rem; max-width: 720px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(249,174,134,.20); border: 1px solid rgba(249,174,134,.60);
    color: var(--peach-light); padding: .4rem 1rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 1rem; font-weight: 800; }
.hero h1 span { color: var(--peach); }
.hero p { font-size: 1.08rem; color: #f6ded6; max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__stats {
    position: relative; z-index: 2; display: flex; gap: 2.5rem; flex-wrap: wrap;
    padding: 1.8rem 0 2.6rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stats .stat strong { display: block; font-size: 2rem; color: var(--peach); font-family: var(--serif); font-weight: 800; }
.hero__stats .stat span { font-size: .85rem; color: #f6ded6; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 5rem 0; }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--navy); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .kicker {
    display: inline-block; color: var(--navy-3); font-weight: 700; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem;
}
.section-head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--navy); line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: .8rem; }
.section--navy .section-head h2 { color: var(--white); }
.section--navy .section-head p { color: #ecd9d3; }
.section--navy .kicker { color: var(--gold); }

/* ---------- Tarjetas de áreas ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.area-card {
    background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.area-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: var(--accent, var(--navy-2));
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.area-card__icon {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent, var(--navy-2)) 14%, white);
    color: var(--accent, var(--navy-2)); margin-bottom: 1.1rem;
}
.area-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: .5rem; }
.area-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.area-card .link-more {
    margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; font-size: .9rem; color: var(--accent, var(--navy-2));
}
.area-card .link-more:hover { gap: .7rem; }

/* ---------- Split (imagen + texto) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
    border-radius: var(--radius); min-height: 360px;
    background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
    position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
    display: grid; place-items: center; color: rgba(255,255,255,.9);
}
.split__media::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 22px 22px;
}
.split__media .icon { width: 90px; height: 90px; opacity: .55; position: relative; }
.split__body .kicker { color: var(--navy-3); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.split__body h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); margin: .6rem 0 1rem; line-height: 1.2; }
.split__body p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Lista de características ---------- */
.check-list { display: grid; gap: .7rem; margin-top: 1rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); font-size: .95rem; }
.check-list .icon { color: var(--gold-dark); width: 20px; height: 20px; margin-top: .2rem; }

/* ---------- Valores / features ---------- */
.feature {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 1.8rem 1.5rem;
}
.feature .icon { color: var(--gold); margin-bottom: .9rem; }
.feature h3 { color: var(--white); font-size: 1.08rem; margin-bottom: .5rem; }
.feature p { color: #ecd9d3; font-size: .92rem; }

/* ---------- Actividades / noticias ---------- */
.activity-card, .news-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.activity-card:hover, .news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.activity-card__banner { height: 8px; background: var(--accent, var(--navy-2)); }
.activity-card__body, .news-card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.activity-card__meta { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.tag {
    display: inline-block; padding: .22rem .7rem; border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .03em;
    background: var(--sky); color: var(--navy-2);
}
.activity-card h3, .news-card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: .6rem; line-height: 1.35; }
.activity-card p, .news-card p { color: var(--muted); font-size: .92rem; flex: 1; }

.news-card__date {
    width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
    background: var(--navy-2); color: var(--white); line-height: 1; margin-bottom: 1rem; text-align: center;
}
.news-card__date strong { font-size: 1.35rem; display: block; font-family: var(--serif); }
.news-card__date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Página interior hero ---------- */
.page-hero {
    background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--white); padding: 4rem 0; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 26px 26px;
}
.page-hero__inner { position: relative; z-index: 2; }
.breadcrumb { font-size: .82rem; color: var(--peach); margin-bottom: .8rem; }
.breadcrumb a { color: var(--gold); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
.page-hero p { color: #f6ded6; margin-top: .7rem; max-width: 640px; }

/* ---------- Área detalle (Quiénes somos) ---------- */
.area-detail {
    display: grid; grid-template-columns: 90px 1fr; gap: 1.8rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.2rem; box-shadow: var(--shadow); align-items: start;
}
.area-detail + .area-detail { margin-top: 1.6rem; }
.area-detail__icon {
    width: 90px; height: 90px; border-radius: 22px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent, var(--navy-2)) 14%, white);
    color: var(--accent, var(--navy-2));
}
.area-detail h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: .4rem; }
.area-detail .meta { font-size: .82rem; color: var(--navy-3); font-weight: 600; margin-bottom: .9rem; }
.area-detail p { color: var(--muted); margin-bottom: 1rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    background: var(--cloud); border: 1px solid var(--line); color: var(--ink);
    padding: .35rem .85rem; border-radius: 999px; font-size: .82rem;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 1.8rem; }
.timeline__item::before {
    content: ""; position: absolute; left: -2.2rem; top: 4px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--gold); border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}
.timeline__item h4 { color: var(--navy); font-size: 1.02rem; }
.timeline__item span { font-size: .8rem; color: var(--navy-3); font-weight: 600; }
.timeline__item p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }

/* ---------- MISIÓN / VISIÓN / valores ---------- */
.mv-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow); border-top: 5px solid var(--accent, var(--navy-2));
}
.mv-card .icon { color: var(--accent, var(--navy-2)); margin-bottom: 1rem; }
.mv-card h3 { color: var(--navy); margin-bottom: .6rem; font-size: 1.2rem; }
.mv-card p { color: var(--muted); font-size: .94rem; }

/* ============================================================
   Contacto
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-item {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1.2rem; box-shadow: var(--shadow);
}
.contact-item__icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--sky); color: var(--navy-2); flex: none;
}
.contact-item h4 { color: var(--navy); font-size: .98rem; margin-bottom: .2rem; }
.contact-item p, .contact-item a { color: var(--muted); font-size: .92rem; }

.form-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.2rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .92rem; color: var(--ink); background: var(--cloud);
    transition: border-color .2s ease, background .2s ease; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--navy-3); background: var(--white); box-shadow: 0 0 0 4px rgba(26,79,134,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

.alert { padding: .95rem 1.2rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.3rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert--success { background: #e7f7ee; border: 1px solid #b6e6c9; color: #15613a; }
.alert--error { background: #fdeaea; border: 1px solid #f3c2c2; color: #9b2c2c; }
.alert .icon { width: 20px; height: 20px; margin-top: .1rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 2rem; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============================================================
   Campus Virtual
   ============================================================ */
.campus-hero {
    background: linear-gradient(115deg, #2b2b2b 0%, var(--red) 60%, var(--red-bright) 100%);
    color: var(--white); position: relative; overflow: hidden;
    padding: 3.5rem 0;
}
.campus-hero::after {
    content: ""; position: absolute; inset: 0; opacity: .45;
    background-image: radial-gradient(rgba(249,174,134,.5) 1px, transparent 1px);
    background-size: 30px 30px;
}
.campus-hero__inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.campus-hero h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

.login-wrap { display: grid; place-items: center; padding: 4rem 0; }
.login-card {
    width: min(100%, 440px); background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.4rem;
}
.login-card__head { text-align: center; margin-bottom: 1.8rem; }
.login-card__head .brand__mark { margin: 0 auto 1rem; }
.login-card__head h2 { color: var(--navy); font-family: var(--serif); font-size: 1.5rem; }
.login-card__head p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.login-hint { background: var(--sky); border: 1px dashed var(--navy-3); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .82rem; color: var(--navy-2); margin-top: 1.2rem; text-align: center; }

/* Dashboard */
.dash-header { background: var(--navy); color: var(--white); padding: 1.6rem 0; }
.dash-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dash-user { display: flex; align-items: center; gap: .8rem; }
.dash-user__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.dash-user small { color: var(--peach); display: block; font-size: .78rem; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: -2.2rem 0 2.5rem; }
.dash-stat {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow);
}
.dash-stat .icon { color: var(--navy-2); margin-bottom: .5rem; }
.dash-stat strong { display: block; font-size: 1.7rem; color: var(--navy); font-family: var(--serif); }
.dash-stat span { font-size: .82rem; color: var(--muted); }

.course-row {
    display: grid; grid-template-columns: 90px 1fr 180px 90px; gap: 1rem; align-items: center;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
}
.course-row + .course-row { margin-top: .8rem; }
.course-row__code { font-family: var(--serif); font-weight: 700; color: var(--navy-2); }
.course-row h4 { color: var(--navy); font-size: 1rem; }
.course-row small { color: var(--muted); font-size: .82rem; }
.progress { background: var(--line); border-radius: 999px; height: 9px; overflow: hidden; width: 100%; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy-3), var(--gold)); }
.progress-label { font-size: .8rem; color: var(--navy-3); font-weight: 600; text-align: right; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
.panel h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 1rem; }
.notice-list li { display: flex; gap: .7rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list .icon { color: var(--gold-dark); width: 18px; height: 18px; margin-top: .15rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
    border-radius: var(--radius); padding: 3rem; color: var(--white);
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    flex-wrap: wrap; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(245,179,1,.16);
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2rem); position: relative; }
.cta-band p { color: #f6ded6; margin-top: .4rem; position: relative; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--charcoal); color: #ecd9d3; padding-top: 3.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.footer-col h4 { color: var(--white); font-size: .98rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .55rem; font-size: .9rem; }
.footer-col a { color: #ecd9d3; }
.footer-col a:hover { color: var(--gold); }
.footer-col--brand p { font-size: .9rem; margin: 1rem 0; max-width: 320px; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: var(--white);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }

/* ---------- Volver arriba ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--gold); color: var(--navy); border: 0; cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 12px 28px rgba(245,179,1,.45); opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: .3s; z-index: 90;
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-dark); }

/* ---------- Botón flotante: Campus Virtual ---------- */
.campus-fab {
    position: fixed; left: 22px; bottom: 22px; z-index: 90;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .85rem 1.3rem; border-radius: 999px;
    background: var(--red); color: var(--white);
    font-weight: 600; font-size: .92rem;
    box-shadow: 0 12px 28px rgba(201,24,36,.45);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.campus-fab:hover { background: var(--red-dark); color: var(--white); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(201,24,36,.55); }
.campus-fab .icon { width: 18px; height: 18px; }

/* ============================================================
   Animaciones al hacer scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
        flex-direction: column; align-items: stretch; gap: .3rem;
        background: var(--white); padding: 6rem 1.4rem 2rem;
        box-shadow: -20px 0 50px rgba(11,37,69,.2);
        transform: translateX(105%); transition: transform .3s ease; z-index: 120;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu > li > a { padding: .85rem 1rem; border-radius: var(--radius-sm); }
    .btn--campus { justify-content: center; margin-top: .5rem; }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split--reverse .split__media { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .course-row { grid-template-columns: 1fr; gap: .5rem; }
    .progress-label { text-align: left; }
}

@media (max-width: 640px) {
    .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .grid--2 { grid-template-columns: 1fr; }
    .topbar__contact a:last-child { display: none; }
    .hero__inner { padding: 4.5rem 0 3.5rem; }
    .hero__stats { gap: 1.6rem; }
    .section { padding: 3.5rem 0; }
    .form-row { grid-template-columns: 1fr; }
    .area-detail { grid-template-columns: 1fr; }
    .area-detail__icon { width: 64px; height: 64px; border-radius: 16px; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .campus-fab span { display: none; }
    .campus-fab { padding: .85rem; bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
