/* =============================================
   CONFIGURACIÓN GENERAL
============================================= */

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

:root {

    --navy: #0a2458;
    --blue: #145fc0;
    --blue-light: #eef5ff;

    --red: #d71920;
    --red-dark: #b91319;
    --red-light: #fff1f1;

    --text: #202735;
    --muted: #667085;

    --line: #e3e7ed;

    --soft: #f6f7f9;

    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        "Inter",
        Arial,
        sans-serif;

    color: var(--text);

    background: #ffffff;

    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {

    width: min(
        1120px,
        calc(100% - 40px)
    );

    margin: auto;
}



/* =============================================
   HEADER
============================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(
        255,
        255,
        255,
        .97
    );

    border-bottom:
        1px solid var(--line);
}

.nav-wrap {

    min-height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* Logo */

.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.brand img {

    width: 48px;

    height: 48px;

    object-fit: cover;

    border-radius: 5px;
}

.brand-name {

    font-size: 19px;

    letter-spacing: .8px;

    color: var(--navy);
}

.brand-name b {
    color: var(--red);
}


/* Navegación */

.main-nav {

    display: flex;

    align-items: center;

    gap: 25px;

    font-size: 14px;

    font-weight: 600;

    color: #3f4959;
}

.main-nav > a:not(
    .nav-aula,
    .nav-contacto
) {

    position: relative;

    padding: 11px 0;
}

.main-nav > a:not(
    .nav-aula,
    .nav-contacto
)::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 4px;

    width: 0;

    height: 2px;

    background: var(--blue);

    transition: width .2s ease;
}

.main-nav > a:not(
    .nav-aula,
    .nav-contacto
):hover::after,

.main-nav > a.active::after {

    width: 100%;
}

.main-nav > a:hover {
    color: var(--navy);
}


/* Aula Virtual */

.nav-aula {

    padding: 11px 18px;

    background: var(--red);

    color: white !important;

    border-radius: 5px;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}

.nav-aula:hover {

    background: var(--red-dark);

    transform: translateY(-1px);
}


/* Contacto */

.nav-contacto {

    padding: 10px 17px;

    border:
        1px solid var(--navy);

    border-radius: 5px;

    color:
        var(--navy) !important;

    transition:
        background .2s ease,
        color .2s ease;
}

.nav-contacto:hover {

    background: var(--navy);

    color: white !important;
}


.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    color: var(--navy);

    font-size: 26px;

    cursor: pointer;
}



/* =============================================
   ELEMENTOS COMUNES
============================================= */

.overline {

    margin-bottom: 14px;

    color: var(--red);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}

.section {

    padding: 88px 0;
}

.section-title {

    max-width: 720px;

    margin-bottom: 45px;
}

.section-title h2 {

    color: var(--navy);

    font-size: clamp(
        32px,
        4vw,
        44px
    );

    line-height: 1.16;

    letter-spacing: -1.3px;
}

.section-title > p:last-child {

    margin-top: 15px;

    color: var(--muted);

    font-size: 16px;
}



/* Botones */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 20px;

    border-radius: 5px;

    font-size: 14px;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {

    background: var(--navy);

    color: white;
}

.btn-primary:hover {
    background: #061a42;
}

.text-link {

    color: var(--blue);

    font-size: 14px;

    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}



/* =============================================
   HERO
============================================= */

.hero {

    padding: 90px 0 85px;

    background: #ffffff;
}

.hero-grid {

    display: grid;

    grid-template-columns:
        1.3fr .7fr;

    gap: 85px;

    align-items: center;
}

.hero h1 {

    max-width: 760px;

    color: var(--navy);

    font-size: clamp(
        43px,
        5vw,
        65px
    );

    line-height: 1.08;

    letter-spacing: -2.4px;
}

.hero-text {

    max-width: 720px;

    margin-top: 25px;

    color: #596274;

    font-size: 17px;
}

.hero-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 31px;
}


/* Lateral */

.hero-aside {

    padding:
        20px
        0
        20px
        30px;

    border-left:
        4px solid var(--red);
}

