* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #17212b;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(12, 32, 48, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    width: 100px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu a {
    color: #f2f5f7;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.menu a:hover {
    color: #e63939;
}

.btn-aula {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 21px;
    background: #d52b2b;
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.20);
}

.btn-aula:hover {
    background: #b91f1f;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    background-image: url("../img/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.78),
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.15)
    );
}

.hero-content {
   position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 170px 0 100px;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-left: 4px solid #c90000;
    background: rgba(255,255,255,0.10);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.08;
    margin-bottom: 25px;
}

.hero p {
    max-width: 650px;
    font-size: 19px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.btn-primary {
    background: #c90000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #a00000;
}

.btn-secondary {
    border: 1px solid #ffffff;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #17212b;
}


/* =========================
   ESTADÍSTICAS
========================= */

.stats {
    background: #c90000;
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    min-height: 145px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.25);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat span {
    font-size: 14px;
}


/* =========================
   SECCIONES
========================= */

.section {
    padding: 100px 0;
}

.section-title {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-title > span {
    display: block;
    margin-bottom: 12px;
    color: #c90000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-title h2 {
    margin-bottom: 16px;
    font-size: 46px;
    line-height: 1.15;
}

.section-title p {
    color: #687582;
}


/* =========================
   CURSOS
========================= */

.courses {
    background: #f7f9fb;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.course-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e9ed;
    border-radius: 7px;
    box-shadow: 0 8px 25px rgba(20,30,40,0.06);
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-7px);
}

.course-image {
    height: 205px;
    overflow: hidden;
    background: #dfe5e9;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 23px;
}

.course-category {
    color: #c90000;
    font-size: 11px;
    font-weight: 800;
}

.course-content h3 {
    margin: 10px 0 13px;
    font-size: 20px;
}

.course-content p {
    color: #687582;
    font-size: 14px;
    margin-bottom: 18px;
}

.course-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 0;
    margin-bottom: 13px;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    color: #687582;
    font-size: 12px;
}

.course-btn {
    color: #c90000;
    font-size: 14px;
    font-weight: 800;
}


/* =========================
   AULA VIRTUAL
========================= */

.platform {
    padding: 100px 0;
    background: #1b2d3b;
    color: #ffffff;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.platform-text > span {
    color: #ef3333;
    font-size: 13px;
    font-weight: 800;
}

.platform-text h2 {
    margin: 15px 0 20px;
    font-size: 48px;
    line-height: 1.15;
}

.platform-text > p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 25px;
}

.platform-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.platform-features div {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.platform-image img {
    width: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 7px;
}


/* =========================
   SERVICIOS
========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    padding: 35px 30px;
    border: 1px solid #e7ebee;
    border-radius: 7px;
    background: #ffffff;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #c90000;
}

.service-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 6px;
    background: #fff0f0;
    font-size: 26px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.service-card p {
    color: #687582;
    font-size: 14px;
}


/* =========================
   CERTIFICACIÓN
========================= */

.certificate {
    padding: 75px 0;
    background: #f7f9fb;
}

.certificate-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.certificate-content span {
    color: #c90000;
    font-size: 13px;
    font-weight: 800;
}

.certificate-content h2 {
    margin: 10px 0;
    font-size: 38px;
}

.certificate-content p {
    color: #687582;
}


/* =========================
   TESTIMONIOS
========================= */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial {
    padding: 35px;
    border: 1px solid #e5e9ed;
    border-radius: 7px;
    background: #ffffff;
}

.testimonial::before {
    content: "“";
    display: block;
    color: #c90000;
    font-size: 60px;
    line-height: 0.7;
    margin-bottom: 20px;
}

.testimonial p {
    color: #52606b;
    font-size: 15px;
    margin-bottom: 25px;
}

.testimonial strong {
    display: block;
    font-size: 14px;
}

.testimonial span {
    color: #8a969f;
    font-size: 12px;
}


/* =========================
   CONTACTO
========================= */

.contact {
    padding: 100px 0;
    background: #1b2d3b;
    color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.contact-text > span {
    color: #ef3333;
    font-size: 13px;
    font-weight: 800;
}

.contact-text h2 {
    margin: 15px 0 20px;
    font-size: 46px;
}

.contact-text p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 15px;
}

.contact-form {
    padding: 35px;
    border-radius: 7px;
    background: #ffffff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    margin-bottom: 15px;
    border: 1px solid #dce2e6;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c90000;
}

.contact-form textarea {
    resize: vertical;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #142532;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
    padding: 65px 0;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255,255,255,0.58);
    font-size: 13px;
}

.footer h4 {
    margin-bottom: 18px;
    font-size: 15px;
}

.footer a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
}

.footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 900px) {

    .header-content {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .platform-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .container {
        width: 90%;
    }

    .logo img {
        width: 155px;
    }

    .btn-aula {
        padding: 10px 14px;
        font-size: 12px;
    }

    .menu {
        gap: 20px;
    }

    .menu a {
        font-size: 12px;
        white-space: nowrap;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        min-height: 120px;
    }

    .courses-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .platform-features {
        grid-template-columns: 1fr;
    }

    .certificate-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}