/* =========================================
   VARIABLES
========================================= */

:root {

    --blue-dark: #020b24;
    --blue: #061a45;
    --blue-light: #0b2d68;

    --orange: #ff8a00;
    --yellow: #ffc400;

    --white: #ffffff;
    --gray: #aab6ce;

    --border: rgba(255,255,255,0.15);

    --container: 1200px;

    --radius: 18px;

    --transition: 0.3s ease;
}



/* =========================================
   RESET
========================================= */

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


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--blue-dark);

    color: var(--white);

    line-height: 1.6;
}


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


img {
    max-width: 100%;
    display: block;
}


.container {

    width: min(
        90%,
        var(--container)
    );

    margin: auto;
}


.section {
    padding: 80px 0;
}



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

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    /*background:
        #01091e;*/
    background:
        rgba(2, 11, 36, 0.123);

    backdrop-filter:
        blur(12px);

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


.nav-container {

    min-height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}



/* LOGO */

.logo,
.brand {
    display: flex;
    align-items: center;
}

.logo-image,
.brand-logo {
    display: block;
    width: 190px;
    height: auto;
}

/* =========================================
   MENÚ
========================================= */

.menu-toggle {

    width: 42px;
    height: 42px;

    background: transparent;

    border: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    cursor: pointer;
}


.menu-toggle span {

    width: 25px;
    height: 2px;

    background: white;

    display: block;

    transition: var(--transition);
}


.nav {

    position: absolute;

    top: 75px;
    left: 0;

    width: 100%;

    background:
        rgba(2,11,36,.98);

    padding: 20px;

    display: none;

    flex-direction: column;

    gap: 20px;

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


.nav.open {
    display: flex;
}


.nav a {

    color: var(--gray);

    transition: var(--transition);
}


.nav a:hover,
.nav a.active {

    color: white;
}


.nav a.active {

    color: var(--orange);
}


.nav-button {

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

    padding:
        10px 18px;

    border-radius: 10px;

    text-align: center;

    color: white !important;
}



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

.hero {

    min-height: 720px;

    position: relative;

    overflow: hidden;

    padding-top: 130px;

    background:
        radial-gradient(
            circle at 80% 45%,
            rgba(0,110,255,.18),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #020817,
            #031744
        );
}


.hero-background {

    position: absolute;

    inset: 0;

    opacity: .4;

    background-image:
        radial-gradient(
            circle,
            #168cff 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


.hero-container {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 50px;
}


.hero-content {

    max-width: 650px;
}


.hero-small {

    color: var(--orange);

    font-size: 16px;

    letter-spacing: 3px;

    font-weight: bold;
}


.hero h1 {

    margin-top: 15px;

    font-size:
        clamp(30px, 8vw, 65px);

    line-height: 1.05;

    letter-spacing: -2px;
}


.hero h1 span {
    color: var(--orange);
}


.hero p {

    margin-top: 25px;

    color: var(--gray);

    font-size: 17px;

    max-width: 600px;
}



/* BOTONES */

.hero-buttons {

    margin-top: 30px;

    display: flex;

    flex-direction: column;

    gap: 15px;
}


.btn {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    padding:
        14px 22px;

    border-radius: 10px;

    font-weight: bold;

    transition: var(--transition);
}


.btn-primary {

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--yellow)
        );

    color: #111;

    box-shadow:
        0 8px 25px
        rgba(255,138,0,.25);
}


.btn-primary:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 35px
        rgba(255,138,0,.4);
}


.btn-secondary {

    border:
        1px solid #167cff;

    background:
        rgba(0,80,200,.12);
}


.btn-secondary:hover {

    background:
        rgba(0,100,255,.25);
}



/* LOGO HERO */

.hero-logo-container {
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.glow {
    position: absolute;

    width: 230px;
    height: 230px;

    border-radius: 50%;

    background:
        rgba(0,120,255,.3);

    filter:
        blur(50px);
}

.hero-logo {
    width: 210px;
    height: auto;

    position: relative;
    z-index: 2;

    filter:
        drop-shadow(
            0 0 30px
            rgba(0,120,255,.7)
        );

    animation:
        float 5s ease-in-out infinite;
}

@keyframes float {
    0%,100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-15px);
    }
}


/* PLANETA */

.planet {

    position: absolute;

    bottom: -180px;

    left: 50%;

    transform:
        translateX(-50%);

    width: 850px;
    height: 350px;

    border-radius:
        50% 50% 0 0;

    background:
        radial-gradient(
            ellipse at center,
            #0877ff,
            #02153b 60%
        );

    box-shadow:
        0 -20px 80px
        rgba(0,130,255,.6);
}


