:root {
    --institucional-oscuro: #0C2340;
    --institucional-celeste: #0EA5E9;
    --institucional-dorado: #DAA520;
    --institucional-claro: #F0F8FF;
    --text-main: #1E3A5F;
    --text-muted: #4B7EA6;
    --border-color: #BAE6FD;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- HERO PREMIUM --- */
.bg-institucional-gradient {
    background: linear-gradient(rgba(12, 35, 64, 0.75), rgba(12, 35, 64, 0.75)), url('/img/fondo-carreras.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.bg-institucional-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    bottom: -50%;
    left: -20%;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(218, 165, 32, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* --- CARDS DE CARRERAS MODERNAS --- */
.card-carrera {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-carrera:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
}

.img-card-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.img-card-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-carrera:hover .img-card-wrapper img {
    transform: scale(1.06);
}

.badge-carrera {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(12, 35, 64, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-body-carrera {
    padding: 28px 24px;
}

.title-carrera {
    color: var(--institucional-oscuro);
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card-carrera:hover .title-carrera {
    color: var(--institucional-celeste);
}

.desc-carrera {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
}

.meta-carrera i {
    color: var(--institucional-celeste);
    width: 20px;
}

.features-carrera ul {
    padding-left: 0;
    list-style: none;
}

.features-carrera li {
    font-size: 0.875rem;
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: #2c5282;
}

.features-carrera li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--institucional-dorado);
    font-size: 0.8rem;
}

.btn-carrera-link {
    color: var(--institucional-oscuro);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
    width: fit-content;
}

.btn-carrera-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.card-carrera:hover .btn-carrera-link {
    color: var(--institucional-celeste);
}

.card-carrera:hover .btn-carrera-link i {
    transform: translateX(4px);
}

/* --- PARTICULAS & EFECTOS --- */
.reveal-detail {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatP {
    0% {
        transform: translateY(100px) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.h-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatP linear infinite;
}

/* ==========================================================================
   DARK MODE — Carreras
   ========================================================================== */
body.dark-mode {
    background-color: #111827;
    color: #f9fafb;
}

body.dark-mode .card-carrera {
    background: #1f2937;
    border-color: rgba(14, 165, 233, 0.2);
}

body.dark-mode .title-carrera {
    color: #e2e8f0;
}

body.dark-mode .desc-carrera {
    color: #9ca3af;
}

body.dark-mode .meta-carrera {
    color: #9ca3af;
    border-top-color: rgba(14, 165, 233, 0.2) !important;
}

body.dark-mode .features-carrera li {
    color: #d1d5db;
}

body.dark-mode .btn-carrera-link {
    color: #93c5fd;
}