:root {
    --navy: #071a3d;
    --navy-dark: #041229;
    --navy-light: #102b5d;

    --yellow: #ffc928;
    --yellow-dark: #e5ad00;

    --white: #ffffff;
    --gray: #687386;
    --light: #f5f7fa;

    --border: #dfe4ec;

    --container: 1180px;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 120px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy);
    background: white;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   CONTAINER
========================= */

.container {
    width: min(var(--container), calc(100% - 80px));
    margin: auto;
}


/* =========================
   SECCIONES
========================= */

.section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-heading > span,
.section-label {
    display: block;

    color: var(--yellow-dark);

    font-weight: 900;

    font-size: 14px;

    letter-spacing: 1px;

    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 40px;

    line-height: 1.1;

    font-weight: 900;

    color: var(--navy);
}

.section-heading h2 span {
    color: var(--yellow-dark);
}

.section-heading p {
    margin-top: 15px;

    color: var(--gray);
}


/* =========================
   BOTONES
========================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 900;

    text-transform: uppercase;

    border: 2px solid transparent;

    transition: 0.25s;
}

.btn-yellow {
    background: var(--yellow);

    color: #111;
}

.btn-yellow:hover {
    background: white;

    transform: translateY(-2px);
}

.btn-outline {
    border-color: white;

    color: white;
}

.btn-outline:hover {
    background: white;

    color: var(--navy);
}

.btn-outline-blue {
    border-color: var(--navy);

    color: var(--navy);
}

.btn-outline-blue:hover {
    background: var(--navy);

    color: white;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: var(--navy-dark);

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

.nav-container {
    width: min(
        var(--container),
        calc(100% - 80px)
    );

    min-height: 80px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 30px;
}

.logo img {
    width: 145px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;

    align-items: center;

    gap: 28px;

    margin-left: auto;
}

.nav-menu a {
    color: white;

    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;

    transition: 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--yellow);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 520px;

    height: 520px;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(35, 80, 150, 0.45),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #041229,
            #0b2552
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 650px;

    height: 650px;

    right: -250px;

    top: -300px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,0.08);
}

.hero::after {
    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    right: -80px;

    bottom: -200px;

    border-radius: 50%;

    background:
        rgba(255,201,40,0.08);
}

.hero-content {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: center;

    height: 100%;
}

.hero-text {
    color: white;
}

.eyebrow {
    display: inline-block;

    border:
        1px solid rgba(255,255,255,0.75);

    border-radius: 30px;

    padding: 6px 14px;

    font-size: 10px;

    font-weight: 900;

    margin-bottom: 18px;
}

.hero h1 {
    font-size:
        clamp(
            48px,
            4.5vw,
            66px
        );

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -2px;
}

.hero h1 span {
    display: block;

    color: var(--yellow);

    font-style: italic;
}

.hero-text p {
    max-width: 520px;

    margin-top: 22px;

    color: #d7dfef;

    font-size: 15px;

    line-height: 1.5;
}

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 26px;

    flex-wrap: wrap;
}

.hero-brand {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    height: 100%;
}

.hero-brand img {
    width: min(
        100%,
        470px
    );

    max-height: 280px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 35px
            rgba(0,0,0,0.35)
        );
}

.hero-values {
    display: flex;

    justify-content: center;

    gap: 55px;

    margin-top: 12px;

    color: white;
}

.hero-values div {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 3px;
}

.hero-values strong {
    color: var(--yellow);

    font-size: 22px;
}

.hero-values span {
    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.5px;
}


/* =========================
   SERVICIOS
========================= */

.services {
    background: #ffffff;

    padding: 75px 0 90px;
}

.services .section-heading {
    margin-bottom: 45px;
}

.services .section-heading > span {
    font-size: 13px;

    letter-spacing: 1px;

    color: var(--yellow-dark);
}

.services .section-heading h2 {
    font-size:
        clamp(
            34px,
            4vw,
            48px
        );

    line-height: 1.05;

    max-width: 850px;

    margin: auto;
}

.services .section-heading p {
    font-size: 16px;

    margin-top: 18px;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 18px;

    align-items: stretch;
}

