/* Global Overrides for Masculine/Elegant Theme */
:root {
    --primary-color: #1a252f;
    /* Restored Dark Navy for Text/Menu */
    --brand-blue: #00234b;
    /* Exact Brand Blue provided by user */
    --primary-hover: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --card-border: #eee;
    --nav-height: 80px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
    background-color: #fdfdfd;
    line-height: 1.6;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn-custom {
    background-color: var(--brand-blue);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-custom:hover {
    background-color: #001835;
    /* Darker Brand Blue */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Highlight for Aula Virtual */
.btn-aula {
    background-color: var(--brand-blue) !important;
    background: linear-gradient(135deg, var(--brand-blue), #001835);
    box-shadow: 0 4px 15px rgba(0, 35, 75, 0.3);
    padding: 10px 30px !important;
    font-size: 0.9rem !important;
    border: 2px solid white;
    color: white !important;
}

.btn-aula:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 35, 75, 0.5);
    background: linear-gradient(135deg, #001835, var(--brand-blue));
}

/* --- Cards (Global) --- */
.card-custom {
    background: #fff;
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-custom-img {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.card-custom-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-custom:hover .card-custom-img img {
    transform: scale(1.1);
}

.card-custom-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- Navbar --- */
.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    padding: 5px 0;
    /* AJUSTAR AQUÍ: 5px para barra delgada, 15px para normal */
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
}



.nav-link {
    font-weight: 600;
    color: #555 !important;
    transition: all 0.3s;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 0, 0, 0.03);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(26, 37, 47, 0.85), rgba(26, 37, 47, 0.7)), url('https://source.unsplash.com/1600x900/?driving,road') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* --- Footer --- */
footer.bg-dark {
    background-color: var(--brand-blue) !important;
    padding-top: 5rem;
    padding-bottom: 3rem;
    border-top: 5px solid var(--accent-color);
    color: #ffffff !important;
}

footer h5 {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

footer a {
    color: #ffffff !important;
    /* Force white links */
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.8;
}

footer a:hover {
    color: var(--accent-color) !important;
    opacity: 1;
}

footer .text-muted {
    color: #ffffff !important;
    /* Override bootstrap text-muted */
    opacity: 0.8;
    /* Slight transparency for hierarchy instead of gray color */
}

footer i {
    color: var(--accent-color);
}

/* --- Custom User Menu (Robust Override) --- */
.custom-menu-nav {
    position: absolute;
    top: 50%;
    left: 88%;
    transform: translate(-50%, -50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    z-index: 1050;
    margin: 0 !important;
    width: auto !important;
    white-space: nowrap;
}

/* "Aula Virtual" Button Specific Style */
.custom-menu-nav ul li a.btn-aula {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: 2px solid white;
    /* Borde para resaltar */
    border-radius: 50px;
    padding: 10px 25px;
    /* Más grande */
    font-weight: 800 !important;
    /* Texto más grueso */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra más notable */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* "Matriculate" Button Hero Style */
.btn-matricula {
    background-color: var(--brand-blue) !important;
    color: white !important;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-matricula:hover {
    background-color: #001835 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: white !important;
}

/* Call to Action Button */
.btn-cta {
    background-color: var(--brand-blue) !important;
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #001835 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.custom-menu-nav ul li a.btn-aula:hover {
    background-color: #001835 !important;
    /* Darker Brand Blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.custom-menu-nav ul {
    display: flex !important;
    flex-direction: row !important;
    margin: 0 !important;
    padding: 0 20px !important;
    list-style: none !important;
    align-items: center;
}

.custom-menu-nav ul li {
    padding: 8px 2px !important;
    margin: 0 10px !important;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.custom-menu-nav ul li a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 10px;
    display: block;
    letter-spacing: 0.5px;
}

/* Hover Effects */
.custom-menu-nav ul li:hover {
    background: var(--light-bg);
    border-color: #eee;
}

.custom-menu-nav ul li:hover a {
    color: var(--accent-color) !important;
}

/* Hide on mobile/tablet strictly */
@media (max-width: 991px) {
    .custom-menu-nav {
        display: none !important;
    }
}


/* Ensure container is relative for absolute menu positioning */
.navbar .container {
    position: relative !important;
}

/* FORCE HIDE Mobile Menu on Desktop (Critical for removing duplicates) */
@media (min-width: 992px) {

    #navbarNav,
    .navbar-collapse.d-lg-none {
        display: none !important;
    }
}

/* --- Brand Color Overrides (User Request) --- */
.bg-primary {
    background-color: var(--brand-blue) !important;
}

.text-primary {
    color: var(--brand-blue) !important;
}

.btn-primary {
    background-color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
}

.btn-primary:hover {
    background-color: #001835 !important;
    /* Darker shade */
    border-color: #001835 !important;
}