:root {
    --primary: #003893;
    --accent: #FFD200;
    --red: #CE1126;
    --dark: #0F172A;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E2E8F0;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

/* MENU DESKTOP */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}

/* ELEMENTOS OCULTOS EN PC */
.menu-checkbox,
.menu-icon,
.mobile-close {
    display: none;
}

/* HERO */
.hero {
    height: 80vh;
    margin-top: 75px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1566140967404-b8b393ed4f3e?q=80&w=1600') center/cover;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.tagline {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin: 15px 0;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--accent);
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

/* SECCIONES */
.vision-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.img-main {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-stack {
    position: relative;
}

.accent-box {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: -20px;
    background: var(--primary);
    border-radius: 20px;
}

.vision-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 6px solid var(--accent);
    margin-top: 25px;
}

.programs {
    padding: 80px 0;
    text-align: center;
}

.divider {
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 20px;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.yellow-bg {
    background: #fef3c7;
    color: #d97706;
}

.blue-bg {
    background: #dbeafe;
    color: var(--primary);
}

.red-bg {
    background: #fee2e2;
    color: var(--red);
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h4 {
    color: var(--accent);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- MENU RESPONSIVO --- */

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .image-stack {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Mostrar icono de hamburguesa */
    .menu-icon {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
    }

    /* Estilo del panel lateral */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Oculto a la derecha */
        width: 85%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    /* Mostrar menú al hacer click */
    .menu-checkbox:checked~.nav-menu {
        right: 0;
    }

    /* Botón de cerrar X */
    .mobile-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
        color: var(--primary);
        cursor: pointer;
    }

    .nav-menu a {
        font-size: 1.3rem;
    }

    .btn-cta {
        width: 80%;
        text-align: center;
    }
}