.planet-grid {

    width: 100%;
    height: 100%;

    opacity: .5;

    background-image:
        linear-gradient(
            rgba(0,200,255,.5) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0,200,255,.5) 1px,
            transparent 1px
        );

    background-size: 45px 30px;

    border-radius:
        50% 50% 0 0;
}



/* =========================================
   FEATURES
========================================= */

.features {

    position: relative;

    z-index: 5;

    padding:
        30px 0;
}


.features-container {

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

    border-radius: 20px;

    padding: 25px;

    background:
        rgba(5,25,70,.7);

    backdrop-filter:
        blur(10px);

    display: grid;

    gap: 25px;
}


.feature {

    display: flex;

    gap: 15px;

    align-items: center;
}


.feature-icon {

    min-width: 48px;
    height: 48px;

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

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--orange);

    font-weight: bold;

    font-size: 20px;
}


.feature h3 {
    font-size: 15px;
}


.feature p {

    color: var(--gray);

    font-size: 13px;
}



/* =========================================
   TITULOS
========================================= */

.section-title {

    text-align: center;

    margin-bottom: 45px;
}


.section-title > span,
.about-content > span,
.portfolio-header span,
.contact span {

    color: var(--orange);

    font-size: 16px;

    font-weight: bold;

    letter-spacing: 3px;
}


.section-title h2,
.about h2,
.portfolio h2,
.contact h2 {

    font-size:
        clamp(30px, 7vw, 48px);

    line-height: 1.1;

    margin-top: 8px;
}


.section-title p {

    color: var(--gray);

    margin-top: 12px;
}



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

.services {

    background:
        linear-gradient(
            180deg,
            var(--blue-dark),
            #03133a
        );
}


.services-grid {

    display: grid;

    grid-template-columns:
        1fr;

    gap: 20px;
}


.service-card {

    padding: 30px 25px;

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

    border-radius:
        var(--radius);

    background:
        rgba(6,28,70,.55);

    transition:
        var(--transition);
}


.service-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(255,138,0,.6);

    box-shadow:
        0 15px 40px
        rgba(0,80,200,.2);
}


.service-icon {

    width: 60px;
    height: 60px;

    border-radius: 15px;

    border:
        1px solid #168cff;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--orange);

    font-size: 24px;

    margin-bottom: 20px;
}


.service-card h3 {

    font-size: 21px;

    margin-bottom: 10px;
}


.service-card p {

    color: var(--gray);

    font-size: 14px;
}


.service-card a {

    display: block;

    margin-top: 20px;

    color: var(--orange);

    font-weight: bold;

    font-size: 14px;
}



/* =========================================
   PORTAFOLIO
========================================= */

.portfolio {

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


.portfolio-header {

    display: flex;

    flex-direction: column;

    gap: 20px;

    margin-bottom: 35px;
}


.portfolio-header a {

    color: var(--orange);

    font-size: 14px;
}


.portfolio-grid {

    display: grid;

    grid-template-columns:
        1fr;

    gap: 25px;
}


.portfolio-card {

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

    border-radius:
        var(--radius);

    overflow: hidden;

    background:
        #061a42;
}


.portfolio-image {

    height: 220px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #084d9c,
            #01132e
        );

    position: relative;

    cursor: pointer;

    transition: var(--transition);
}


.portfolio-image span {

    position: relative;

    z-index: 2;

    text-shadow:
        0 2px 10px
        rgba(0,0,0,.6);
}


.portfolio-image-1 {

    background:
        linear-gradient(
            135deg,
            rgba(8,77,156,.72),
            rgba(1,19,46,.85)
        ),
        url("../img/proyecto1.png");

    background-size: cover;

    background-position: center;

    background-blend-mode: luminosity;
}


.portfolio-image-1:hover {

    background:
        linear-gradient(
            135deg,
            rgba(8,77,156,.55),
            rgba(1,19,46,.7)
        ),
        url("../img/proyecto1.png");

    background-size: cover;

    background-position: center;

    background-blend-mode: luminosity;
}


.portfolio-image-2 {

    background:
        linear-gradient(
            135deg,
            rgba(8,77,156,.72),
            rgba(1,19,46,.85)
        ),
        url("../img/proyecto2.png");
    background-size: cover;
    background-position: center;
    background-blend-mode: luminosity;
}

.portfolio-image-2:hover {

    background:
        linear-gradient(
            135deg,
            rgba(8,77,156,.55),
            rgba(1,19,46,.7)
        ),
        url("../img/proyecto2.png");

    background-size: cover;

    background-position: center;

    background-blend-mode: luminosity;
}


