/* --- VARIABLES CORPORATIVAS COMPARTIDAS --- */
:root {
    --primary-blue: #071c42;
    --primary-blue-light: #0f2e68;
    --accent-yellow: #f3c12c;
    --accent-yellow-dark: #d4a316;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light-gray: #f8fafc;
}

/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- CLASES DE UTILIDAD --- */
.text-primary-dark { color: var(--primary-blue); }
.text-warning-dark { color: var(--accent-yellow-dark); }
.text-warning-light { color: var(--accent-yellow); }
.bg-primary-dark { background-color: var(--primary-blue); }
.tracking-wide { letter-spacing: 0.5px; font-size: 11px; font-weight: 500; }
.max-width-600 { max-width: 600px; }
.py-6 { padding: 90px 0; }
.bg-light-flat { background-color: #fafbfc; }

/* --- SECCIONES REUTILIZABLES --- */
.section-subtitle {
    display: inline-block;
    color: var(--accent-yellow-dark);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title-main {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 15px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-blue);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- NAVBAR --- */
.navbar-brand img {
    width: 55px;
    height: auto;
}

.navbar-nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

/* --- HERO MEJORADO --- */
.hero-home {
    min-height: 80vh;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2000');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(7, 28, 66, 0.9), rgba(7, 28, 66, 0.93));
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.logoceas {
    width: 80%;
}

.hero-badge {
    background: rgba(243, 193, 44, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(243, 193, 44, 0.3);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-logo-img {
    max-width: 320px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

/* --- COMPONENTE FLOTANTE DE ESTADÍSTICAS --- */
.stats-home {
    position: relative;
    z-index: 3;
    margin-top: -50px;
    padding-bottom: 30px;
}

.stats-wrap {
    padding: 30px;
}

/* Bordes divisorios responsivos */
@media (min-width: 768px) {
    .border-end-md {
        border-end: 1px solid #f1f5f9;
    }
}

/* --- COMPONENTE CARDS DE OFERTA ACADÉMICA --- */
.card-box-home {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(7, 28, 66, 0.04);
    border: 1px solid #edf2f7;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.card-box-home:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(7, 28, 66, 0.08);
}

.card-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body-content {
    padding: 25px;
}

.card-body-content h4 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
}

/* --- SECCIÓN Y TARJETAS DE CERTIFICACIONES (REDISEÑO DE CONTRASTE) --- */
.cert-card-home {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 16px;
    padding: 25px 20px;
    height: 100%;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cert-card-home:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-5px);
}

.cert-icon-wrap {
    font-size: 32px;
    color: var(--accent-yellow);
}

.cert-card-home h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card-home p {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 15px;
    min-height: 40px;
}

.cert-card-home a {
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s;
}

.cert-card-home a:hover {
    opacity: 0.8;
}

/* --- CONVENIOS Y MAPA MUNDIAL --- */
.map-wrap-home {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.map-filter {
    filter: drop-shadow(0 10px 15px rgba(7, 28, 66, 0.06));
    max-height: 340px;
}

/* --- TARJETAS DE NOTICIAS Y EVENTOS --- */
.news-card-home {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    height: 100%;
}

.news-img-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    color: white;
}

.news-badge-tag.bg-blue { background-color: var(--primary-blue-light); }
.news-badge-tag.bg-warning-custom { background-color: var(--accent-yellow-dark); }

.news-body-content {
    padding: 20px;
}

.news-body-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.news-body-content p {
    font-size: 14px;
    margin-bottom: 0;
}

/* --- FOOTER SEGURO --- */
.footer-home {
    background-color: #061329;
    color: white;
    padding: 80px 0 30px;
}

.footer-logo-img {
    width: 50px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.text-sm {
    font-size: 13px;
}

/* --- BOTONES PERSONALIZADOS --- */
.btn-custom-warning {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--primary-blue);
}
.btn-custom-warning:hover {
    background-color: #e5b31c;
    border-color: #e5b31c;
    color: var(--primary-blue);
}

.btn-custom-blue {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}
.btn-custom-blue:hover {
    background-color: var(--primary-blue-light);
    border-color: var(--primary-blue-light);
    color: white;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    .hero-home {
        text-align: center;
        min-height: auto;
    }
    .hero-home h1 {
        font-size: 45px;
    }
    .py-6 {
        padding: 60px 0;
    }
    .section-title-main {
        font-size: 28px;
    }
}