:root {
    --color-primary: #004560;      /* Azul principal */
    --color-teal: #057e7e;         /* Turquesa principal */
    --color-orange: #de6029;       /* Naranja complementario */
    --color-gray: #b3b7ba;         /* Gris complementario */
    --color-dark-overlay: rgba(15, 23, 42, 0.75);
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* NAVBAR DESIGN */
.navbar-custom {
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom.scrolled {
    background-color: rgba(0, 84, 121, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    padding: 10px 0 !important;
}

.brand-pill {
    background: linear-gradient(135deg, var(--color-teal), var(--color-teal));
    padding: 8px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(5, 126, 126, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 126, 126, 0.5);
    color: #ffffff;
}

.brand-pill i {
    font-size: 1.5rem;
}

.brand-pill .brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.nav-pill-btn {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 8px 26px !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 4px;
    text-align: center;
    display: inline-block;
}

.nav-pill-btn:hover {
    background: #ffffff;
    color: var(--color-primary) !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.nav-pill-cta {
    background: linear-gradient(135deg, var(--color-teal), var(--color-teal));
    border: 2px solid var(--color-teal);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 8px 26px !important;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 162, 159, 0.4);
    margin-left: 6px;
    text-align: center;
    display: inline-block;
}

.nav-pill-cta:hover {
    background: #ffffff;
    color: var(--color-teal) !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 162, 159, 0.5);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 162, 159, 0.5);
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(var(--color-dark-overlay), var(--color-dark-overlay)),
                url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.accent-teal { color: var(--color-teal); }
.accent-orange { color: var(--color-orange); }

/* CARDS & SERVICES */
.service-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #ffffff;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 84, 121, 0.15);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 162, 159, 0.1);
    color: var(--color-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon-wrapper {
    background: var(--color-teal);
    color: #ffffff;
}

.btn-custom-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: #003d59;
    color: #fff;
    transform: translateY(-2px);
}

/* STATS BAR */
.stats-bar {
    background: linear-gradient(135deg, var(--color-primary), #003852);
    border-radius: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-teal);
    margin-bottom: 0;
}

/* FOOTER */
footer {
    background-color: #0b131e;
    color: var(--color-gray);
}

footer h5 {
    color: #fff;
    font-weight: 700;
}

footer a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--color-teal);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .nav-pill-btn, .nav-pill-cta {
        width: 100%;
        margin: 6px 0;
    }
    .hero-title {
        font-size: 2.3rem;
    }
}
/* Animación suave para los iconos de valores */
.col-lg .card-icon-wrapper {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.col-lg:hover .card-icon-wrapper {
    transform: scale(1.1);
    background-color: var(--color-teal);
    color: #ffffff;
}
/* Efectos para tarjetas de selección de curso */
.course-selection-card .card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course-selection-card:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.card-img-top-zoom {
    transition: transform 0.5s ease;
}

.course-selection-card:hover .card-img-top-zoom {
    transform: scale(1.08);
}
/* Respeta los saltos de línea en el texto del modal */
.style-whitespace-pre {
    white-space: pre-line;
    line-height: 1.6;
}