.service-card {
    min-height: 315px;

    padding: 34px 22px 28px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    border:
        1px solid #dce2eb;

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 10px 30px
        rgba(7, 26, 61, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: #cbd4e2;

    box-shadow:
        0 20px 40px
        rgba(7, 26, 61, 0.13);
}

.service-icon {
    width: 72px;

    height: 72px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: var(--navy);

    color: white;

    font-size: 21px;

    font-weight: 900;

    box-shadow:
        0 8px 18px
        rgba(7, 26, 61, 0.15);
}

.service-card h3 {
    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0;

    font-size: 15px;

    line-height: 1.2;

    font-weight: 900;

    color: var(--navy);
}

.yellow-line {
    width: 45px;

    height: 3px;

    flex-shrink: 0;

    margin: 17px auto 18px;

    background: var(--yellow);

    border-radius: 5px;
}

.service-card p {
    margin: 0;

    color: #718096;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================
   PAQUETES
========================= */

.packages {
    background: var(--navy-dark);

    color: white;
}

.section-heading.dark h2 {
    color: white;
}

.packages-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    align-items: stretch;
}

.package-card {
    position: relative;

    padding: 32px 24px;

    border-radius: 9px;

    border:
        1px solid
        rgba(255,255,255,0.25);

    background:
        rgba(255,255,255,0.025);

    display: flex;

    flex-direction: column;
}

.package-card h3 {
    text-align: center;

    font-size: 20px;
}

.package-subtitle {
    text-align: center;

    font-size: 10px;

    color: #aebbd0;

    font-weight: 700;

    margin-top: 5px;
}

.price {
    text-align: center;

    margin-top: 20px;

    font-size: 42px;

    font-weight: 900;
}

.package-card small {
    text-align: center;

    color: #aebbd0;

    font-size: 10px;
}

.package-card ul {
    list-style: none;

    margin: 25px 0;

    flex: 1;
}

.package-card li {
    font-size: 12px;

    padding: 8px 0;

    border-bottom:
        1px solid
        rgba(255,255,255,0.08);
}

.package-card li::before {
    content: "✓";

    color: var(--yellow);

    font-weight: bold;

    margin-right: 8px;
}

.package-button {
    min-height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.3);

    border-radius: 7px;

    font-size: 11px;

    font-weight: 900;
}

.package-button.yellow {
    background: var(--yellow);

    color: #111;

    border-color: var(--yellow);
}

.featured {
    border-color: var(--yellow);

    transform: translateY(-10px);
}

.popular {
    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    padding: 7px;

    text-align: center;

    background: var(--yellow);

    color: #111;

    font-size: 10px;

    font-weight: 900;
}

.featured h3 {
    margin-top: 12px;
}

.custom-package {
    padding: 30px 22px;

    border-radius: 9px;

    background:
        rgba(255,255,255,0.04);

    display: flex;

    flex-direction: column;

    justify-content: center;

    text-align: center;
}

.custom-icon {
    font-size: 25px;

    color: white;

    letter-spacing: 4px;

    margin-bottom: 20px;
}

.custom-package h3 {
    font-size: 17px;

    line-height: 1.2;
}

.custom-package p {
    color: #aebbd0;

    font-size: 13px;

    margin: 15px 0 22px;
}


/* =========================
   PORTAFOLIO
========================= */

.portfolio {
    background: white;

    padding: 90px 0;
}

.portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 220px);

    grid-auto-rows: 275px;

    justify-content: center;

    gap: 22px;
}

.portfolio-item {
    width: 220px;

    height: 275px;

    overflow: hidden;

    border-radius: 10px;

    background: var(--navy);

    position: relative;
}

.portfolio-placeholder {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            #263e70
        );

    color: white;

    font-size: 12px;

    font-weight: 900;

    transition: 0.3s;
}

.portfolio-placeholder:hover {
    transform: scale(1.04);

    color: var(--yellow);
}


/* VIDEO */

.video-project {
    width: 220px;

    height: 390px;

    grid-row: span 2;

    position: relative;

    overflow: hidden;

    background: var(--navy);
}

