:root {
    --brand-orange: #F37021;
    --brand-dark: #1a1c1e;
    --bg-page: #f0f2f5; 
    --card-white: #ffffff;
    --text-main: #212529;
    --text-muted: #5f6368;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

.navbar {
    background-color: #000000 !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);  
    padding: 0.5rem 0; 
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff; 
    letter-spacing: -0.5px;
}

.brand-slogan {
    font-size: 1rem;
    font-weight: 600;
    color: #cccccc; 
    margin-top: 4px;
    font-style: italic;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--brand-orange) !important;
}

.text-orange {
    color: var(--brand-orange);
}

.course-card {
    background-color: var(--card-white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-heading {
    min-height: 4.8em; 
    margin-bottom: 0.5rem;
}

.course-title {
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.25;
    color: var(--brand-dark);
    margin-bottom: 0.35rem; 
}

.course-subtitle {
    font-size: 0.95rem; 
    font-weight: 800; 
    line-height: 1.3;
    color: #495057; 
    margin: 0;
}

.course-badge {
    display: inline-block;
    background-color: rgba(243, 112, 33, 0.1);
    color: var(--brand-orange);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.text-muted {
    margin-bottom: 1rem !important;
}
.btn-cta {
    background-color: var(--brand-orange);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
}

.btn-cta:hover {
    background-color: #d45d13;
    color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
}

.section-title {
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 5px;
    background: var(--brand-orange);
    margin-top: 10px;
}

.ondemand {
    background-color: rgba(0,0,0,0.02);
}

.site-footer {
    background-color: var(--brand-dark);
    color: #adb5bd;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-brand {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--brand-orange);
}

.community-event {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-left: 6px solid var(--brand-orange);
}

.event-title {
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

    .event-title a {
        color: var(--brand-dark);
        text-decoration: underline;
        text-decoration-color: rgba(243, 112, 33, 0.4); /* naranja sutil */
        text-underline-offset: 4px;
        transition: var(--transition);
    }

        .event-title a:hover,
        .event-title a:focus {
            color: var(--brand-orange);
            text-decoration-color: var(--brand-orange);
        }

        .event-title a:active {
            color: var(--brand-orange);
        }

.community-event.active::before {
    content: "Evento activo";
    display: inline-block;
    background-color: rgba(243, 112, 33, 0.1);
    color: var(--brand-orange);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 80px;
        height: auto;
    }
    .brand-name {
        font-size: 1.4rem;
    }
    .brand-slogan {
        display: none; 
    }
}