.hero-aside img {

    display: block;

    width: 125px;

    height: 115px;

    margin-bottom: 15px;

    object-fit: cover;
}

.hero-aside h2 {

    margin-bottom: 7px;

    color: var(--navy);

    font-size: 21px;
}

.hero-aside p {

    color: var(--muted);

    font-size: 14px;
}



/* =============================================
   ORGANIZACIONES
============================================= */

.audience {

    padding: 20px 0;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}

.audience-inner {

    display: flex;

    align-items: center;

    gap: 38px;
}

.audience-inner > p {

    flex-shrink: 0;

    color: #8a92a1;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.audience-inner > div {

    display: flex;

    flex-wrap: wrap;

    gap: 28px;
}

.audience span {

    color: #4d5666;

    font-size: 13px;

    font-weight: 650;
}



/* =============================================
   SERVICIOS
============================================= */

.service-list {

    border-top:
        1px solid var(--line);
}

.service-list article {

    display: grid;

    grid-template-columns:
        70px 1fr;

    gap: 15px;

    padding: 29px 5px;

    border-bottom:
        1px solid var(--line);
}

.service-list article > span {

    padding-top: 4px;

    color: var(--red);

    font-size: 12px;

    font-weight: 800;
}

.service-list h3 {

    margin-bottom: 6px;

    color: var(--navy);

    font-size: 20px;
}

.service-list p {

    max-width: 820px;

    color: var(--muted);

    font-size: 15px;
}



/* =============================================
   NOSOTROS
============================================= */

.about {
    background: var(--soft);
}

.about-intro {

    max-width: 780px;

    margin-bottom: 48px;
}

.about-intro h2 {

    color: var(--navy);

    font-size: clamp(
        33px,
        4vw,
        46px
    );

    line-height: 1.16;

    letter-spacing: -1.4px;
}

.about-summary {

    max-width: 730px;

    margin-top: 18px;

    color: #596274;

    font-size: 18px;

    line-height: 1.7;
}


/* Texto principal */

.about-main {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    padding-top: 35px;

    border-top:
        1px solid #dde2e8;
}

.about-description p {

    margin-bottom: 20px;

    color: #586273;

    font-size: 15px;

    line-height: 1.75;
}


/* Características */

.about-features {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    margin-top: 35px;

    border-top:
        1px solid #dde2e8;

    border-bottom:
        1px solid #dde2e8;
}

.about-features article {

    padding: 25px 30px 25px 0;
}

.about-features article + article {

    padding-left: 30px;

    border-left:
        1px solid #dde2e8;
}

.about-features h3 {

    margin-bottom: 7px;

    color: var(--navy);

    font-size: 16px;
}

.about-features p {

    color: #697384;

    font-size: 13px;
}



/* =============================================
   SOLUCIONES
============================================= */

.solution-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.solution-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 17px;

    background: white;

    border:
        1px solid var(--line);

    border-radius: 5px;
}

.solution-item span {

    padding: 6px;

    color: var(--red);

    background: var(--red-light);

    border-radius: 4px;

    font-size: 10px;

    font-weight: 800;
}

.solution-item p {

    color: #3f4959;

    font-size: 13px;

    font-weight: 650;
}

.solutions-action {

    margin-top: 30px;
}



/* =============================================
   AULA VIRTUAL
============================================= */