.video-project video {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 22px;

    background:
        linear-gradient(
            transparent 45%,
            rgba(4,18,41,0.9)
        );

    color: white;

    opacity: 0;

    transition: 0.3s;
}

.video-project:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: var(--yellow);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;
}

.portfolio-overlay strong {
    font-size: 16px;

    margin-top: 4px;
}

.center-button {
    text-align: center;

    margin-top: 35px;
}


/* =========================
   CTA
========================= */

.cta {
    padding: 45px 0;

    background: var(--navy);
}

.cta-content {
    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 25px;

    color: white;
}

.cta-icon {
    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: white;

    color: var(--navy);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    letter-spacing: 3px;
}

.cta h2 {
    font-size: 25px;

    line-height: 1.15;
}

.cta p {
    color: #bdc8db;

    margin-top: 5px;
}


/* =========================
   NOSOTROS
========================= */

.about {
    background: var(--light);
}

.about-content {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: center;
}

.about h2 {
    font-size: 45px;

    line-height: 1;

    margin-top: 10px;
}

.about h2 span {
    color: var(--yellow-dark);
}

.about p {
    color: var(--gray);

    font-size: 17px;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #031127;

    color: white;

    padding-top: 70px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr;

    gap: 50px;

    padding-bottom: 55px;
}

.footer-brand img {
    width: 190px;
}

.footer-brand p {
    color: #aebbd0;

    font-size: 13px;

    margin-top: 15px;
}

.footer h4 {
    font-size: 12px;

    color: var(--yellow);

    margin-bottom: 18px;
}

.footer a {
    display: block;

    color: #d6deeb;

    font-size: 12px;

    margin-bottom: 9px;
}

.footer a:hover {
    color: var(--yellow);
}

.footer p {
    color: #c1cbd9;

    font-size: 12px;

    margin-bottom: 7px;
}

.socials {
    display: flex;

    gap: 8px;

    margin-top: 15px;
}

.socials a {
    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: white;

    color: var(--navy);

    border-radius: 50%;

    font-weight: 900;
}

.footer-bottom {
    border-top:
        1px solid
        rgba(255,255,255,0.08);

    padding: 20px;

    text-align: center;

    color: #8795ab;

    font-size: 11px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    .services-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .packages-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns:
            repeat(3, 220px);
    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 650px) {

    .container,
    .nav-container {
        width:
            min(
                100% - 35px,
                var(--container)
            );
    }

    .section {
        padding: 70px 0;
    }


    /* NAVBAR */

    .nav-container {
        min-height: 70px;
    }

    .nav-menu {
        display: none;
    }

    .logo img {
        width: 150px;
    }

    .nav-container > .btn {
        margin-left: auto;
    }


    /* HERO */

    .hero {
        min-height: 650px;

        height: auto;

        padding: 70px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-brand {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }


    /* SERVICIOS */

    .services {
        padding: 65px 0;
    }

    .services .section-heading h2 {
        font-size: 34px;
    }

    .services-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .service-card {
        min-height: auto;

        padding: 30px 25px;
    }


    /* PAQUETES */

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .featured {
        transform: none;
    }


    /* PORTAFOLIO */

    .portfolio-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: auto;

        justify-items: center;

        gap: 18px;
    }

    .portfolio-item {
        width: min(
            100%,
            280px
        );

        height: 350px;
    }

    .video-project {
        width: min(
            100%,
            240px
        );

        height: 420px;

        grid-row: auto;
    }


    /* CTA */

    .cta-content {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .cta-icon {
        margin: auto;
    }

    .cta .btn {
        width: 100%;
    }


    /* NOSOTROS */

    .about-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .about h2 {
        font-size: 38px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================
   AJUSTE DEFINITIVO VIDEO
========================= */

.portfolio-grid .video-project {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;

    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;

    overflow: hidden !important;

    position: relative !important;

    grid-column: auto !important;
    grid-row: span 2 !important;
}

.portfolio-grid .video-project video {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;

    object-fit: cover !important;

    display: block !important;
}