.portfolio-image-3 {

    background:
        linear-gradient(
            135deg,
            #075f6c,
            #03152e
        );
}


.portfolio-info {

    padding: 22px;
}


.portfolio-info small {

    color: var(--orange);

    font-size: 10px;

    letter-spacing: 2px;
}


.portfolio-info h3 {

    margin-top: 7px;

    font-size: 20px;
}


.portfolio-info p {

    color: var(--gray);

    margin-top: 5px;

    font-size: 14px;
}



/* =========================================
   ABOUT
========================================= */

.about {

    background:
        #03133a;
}


.about-container {

    display: grid;

    gap: 50px;

    align-items: center;
}


.about-content h2 {

    max-width: 650px;
}


.about-content p {

    color: var(--gray);

    margin-top: 20px;

    max-width: 600px;
}


.about-content .btn {

    margin-top: 30px;
}


.about-visual {

    display: flex;

    justify-content: center;
}


.about-logo {
    width: 260px;
    height: auto;

    display: block;

    filter:
        drop-shadow(
            0 0 50px
            rgba(0,100,255,.5)
        );
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================
   TECNOLOGÍAS
========================================= */

.technology-list {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;
}


.technology-list span {

    padding:
        12px 20px;

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

    border-radius: 30px;

    background:
        rgba(10,50,110,.4);

    color: var(--gray);

    transition:
        var(--transition);
}


.technology-list span:hover {

    color: white;

    border-color:
        var(--orange);
}



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

.contact {

    background:
        linear-gradient(
            135deg,
            #052c67,
            #07142f
        );
}


.contact-container {

    display: flex;

    flex-direction: column;

    gap: 30px;

    align-items: flex-start;
}


.contact h2 {

    max-width: 650px;
}


.contact p {

    color: var(--gray);

    max-width: 550px;

    margin-top: 15px;
}



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

.footer {

    padding-top: 50px;

    background: #01091e;

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


.footer-container {

    display: flex;

    flex-direction: column;

    gap: 35px;
}


.footer-logo {
    width: 260px;
    max-width: 100%;
    height: auto;

    display: block;

    margin-bottom: 15px;
}


.footer-container p {

    color: var(--gray);

    font-size: 14px;
}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 12px;

    color: var(--gray);

    font-size: 14px;
}


.footer-links a:hover {
    color: var(--orange);
}


.copyright {

    margin-top: 40px;

    padding: 20px;

    text-align: center;

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

    color:
        #66738c;

    font-size: 12px;
}



/* =========================================
   WHATSAPP
========================================= */

.whatsapp {

    position: fixed;

    right: 20px;

    bottom: 20px;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background:
        #25d366;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    z-index: 900;

    box-shadow:
        0 5px 25px
        rgba(0,0,0,.4);

    transition:
        var(--transition);
}


.whatsapp:hover {

    transform:
        scale(1.1);
}



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

@media (min-width: 600px) {

    .hero-buttons {

        flex-direction: row;
    }


    .features-container {

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


    .services-grid {

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


    .portfolio-grid {

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


    .footer-container {

        flex-direction: row;

        justify-content:
            space-between;
    }


    .footer-links {

        flex-direction: row;
    }

}



/* =========================================
   DESKTOP
========================================= */

@media (min-width: 900px) {

    .menu-toggle {
        display: none;
    }


    .nav {

        position: static;

        display: flex;

        flex-direction: row;

        align-items: center;

        padding: 0;

        width: auto;

        background: transparent;

        border: 0;

        gap: 28px;
    }


    .hero {

        min-height: 760px;

        padding-top: 160px;
    }


    .hero-container {

        flex-direction: row;

        align-items: center;

        justify-content: space-between;
    }


    .hero-content {

        width: 55%;
    }


    .hero-logo-container {

        width: 40%;

        height: 400px;
    }


    .logo-image,
    .brand-logo {
        width: 250px;
    }


    .hero-logo {
        width: 290px;
        height: auto;
    }


    .about-logo {
        width: 300px;
    }


    .planet {

        width: 1400px;

        height: 500px;

        bottom: -300px;
    }


    .features-container {

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

        padding: 25px 40px;
    }


    .services-grid {

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


    .portfolio-grid {

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


    .portfolio-header {

        flex-direction: row;

        justify-content:
            space-between;

        align-items:
            flex-end;
    }


    .about-container {

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


    .contact-container {

        flex-direction: row;

        align-items: center;

        justify-content:
            space-between;
    }

}