.virtual-section {

    padding: 90px 0;

    background: #f7f9fc;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}

.virtual-grid {

    display: grid;

    grid-template-columns:
        1fr .75fr;

    gap: 90px;

    align-items: center;
}

.virtual-copy h2 {

    max-width: 650px;

    color: var(--navy);

    font-size: clamp(
        34px,
        4vw,
        46px
    );

    line-height: 1.16;

    letter-spacing: -1.3px;
}

.virtual-copy > p {

    max-width: 650px;

    margin-top: 17px;

    color: var(--muted);
}

.btn-aula {

    margin-top: 28px;

    background: var(--red);

    color: white;

    padding: 14px 22px;
}

.btn-aula:hover {
    background: var(--red-dark);
}


/* Tarjeta Moodle */

.virtual-card {

    max-width: 420px;

    margin-left: auto;

    overflow: hidden;

    background: white;

    border:
        1px solid #dce1e9;

    border-radius: 8px;

    box-shadow:
        0 15px 40px
        rgba(10, 36, 88, .09);
}

.virtual-card-header {

    display: flex;

    align-items: center;

    gap: 6px;

    height: 34px;

    padding: 0 12px;

    background: #f0f2f5;

    border-bottom:
        1px solid #e1e5eb;
}

.virtual-card-header span {

    width: 8px;

    height: 8px;

    background: #c5cad2;

    border-radius: 50%;
}

.virtual-card-body {

    padding: 38px 40px;

    text-align: center;
}

.virtual-symbol {

    display: grid;

    place-items: center;

    width: 48px;

    height: 48px;

    margin:
        0 auto
        10px;

    background:
        linear-gradient(
            135deg,
            var(--blue) 48%,
            var(--red) 49%
        );

    border-radius: 5px;

    color: white;

    font-size: 27px;

    font-weight: 800;
}

.virtual-brand {

    color: #7a8494;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.virtual-card h3 {

    margin:
        4px 0
        12px;

    color: var(--navy);

    font-size: 24px;
}

.virtual-description {

    margin-bottom: 23px;

    color: var(--muted);

    font-size: 13px;
}

.virtual-login {

    display: block;

    padding: 11px;

    background: var(--red);

    border-radius: 4px;

    color: white;

    font-size: 13px;

    font-weight: 700;
}

.virtual-login:hover {
    background: var(--red-dark);
}

.virtual-card small {

    display: block;

    margin-top: 14px;

    color: #9098a5;

    font-size: 10px;
}



/* =============================================
   CONTACTO
============================================= */

.contact-section {

    padding: 75px 0;

    background: var(--navy);

    color: white;
}

.contact-grid {

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 80px;

    align-items: center;
}

.contact-section .overline {
    color: #ff7479;
}

.contact-section h2 {

    max-width: 650px;

    color: white;

    font-size: clamp(
        32px,
        4vw,
        44px
    );

    line-height: 1.16;

    letter-spacing: -1.3px;
}

.contact-grid > div:first-child > p:last-child {

    max-width: 650px;

    margin-top: 16px;

    color: #c6d0e3;
}

.contact-card {

    padding: 28px;

    background: white;

    border-radius: 6px;

    color: var(--text);
}

.contact-card p {

    margin-bottom: 5px;

    color: #7a8393;

    font-size: 12px;
}

.contact-card a {

    display: block;

    margin-bottom: 12px;

    color: var(--blue);

    font-size: 20px;

    font-weight: 750;

    word-break: break-word;
}

.contact-card small {

    display: block;

    color: #747d8d;

    line-height: 1.5;
}



/* =============================================
   PÁGINA EJEMPLOS
============================================= */

.main-nav .active {
    color: var(--blue);
}

.examples-header {

    padding: 80px 0 60px;

    background: var(--soft);

    border-bottom:
        1px solid var(--line);
}

.examples-header h1 {

    max-width: 800px;

    color: var(--navy);

    font-size: clamp(
        40px,
        5vw,
        58px
    );

    line-height: 1.1;

    letter-spacing: -2px;
}

.examples-header > .container > p:last-child {

    max-width: 700px;

    margin-top: 20px;

    color: var(--muted);

    font-size: 17px;
}


/* Grilla */

.examples-section {
    padding: 75px 0 90px;
}

.examples-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}


/* Tarjetas */

.example-card {

    overflow: hidden;

    background: white;

    border:
        1px solid #e1e5eb;

    border-radius: 7px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.example-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px
        rgba(10, 36, 88, .08);
}


/* Preview */

.example-preview {

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    height: 210px;

    padding: 25px;

    color: white;
}

.blue-preview {

    background:
        linear-gradient(
            135deg,
            #0a2458,
            #145fc0
        );
}

.red-preview {

    background:
        linear-gradient(
            135deg,
            #9c1117,
            #d71920
        );
}

.example-preview span {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    opacity: .8;
}

