:root {

    --blue: #1d365e;

    --dark: #07111f;

    --red: #f00000;

    --white: #ffffff;

    --gray: #aeb8c8;

}


* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    background: var(--blue);

    color: var(--white);

    font-family: 'Inter', sans-serif;

}


.header {

    position: fixed;

    top: 0;

    width: 100%;

    z-index: 999;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px 6%;

    background: linear-gradient(

        rgba(3, 10, 20, .95),

        transparent

    );

}


.logo {

    width: 145px;

}


nav {

    display: flex;

    gap: 30px;

}


nav a {

    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .3s;

}


nav a:hover {

    color: var(--red);

}


.menu-btn {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 28px;

}


/* HERO */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding: 150px 8%;

    background:

        linear-gradient(

            90deg,

            rgba(5, 15, 30, .98),

            rgba(5, 15, 30, .55),

            rgba(5, 15, 30, .2)

        ),

        radial-gradient(

            circle at 80% 40%,

            #3d6497,

            transparent 45%

        );

}


.hero-content {

    max-width: 800px;

}


.subtitle,

.red-text {

    color: var(--red);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;

}


.hero h1 {

    font-size: clamp(45px, 7vw, 90px);

    line-height: .98;

    margin: 25px 0;

    font-weight: 900;

}


.hero h1 span,

h2 span {

    color: var(--red);

}


.hero p {

    color: #d2d8e2;

    line-height: 1.7;

    max-width: 600px;

    font-size: 18px;

    margin-bottom: 35px;

}


.buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

}


.btn {

    display: inline-block;

    padding: 16px 25px;

    text-decoration: none;

    font-weight: 800;

    font-size: 12px;

    transition: .3s;

}


.btn-red {

    color: white;

    background: var(--red);

}


.btn-red:hover {

    background: #bd0000;

    transform: translateY(-3px);

}


.btn-outline {

    color: white;

    border: 1px solid rgba(255,255,255,.4);

}


.btn-outline:hover {

    background: white;

    color: #111;

}


/* SECCIONES */

.section,

.portfolio,

.about,

.contact {

    padding: 100px 7%;

}


.section-header {

    display: flex;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 45px;

}


h2 {

    font-size: clamp(35px, 5vw, 60px);

    line-height: 1;

    margin-top: 15px;

}


.section-header p {

    max-width: 400px;

    color: var(--gray);

    line-height: 1.7;

}


/* SERVICIOS */

.service-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

}


.service-card {

    height: 390px;

    background-size: cover;

    background-position: center;

    position: relative;

    overflow: hidden;

    border-radius: 5px;

    transition: .4s;

}


.service-card:hover {

    transform: scale(1.04);

}


.card-overlay {

    position: absolute;

    inset: 0;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: end;

    background: linear-gradient(

        transparent 20%,

        rgba(0,0,0,.95)

    );

}


.card-overlay h3 {

    font-size: 24px;

    margin-bottom: 8px;

}


.card-overlay p {

    color: var(--gray);

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 15px;

}


.card-overlay a {

    color: var(--red);

    text-decoration: none;

    font-size: 12px;

    font-weight: bold;

}


/* PORTAFOLIO */

.portfolio {

    background: #101d31;

}


.section-title-center {

    text-align: center;

    margin-bottom: 45px;

}


.video-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}


.video-card {

    height: 320px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: end;

    background:

        linear-gradient(

            transparent,

            rgba(0,0,0,.9)

        ),

        linear-gradient(

            135deg,

            #365d8e,

            #111827

        );

    border-radius: 6px;

    transition: .3s;

}


.video-card:hover {

    transform: translateY(-8px);

}


.play {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--red);

    border-radius: 50%;

    margin-bottom: auto;

}


.video-card p {

    color: var(--gray);

    font-size: 13px;

    margin-top: 8px;

}


/* ABOUT */

.about {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

}


.about-text p {

    color: var(--gray);

    line-height: 1.8;

    margin-top: 20px;

}


.stats {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

}


.stats div {

    background: #192b46;

    padding: 30px;

}


.stats strong {

    display: block;

    color: var(--red);

    font-size: 42px;

}


.stats span {

    color: var(--gray);

    font-size: 11px;

}


/* CONTACTO */

.contact {

    text-align: center;

}


.contact p {

    color: var(--gray);

    margin: 25px 0 30px;

}


/* FOOTER */

footer {

    padding: 50px 7% 25px;

    background: #050c16;

}


footer img {

    width: 150px;

}


.socials {

    display: flex;

    gap: 15px;

    margin: 30px 0;

    flex-wrap: wrap;

}


.socials a {

    color: white;

    text-decoration: none;

    font-size: 13px;

}


footer p {

    color: #718097;

    font-size: 12px;

}


/* RESPONSIVE */

@media (max-width: 900px) {

    .service-grid {

        grid-template-columns: repeat(2, 1fr);

    }


    .about {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 650px) {

    nav {

        display: none;

        position: absolute;

        top: 70px;

        left: 0;

        width: 100%;

        padding: 25px;

        background: #07111f;

        flex-direction: column;

        text-align: center;

    }


    nav.active {

        display: flex;

    }


    .menu-btn {

        display: block;

    }


    .section-header {

        flex-direction: column;

    }


    .service-grid,

    .video-grid {

        grid-template-columns: 1fr;

    }


    .hero {

        padding: 140px 7% 80px;

    }


    .stats {

        grid-template-columns: 1fr 1fr;

    }

}