:root {
    --primary-blue: #003057; /* Azul Institucional Oscuro */
    --secondary-blue: #0056b3; /* Azul Brillante para acciones */
    --accent-highlight: #007bff; /* Light blue for highlights */
    --text-main: #222222;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Bootstrap Color Overrides */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-secondary-blue {
    color: var(--secondary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-secondary-blue {
    background-color: var(--secondary-blue) !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* --- UTILITIES & OVERRIDES --- */
.bg-dark {
    background-color: var(--bg-gray) !important;
    color: var(--text-main) !important;
}

.bg-dark .text-white {
    color: var(--primary-blue) !important;
}

.bg-black {
    background-color: #fff !important;
    color: var(--text-main) !important;
}

.bg-black .text-white {
    color: var(--text-main) !important;
}

.bg-black .lead-text {
    color: #555 !important;
}

/* Volunteer Section - Now Blue */
.volunteer-section.bg-red {
    background-color: var(--primary-blue) !important;
}

.section-padding {
    padding: 80px 0;
}

/* Override Bootstrap Alerts to avoid Red */
.alert-danger {
    color: #fff;
    background-color: var(--primary-blue);
    border-color: var(--secondary-blue);
}

.alert-success {
    color: #fff;
    background-color: var(--secondary-blue);
    border-color: var(--primary-blue);
}

/* --- BUTTONS --- */
.btn-cta {
    display: inline-block;
    background: var(--secondary-blue);
    color: #fff;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px; /* Slight roundness */
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3); /* Blue shadow */
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 48, 87, 0.4);
}

.btn-outline-white {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue); /* Dark text for light bg */
    border: 2px solid var(--primary-blue);
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* --- HERO MINI SECTION --- */
.hero-mini {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background-color: var(--primary-blue);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 48, 87, 0.9) 0%, rgba(0, 86, 179, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
}

/* --- HEADER (Bootstrap Override) --- */
.navbar-custom {
    background-color: var(--primary-blue);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-brand span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 10px 15px !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.nav-item.active .nav-link {
    color: #fff !important;
    font-weight: 700;
}

/* Highlight Button in Menu */
.btn-nav-highlight {
    background: #fff;
    color: var(--primary-blue) !important;
    border-radius: 4px;
    padding: 8px 20px !important;
    margin-left: 10px;
    font-weight: 800;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-nav-highlight:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.btn-nav-cta {
    background: var(--secondary-blue);
    color: #fff !important;
    border-radius: 4px;
    padding: 8px 20px !important;
    margin-left: 10px;
    font-weight: 800;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-nav-cta:hover {
    background: #004494; /* Darker shade of secondary */
    transform: translateY(-1px);
}

/* --- FOOTER (Clean Bootstrap) --- */
.footer-section {
    background-color: #000000 !important;
    color: #ffffff;
    border-top: 5px solid var(--secondary-blue);
}

.footer-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-blue);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social-icons a:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
}

/* --- GENERAL LAYOUT FIXES --- */
.section-padding {
    padding: 80px 0;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid for News (Simple Responsive) */
.news-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