.example-preview strong {

    margin-top: 5px;

    font-size: 20px;
}


/* Información */

.example-info {
    padding: 25px;
}

.example-info h2 {

    margin-bottom: 9px;

    color: var(--navy);

    font-size: 19px;
}

.example-info p {

    min-height: 100px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.65;
}

.example-info a {

    display: inline-block;

    margin-top: 17px;

    color: var(--blue);

    font-size: 13px;

    font-weight: 700;
}

.example-info a:hover {
    text-decoration: underline;
}



/* Nota portafolio */

.portfolio-note {

    padding: 60px 0;

    background: var(--soft);

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}

.portfolio-note-content {

    max-width: 760px;
}

.portfolio-note h2 {

    margin-bottom: 12px;

    color: var(--navy);

    font-size: 27px;
}

.portfolio-note p {

    color: var(--muted);
}



/* CTA ejemplos */

.examples-contact {

    padding: 70px 0;

    text-align: center;
}

.examples-contact h2 {

    color: var(--navy);

    font-size: 31px;
}

.examples-contact p {

    margin:
        10px 0
        23px;

    color: var(--muted);
}



/* =============================================
   FOOTER
============================================= */

footer {

    padding:
        42px 0
        22px;

    background: #06183d;

    color: white;
}

.footer-wrap {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-brand {

    font-size: 21px;

    font-weight: 800;
}

.footer-brand b {
    color: #ef3238;
}

.footer-wrap p {

    margin-top: 5px;

    color: #9dabc7;

    font-size: 12px;
}

.footer-right {

    display: flex;

    gap: 22px;

    color: #bac5d8;

    font-size: 12px;
}

.footer-right a:hover {
    color: white;
}

.copyright {

    margin-top: 25px;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(255,255,255,.1);

    color: #7f8eaa;

    font-size: 11px;
}



/* =============================================
   TABLET
============================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 16px;
    }

    .solution-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .examples-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}



/* =============================================
   MENÚ MÓVIL
============================================= */

@media (max-width: 850px) {

    .menu-toggle {
        display: block;
    }

    .main-nav {

        display: none;

        position: absolute;

        top: 72px;

        left: 20px;

        right: 20px;

        padding: 20px;

        background: white;

        border:
            1px solid var(--line);

        border-radius: 6px;

        box-shadow:
            0 15px 35px
            rgba(10,36,88,.12);

        flex-direction: column;

        align-items: stretch;

        gap: 5px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a {

        width: 100%;

        padding: 11px 12px !important;
    }

    .main-nav > a::after {
        display: none;
    }

    .nav-aula,
    .nav-contacto {

        margin-top: 5px;

        text-align: center;
    }


    .hero-grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-aside {
        max-width: 500px;
    }


    .about-main {

        grid-template-columns: 1fr;

        gap: 0;
    }

    .about-features {

        grid-template-columns: 1fr;
    }

    .about-features article,
    .about-features article + article {

        padding: 22px 0;

        border-left: none;

        border-bottom:
            1px solid #dde2e8;
    }


    .virtual-grid {

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .virtual-card {

        margin-left: 0;
    }


    .contact-grid {

        grid-template-columns: 1fr;

        gap: 40px;
    }

}



/* =============================================
   CELULAR
============================================= */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 28px);
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {

        width: 43px;

        height: 43px;
    }

    .brand-name {
        font-size: 17px;
    }


    .hero {
        padding: 62px 0;
    }

    .hero h1 {

        font-size: 41px;

        letter-spacing: -1.5px;
    }

    .hero-text {
        font-size: 16px;
    }


    .audience-inner {

        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .section {
        padding: 65px 0;
    }


    .service-list article {

        grid-template-columns:
            42px 1fr;
    }


    .solution-grid {
        grid-template-columns: 1fr;
    }


    .examples-header {
        padding: 60px 0 45px;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .example-info p {
        min-height: auto;
    }


    .virtual-section {
        padding: 65px 0;
    }

    .virtual-card-body {
        padding: 32px 24px;
    }


    .footer-wrap {

        flex-direction: column;

        align-items: flex-start;
    }

}