/* =========================================================
   EMPRENDER EDUCATIVO
   www.emprendereducativo.com
   CSS PRINCIPAL
   ========================================================= */

:root {
    --azul: #102a56;
    --azul-oscuro: #071a36;
    --azul-claro: #1d4f91;

    --verde: #16a05d;
    --amarillo: #f5c400;
    --rojo: #e52323;
    --azul-vivo: #1266d5;

    --blanco: #ffffff;
    --gris: #f4f6f9;
    --gris-medio: #e4e8ee;
    --gris-texto: #5c6675;
    --texto: #182230;

    --sombra: 0 12px 35px rgba(7, 26, 54, 0.10);
    --sombra-hover: 0 18px 42px rgba(7, 26, 54, 0.15);

    --radio: 16px;
}


/* =========================================================
   GENERAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.topbar {
    background: var(--azul-oscuro);
    color: var(--blanco);
    font-size: 14px;
}

.topbar-content {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar a {
    transition: opacity 0.2s ease;
}

.topbar a:hover {
    opacity: 0.75;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.header {
    position: relative;
    z-index: 1000;

    background: var(--blanco);

    border-bottom: 1px solid var(--gris-medio);
}

.navbar {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 270px;
    max-height: 78px;
    object-fit: contain;
}


/* =========================================================
   MENÚ
   ========================================================= */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    display: block;

    padding: 11px 13px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    color: var(--texto);

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-menu a:hover {
    color: var(--azul-claro);
    background: #f1f5fa;
}


/* =========================================================
   BOTÓN INSCRÍBETE
   ========================================================= */

.nav-menu .nav-button {
    background: var(--azul);
    color: var(--blanco);

    padding: 12px 20px;

    margin-left: 8px;
}

.nav-menu .nav-button:hover {
    background: var(--azul-claro);
    color: var(--blanco);
}


/* =========================================================
   BOTÓN MENÚ MÓVIL
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--gris-medio);
    border-radius: 8px;

    background: var(--blanco);

    cursor: pointer;

    font-size: 22px;
    color: var(--azul);
}


/* =========================================================
   FRANJA INSTITUCIONAL
   ========================================================= */

.color-line {
    height: 6px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
}

.color-line span:nth-child(1) {
    background: var(--rojo);
}

.color-line span:nth-child(2) {
    background: var(--amarillo);
}

.color-line span:nth-child(3) {
    background: var(--verde);
}

.color-line span:nth-child(4) {
    background: var(--azul-vivo);
}


/* =========================================================
   HERO PRINCIPAL
   ========================================================= */

.hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(7, 26, 54, 0.91) 0%,
            rgba(16, 42, 86, 0.72) 43%,
            rgba(16, 42, 86, 0.22) 100%
        ),

        url("../img/hero.jpg")
        center center / cover no-repeat;
}


/* =========================================================
   CONTENIDO HERO
   ========================================================= */

.hero-content {
    position: relative;

    z-index: 2;

    width: 700px;
    max-width: 100%;

    color: var(--blanco);

    padding: 80px 0;
}


/* =========================================================
   ETIQUETA HERO
   ========================================================= */

.hero-kicker {
    display: inline-block;

    margin-bottom: 18px;

    padding: 7px 14px;

    border-left: 4px solid var(--amarillo);

    background: rgba(255, 255, 255, 0.10);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   TÍTULO HERO
   ========================================================= */

.hero h1 {
    font-size: clamp(40px, 4.2vw, 58px);

    line-height: 1.05;

    margin-bottom: 22px;

    font-weight: 800;

    letter-spacing: -1.2px;

    max-width: 700px;
}

.hero h1 span {
    display: block;
}


/* =========================================================
   TEXTO HERO
   ========================================================= */

.hero p {
    max-width: 620px;

    font-size: 20px;

    line-height: 1.65;

    color: rgba(255, 255, 255, 0.91);

    margin-bottom: 32px;
}


/* =========================================================
   BOTONES HERO
   ========================================================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 13px;
}


/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 13px 24px;

    border: 2px solid transparent;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}


/* BOTÓN PRINCIPAL */

.btn-primary {
    background: var(--verde);

    color: var(--blanco);
}

.btn-primary:hover {
    background: #12864e;

    transform: translateY(-1px);
}


/* BOTÓN SECUNDARIO */

.btn-secondary {
    background: transparent;

    border-color: rgba(255, 255, 255, 0.70);

    color: var(--blanco);
}

.btn-secondary:hover {
    background: var(--blanco);

    color: var(--azul);
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    padding: 85px 0;
}

.section-light {
    background: var(--gris);
}


/* =========================================================
   TÍTULOS DE SECCIÓN
   ========================================================= */

.section-heading {
    max-width: 760px;

    margin: 0 auto 48px;

    text-align: center;
}

.section-heading .eyebrow {
    color: var(--azul-claro);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.section-heading h2 {
    color: var(--azul-oscuro);

    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.15;

    margin-bottom: 15px;
}

.section-heading p {
    color: var(--gris-texto);

    font-size: 17px;
}


/* =========================================================
   OFERTA EDUCATIVA
   ========================================================= */

.programs-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.program-card {
    position: relative;

    background: var(--blanco);

    border: 1px solid var(--gris-medio);

    border-radius: var(--radio);

    padding: 30px 25px;

    min-height: 260px;

    box-shadow: var(--sombra);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--sombra-hover);
}

.program-number {
    color: #dfe6ef;

    font-size: 42px;

    font-weight: 800;

    line-height: 1;

    margin-bottom: 20px;
}

.program-card h3 {
    color: var(--azul);

    font-size: 21px;

    margin-bottom: 12px;
}

.program-card p {
    color: var(--gris-texto);

    font-size: 15px;

    line-height: 1.65;
}

.program-card a {
    color: var(--azul-claro);

    font-weight: 700;

    display: inline-block;

    margin-top: 8px;
}


/* =========================================================
   FUERZA PÚBLICA
   ========================================================= */

.force-section {
    position: relative;

    overflow: hidden;

    min-height: 520px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            105deg,
            rgba(7, 26, 54, 0.88),
            rgba(16, 42, 86, 0.55)
        ),

        url("../img/fuerza-publica.png")
        center center / cover no-repeat;

    color: var(--blanco);
}

