:root {
    --blue: #176bff;
    --blue-dark: #0d4fd7;

    --navy: #0b1e3a;
    --navy-light: #18304f;

    --steel: #8d98a6;
    --gray: #667085;
    --light-gray: #eef2f6;

    --background: #ffffff;
    --surface: #f7f9fc;

    --text: #132238;
    --text-secondary: #5c6878;

    --border: #e3e8ef;

    --max-width: 1200px;
}


/* Reset */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.6;
}


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


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


/* Layout */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(12px);

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


.nav-container {
    height: 78px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.brand {
    font-size: 1.65rem;
    font-weight: 700;

    color: var(--navy);
}


.brand-io {
    color: var(--blue);
}


.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}


.nav a {
    font-size: 0.95rem;
    color: var(--text-secondary);

    transition: 0.2s;
}


.nav a:hover {
    color: var(--blue);
}


/* Hero */

.hero {
    min-height: 680px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(23, 107, 255, 0.08),
            transparent 35%
        );
}


.hero-container {
    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 70px;
}


.eyebrow {
    display: inline-block;

    color: var(--blue);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.16em;

    margin-bottom: 18px;
}


.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1.05;

    letter-spacing: -0.045em;

    color: var(--navy);

    max-width: 720px;
}


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


.hero-text {
    margin-top: 28px;

    max-width: 610px;

    color: var(--text-secondary);

    font-size: 1.12rem;
}


.hero-actions {
    margin-top: 38px;

    display: flex;
    gap: 14px;
}


.button {
    display: inline-flex;

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

    padding: 13px 24px;

    border-radius: 7px;

    font-weight: 600;

    transition: 0.2s;
}


.button-primary {
    background: var(--blue);
    color: white;
}


.button-primary:hover {
    background: var(--blue-dark);

    transform: translateY(-1px);
}


.button-secondary {
    border: 1px solid var(--border);

    color: var(--navy);

    background: white;
}


.button-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}


.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}


.hero-image img {
    width: 100%;
    max-width: 620px;
}


/* Servicios */

.services {
    padding: 110px 0;

    background: var(--surface);
}


.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}


.section-heading h2,
.about h2,
.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.15;

    letter-spacing: -0.03em;

    color: var(--navy);
}


.section-heading p {
    margin-top: 16px;

    font-size: 1.05rem;

    color: var(--text-secondary);
}


.services-grid {
    display: grid;

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

    gap: 18px;
}


.service-card {
    min-height: 245px;

    padding: 30px;

    background: white;

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

    border-radius: 10px;

    transition: 0.25s;
}


.service-card:hover {
    transform: translateY(-5px);

    border-color: rgba(23, 107, 255, 0.4);

    box-shadow:
        0 18px 45px
        rgba(11, 30, 58, 0.08);
}


.service-number {
    color: var(--blue);

    font-weight: 700;

    margin-bottom: 28px;
}


.service-card h3 {
    color: var(--navy);

    font-size: 1.15rem;

    margin-bottom: 12px;
}


.service-card p {
    font-size: 0.93rem;

    color: var(--text-secondary);
}


/* Nosotros */

.about {
    padding: 110px 0;
}


.about-container {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 90px;

    align-items: start;
}


.about-text {
    color: var(--text-secondary);

    font-size: 1.05rem;
}


.about-text p + p {
    margin-top: 20px;
}


/* Contacto */

.contact {
    padding: 90px 0;

    background: var(--navy);

    color: white;
}


.contact-container {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 60px;
}


.contact h2 {
    color: white;
}


.contact p {
    margin-top: 15px;

    color: #bdc8d6;

    max-width: 650px;
}


/* Footer */

.footer {
    background: #071426;

    padding: 34px 0;

    color: #9aa8b8;
}


.footer-container {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    font-size: 0.9rem;
}


.footer strong {
    color: white;

    margin-right: 14px;
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--navy);

    transition: 0.2s;
}

/* Responsive */

@media (max-width: 1000px) {

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


    .hero-container {
        grid-template-columns: 1fr;

        padding: 80px 0;
    }


    .hero-image {
        order: -1;
    }


    .hero-image img {
        max-width: 500px;
    }

}


@media (max-width: 900px) {

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;

        top: 78px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 12px 5% 20px;

        background: white;

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

        box-shadow:
            0 15px 30px
            rgba(11, 30, 58, 0.08);
    }

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

    .nav a {
        padding: 14px 0;
    }
}

@media (max-width: 700px) {

    .hero-container {
        padding: 45px 0 60px;
        gap: 25px;
    }

    .hero-image {
        order: 0;
        margin: 0;
    }

    .hero-image img {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-content {
        order: -1;
    }

    .hero h1 {
        font-size: 3rem;
    }


    /* Servicios */

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


    /* Nosotros */

    .about-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }


    /* Contacto */

    .contact-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
    }

    .contact-container > div {
        width: 100%;
    }

    .contact .button {
        width: 100%;
        max-width: 100%;
    }


    /* Footer */

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}
