:root {
    --primary: #003893;
    /* Azul Colombia Profundo */
    --accent: #FFD200;
    /* Amarillo Colombia Vibrante */
    --red: #CE1126;
    /* Rojo Colombia Intenso */
    --dark: #0F172A;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Evita el scroll horizontal en móviles */
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Un poco más de aire en móviles */
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, var(--accent) 33%, var(--primary) 33% 66%, var(--red) 66%) 1;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Reducido ligeramente para mejor ajuste */
    width: auto;
    transition: 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    /* Gap más flexible */
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-menu a:not(.btn-cta):hover {
    color: var(--primary);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), #002663);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 56, 147, 0.3);
    white-space: nowrap;
    /* Evita que el texto se rompa en dos líneas */
}

/* --- HERO (MAX IMPACT) --- */
.hero {
    min-height: 100vh;
    /* Ajustado para cubrir mejor móviles */
    padding-top: 100px;
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1594633312681-425c7b97ccd1?q=80&w=1600') center/cover no-repeat;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 56, 147, 0.92) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-logo-featured {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-glow-effect {
    position: absolute;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1/1;
    background: radial-gradient(circle, rgba(255, 210, 0, 0.2) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 4s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.main-logo-hero {
    width: 100%;
    max-width: 500px;
    /* Tamaño máximo en desktop */
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.tagline {
    display: inline-block;
    background: rgba(255, 210, 0, 0.15);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    /* Ajustado para móviles */
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.8rem);
    /* Mejor escala fluida */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.col-yellow-shine {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 210, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    /* Importante para que no se corten en móviles */
}

.btn-primary,
.btn-secondary {
    padding: 1rem 1.8rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 10px 25px rgba(255, 210, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    background: var(--white);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--red);
}

.btn-secondary:hover {
    background: var(--red);
    transform: translateY(-5px);
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    /* Evita línea blanca */
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    height: clamp(40px, 10vw, 80px);
    width: 100%;
    fill: var(--white);
}

/* --- SECCIONES COMUNES --- */
.vision-section {
    padding: clamp(60px, 10vw, 120px) 0;
    background: var(--light-bg);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-stack {
    position: relative;
    width: 100%;
}

.img-main {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

.accent-box {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 30px;
    z-index: 1;
}

.programs {
    padding: clamp(60px, 10vw, 120px) 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.divider {
    width: 80px;
    height: 6px;
    background: var(--primary);
    margin: 0 auto 40px;
    border-radius: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px;
}

.yellow-bg {
    background: #fffbeb;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.blue-bg {
    background: #eff6ff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.red-bg {
    background: #fef2f2;
    color: var(--red);
    border: 2px solid var(--red);
}

/* --- FOOTER --- */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
}

.footer h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer h4 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.footer-column p {
    margin-bottom: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a.fb-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.social-icons a.ig-icon:hover {
    background: var(--red);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    opacity: 0.5;
    font-size: 0.85rem;
}

/* --- RESPONSIVE LOGIC --- */
.menu-checkbox,
.menu-icon,
.mobile-close {
    display: none;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-logo-featured {
        order: 1;
    }

    .main-logo-hero {
        width: 250px;
    }

    .hero-btns {
        justify-content: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .image-stack {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        font-size: 1.8rem;
        color: var(--primary);
        cursor: pointer;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease-in-out;
        z-index: 2000;
        gap: 2rem;
    }

    .nav-menu a {
        font-size: 1.5rem;
        color: var(--dark);
    }

    .menu-checkbox:checked~.nav-menu {
        right: 0;
    }

    .mobile-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
        color: var(--primary);
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        /* Botones a lo ancho en móviles */
    }

    .hero-badges {
        justify-content: center;
    }
}

/* Ajuste extra para pantallas muy pequeñas */
@media (max-width: 480px) {
    .main-logo-hero {
        width: 180px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .logo img {
        height: 40px;
    }
}

/* ESTILOS DEL MODAL Y CARRUSEL - PROTEGIENDO TUS ESTILOS BASE */
.modal-gallery {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    /* Usando tu color --dark con opacidad */
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 5px solid var(--accent);
    background: var(--dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img {
    width: 100%;
    flex-shrink: 0;
    object-fit: contain;
    max-height: 70vh;
}

.nav-car {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-size: 20px;
    transition: 0.3s;
    z-index: 10;
}

.nav-car:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.btn-gallery {
    margin-top: 20px;
    cursor: pointer;
    border: none;
    width: 100%;
}