.force-content {
    width: min(720px, 100%);
}

.force-content .eyebrow {
    color: var(--amarillo);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.force-content h2 {
    font-size: clamp(31px, 4vw, 46px);

    line-height: 1.15;

    margin-bottom: 20px;
}

.force-content p {
    font-size: 18px;

    color: rgba(255, 255, 255, 0.88);

    margin-bottom: 28px;
}


/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 55px;

    align-items: center;
}

.about-image {
    border-radius: var(--radio);

    overflow: hidden;

    box-shadow: var(--sombra);
}

.about-image img {
    width: 100%;

    min-height: 360px;

    object-fit: cover;
}

.about-text .eyebrow {
    color: var(--azul-claro);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.about-text h2 {
    color: var(--azul-oscuro);

    font-size: 40px;

    line-height: 1.15;

    margin-bottom: 20px;
}

.about-text p {
    color: var(--gris-texto);

    margin-bottom: 16px;
}


/* =========================================================
   INDICADORES
   ========================================================= */

.stats {
    background: var(--azul);

    color: var(--blanco);
}

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.stat {
    text-align: center;

    padding: 20px;

    border-right:
        1px solid rgba(255, 255, 255, 0.18);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;

    font-size: 38px;

    line-height: 1;

    margin-bottom: 8px;
}

.stat span {
    color:
        rgba(255, 255, 255, 0.80);

    font-size: 14px;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
    background: var(--blanco);
}

.contact-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 40px;
}

.contact-box {
    padding: 35px;

    border: 1px solid var(--gris-medio);

    border-radius: var(--radio);

    background: var(--blanco);

    box-shadow: var(--sombra);
}

.contact-box h3 {
    color: var(--azul);

    font-size: 25px;

    margin-bottom: 18px;
}

.contact-item {
    padding: 15px 0;

    border-bottom: 1px solid var(--gris-medio);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: block;

    color: var(--azul-oscuro);

    margin-bottom: 3px;
}

.contact-item span {
    color: var(--gris-texto);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: var(--azul-oscuro);

    color: var(--blanco);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1fr;

    gap: 40px;
}

.footer-logo {
    width: 210px;

    margin-bottom: 18px;

    background: var(--blanco);

    padding: 8px;

    border-radius: 8px;
}

.footer h4 {
    font-size: 16px;

    margin-bottom: 18px;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.70);

    font-size: 14px;
}

.footer a {
    display: block;

    margin-bottom: 9px;
}

.footer a:hover {
    color: var(--blanco);
}

.footer-bottom {
    padding: 20px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.12);

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 13px;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.whatsapp-button {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 999;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #16a05d;

    color: var(--blanco);

    font-size: 17px;

    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.2s ease;
}

.whatsapp-button:hover {
    transform: scale(1.06);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .nav-menu {
        gap: 0;
    }

    .nav-menu a {
        padding: 10px 8px;

        font-size: 14px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 800px) {

    .topbar {
        display: none;
    }

    .navbar {
        min-height: 74px;
    }

    .logo img {
        width: 180px;

        max-height: 60px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;

        left: 0;
        right: 0;

        top: 74px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        background: var(--blanco);

        border-top:
            1px solid var(--gris-medio);

        border-bottom:
            1px solid var(--gris-medio);

        padding: 12px 4%;

        box-shadow:
            0 12px 25px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 12px;
    }

    .nav-menu .nav-button {
        margin-left: 0;

        margin-top: 5px;

        text-align: center;
    }

    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero h1 {
        font-size:
            clamp(38px, 8vw, 52px);
    }

    .hero p {
        font-size: 17px;
    }

    .force-section {
        min-height: 560px;
    }

    .section {
        padding: 65px 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stat {
        border-right: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.15);
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 560px) {

    .container {
        width: 90%;
    }

    .navbar {
        gap: 15px;
    }

    .logo img {
        width: 165px;

        max-height: 55px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 39px;

        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 16px;

        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 18px 10px;
    }

    .stat strong {
        font-size: 30px;
    }

    .stat span {
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 25px;
    }

    .whatsapp-button {
        right: 15px;

        bottom: 15px;

        width: 53px;

        height: 53px;
    }
}