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

:root {
    --bg: #07111f;
    --bg-soft: #0b1628;

    --surface: #ffffff;
    --surface-soft: #f6f8fb;

    --text: #101828;
    --muted: #667085;

    --line: #e4e7ec;

    --brand: #2f6bff;
    --brand-2: #7c3aed;
    --brand-light: #5b8cff;
    --cyan: #21d4fd;

    --white: #ffffff;

    --radius: 22px;

    --shadow:
        0 18px 60px
        rgba(16, 24, 40, 0.10);
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background: #ffffff;

    line-height: 1.6;

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}


/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: auto;
}


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

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: linear-gradient(
        135deg,
        rgba(1, 48, 114, 0.92),
        rgba(44, 111, 173, 0.82),
        rgba(174, 204, 230, 0.78)
    );

    backdrop-filter:
        blur(18px)
        saturate(140%);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(140%);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.18);

    box-shadow:
        0 8px 30px
        rgba(0, 30, 70, 0.18),

        inset 0 1px 0
        rgba(255, 255, 255, 0.10);
}


/* =========================================================
   NAVBAR
========================================================= */

.nav-wrap {
    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    position: relative;
}


/* =========================================================
   LOGO
========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #ffffff;

    flex-shrink: 0;
}

.brand-logo {
    height: 54px;

    width: auto;

    display: block;

    object-fit: contain;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.035);

    filter:
        drop-shadow(
            0 5px 10px
            rgba(0, 80, 180, 0.25)
        );
}

.brand strong {
    display: block;

    color: #ffffff;

    font-size: 0.98rem;

    font-weight: 800;
}

.brand small {
    display: block;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 0.72rem;
}


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

.main-nav {
    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 0.94rem;
}

.main-nav a {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 12px;

    border-radius: 10px;

    color: #ffffff;

    font-weight: 700;

    letter-spacing: 0.2px;

    text-shadow:
        0 1px 2px
        rgba(0, 0, 0, 0.75),

        0 2px 5px
        rgba(0, 0, 0, 0.35);

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        text-shadow 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;

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

    text-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.80),

        0 0 10px
        rgba(0, 140, 255, 0.85);

    transform: translateY(-1px);
}


/* Línea inferior animada */

.main-nav a:not(.nav-cta)::after {
    content: "";

    position: absolute;

    left: 15%;
    right: 15%;

    bottom: 4px;

    height: 2px;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        transparent,
        #39c6ff,
        #ffffff,
        #39c6ff,
        transparent
    );

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.25s ease;
}

.main-nav a:not(.nav-cta):hover::after {
    transform: scaleX(1);
}


/* =========================================================
   BOTÓN CTA DEL MENÚ
========================================================= */

.main-nav .nav-cta {
    padding:
        10px 17px;

    border-radius: 12px;

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

    color:
        #0b2450;

    font-weight: 800;

    text-shadow: none;

    box-shadow:
        0 8px 18px
        rgba(0, 38, 92, 0.16);
}

.main-nav .nav-cta:hover {
    color:
        #07111f;

    background:
        #ffffff;

    text-shadow: none;

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(0, 38, 92, 0.25);
}


/* =========================================================
   HAMBURGUESA
========================================================= */

.menu-toggle {
    position: relative;

    width: 46px;

    height: 46px;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 13px;

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

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.menu-toggle:hover {
    background:
        rgba(255, 255, 255, 0.16);

    transform:
        scale(1.04);

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.15);
}

.menu-toggle span {
    display: block;

    width: 24px;

    height: 2px;

    margin: 0;

    border-radius: 10px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Hamburguesa -> X */

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


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

.hero {
    position: relative;

    overflow: hidden;

    color: #ffffff;

    padding:
        100px 0
        82px;

    background:

        radial-gradient(
            circle at 80% 15%,
            rgba(47, 107, 255, 0.28),
            transparent 28%
        ),

        radial-gradient(
            circle at 15% 85%,
            rgba(124, 58, 237, 0.20),
            transparent 25%
        ),

        var(--bg);
}

.hero-grid {
    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.035)
            1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035)
            1px,
            transparent 1px
        );

    background-size:
        42px 42px;

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

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

.hero-content {
    position: relative;

    display: grid;

    grid-template-columns:
        1.30fr
        0.85fr;

    align-items: center;

    gap: 72px;
}


/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #7dd3fc;

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* =========================================================
   TÍTULOS HERO
========================================================= */

.hero h1,
.page-hero h1 {
    margin:
        18px 0
        24px;

    font-size:
        clamp(
            2.7rem,
            6vw,
            5.4rem
        );

    line-height: 1.02;

    letter-spacing: -0.055em;
}

.hero p,
.page-hero p {
    max-width: 760px;

    color: #cbd5e1;

    font-size: 1.12rem;
}


/* =========================================================
   BOTONES GENERALES
========================================================= */

.hero-actions,
.cta-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 30px;
}

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        14px
        20px;

    border:
        1px solid
        transparent;

    border-radius: 14px;

    font-weight: 700;

    cursor: pointer;

    text-shadow: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn:hover {
    transform:
        translateY(-2px);

    text-shadow: none;
}

.btn-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--brand),
            var(--brand-light)
        );

    box-shadow:
        0 12px 30px
        rgba(47, 107, 255, 0.25);
}

.btn-primary:hover {
    color: #ffffff;

    box-shadow:
        0 16px 36px
        rgba(47, 107, 255, 0.35);
}

.btn-secondary {
    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.16);

    background:
        rgba(255, 255, 255, 0.06);
}

.btn-light {
    color: #0b1220;

    background: #ffffff;
}

.btn-outline-light {
    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.35);

    background: transparent;
}


/* =========================================================
   MÉTRICAS HERO
========================================================= */

.hero-metrics {
    display: flex;

    gap: 30px;

    flex-wrap: wrap;

    margin-top: 42px;
}

.hero-metrics div {
    display: flex;

    flex-direction: column;
}

.hero-metrics strong {
    font-size: 1.35rem;
}

.hero-metrics span {
    color: #98a2b3;

    font-size: 0.78rem;
}


/* =========================================================
   PANEL TECNOLÓGICO
========================================================= */

.hero-panel {
    display: flex;

    justify-content: center;
}

.tech-card {
    width: 100%;

    max-width: 430px;

    padding: 28px;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.05)
        );

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.24);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}

.card-status {
    color: #cbd5e1;

    font-size: 0.78rem;
}

.card-status span {
    display: inline-block;

    width: 8px;

    height: 8px;

    margin-right: 8px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow:
        0 0 18px
        #4ade80;
}

.tech-card h3 {
    margin:
        28px 0
        12px;

    font-size: 2rem;

    line-height: 1.1;
}

.tech-card p {
    font-size: 0.95rem;
}

.service-mini-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-top: 24px;
}

.service-mini-grid div {
    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.07);
}


/* =========================================================
   FRANJA DE CONFIANZA
========================================================= */

.trust-strip {
    background: #ffffff;

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

.trust-content {
    min-height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    flex-wrap: wrap;

    color: #475467;
}

.trust-content span {
    color: #98a2b3;
}


/* =========================================================
   SECCIONES
========================================================= */

.section {
    padding:
        96px 0;
}

.section-heading {
    max-width: 760px;

    margin-bottom: 44px;
}

.section-heading h2,
.split h2,
.cta-box h2,
.contact-info h2 {
    margin:
        14px 0;

    font-size:
        clamp(
            2rem,
            4vw,
            3.5rem
        );

    line-height: 1.08;

    letter-spacing: -0.04em;
}

.section-heading p,
.about-copy p {
    color: var(--muted);
}


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

.cards-grid {
    display: grid;

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

    gap: 20px;
}

.service-card {
    padding: 28px;

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

    border-radius:
        var(--radius);

    background:
        #ffffff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

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

    border-color:
        #c7d2fe;

    box-shadow:
        var(--shadow);
}

.service-card .icon {
    width: 44px;

    height: 44px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    color:
        var(--brand);

    background:
        #eef4ff;

    font-weight: 800;
}

.service-card h3 {
    margin:
        20px 0
        10px;
}

.service-card p {
    color:
        var(--muted);
}

.service-card a,
.text-link {
    display: inline-block;

    color:
        var(--brand);

    font-weight: 700;

    text-shadow: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.service-card a:hover,
.text-link:hover {
    color:
        #174fd6;

    transform:
        translateX(3px);

    text-shadow: none;
}


/* =========================================================
   SECCIÓN OSCURA
========================================================= */

.section-dark {
    color: #ffffff;

    background:
        var(--bg);
}

.split {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: start;
}

.section-dark
.about-copy p {
    color: #cbd5e1;
}


/* =========================================================
   PROCESO
========================================================= */

.process-grid {
    display: grid;

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

    gap: 18px;
}

.process-step {
    padding: 24px;

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

    border-radius: 18px;

    background:
        var(--surface-soft);
}

.process-step span {
    color:
        var(--brand);

    font-size: 0.8rem;

    font-weight: 800;
}

.process-step p {
    color:
        var(--muted);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding:
        30px 0
        90px;
}

.cta-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 48px;

    border-radius: 30px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1238a6,
            #6d28d9
        );
}

.cta-box p {
    color: #dbeafe;
}
/* =========================================================
   ALERT
========================================================= */
.alert-success {
    padding: 15px 18px;
    margin-bottom: 20px;

    border:
        1px solid
        rgba(34, 197, 94, 0.30);

    border-radius: 12px;

    color: #166534;

    background:
        rgba(34, 197, 94, 0.10);
}

.alert-error {
    padding: 15px 18px;
    margin-bottom: 20px;

    border:
        1px solid
        rgba(239, 68, 68, 0.30);

    border-radius: 12px;

    color: #991b1b;

    background:
        rgba(239, 68, 68, 0.10);
}
/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding:
        60px 0
        20px;

    color: #d0d5dd;

    background:
        #050b14;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1.3fr
        1.3fr;

    gap: 40px;
}

.footer-grid h4 {
    color: #ffffff;
}

.footer-grid a {
    display: block;

    margin:
        8px 0;

    color: #98a2b3;

    font-weight: 500;

    text-shadow: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-grid a:hover {
    color: #ffffff;

    transform:
        translateX(3px);

    text-shadow: none;
}

.footer-grid span {
    display: block;

    margin:
        8px 0;

    color: #98a2b3;
}

.footer-bottom {
    display: flex;

    justify-content:
        space-between;

    gap: 20px;

    margin-top: 34px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    color: #667085;

    font-size: 0.88rem;
}

.footer-bottom a {
    color: #98a2b3;

    font-weight: 600;

    text-shadow: none;
}

.footer-bottom a:hover {
    color: #ffffff;

    text-shadow: none;
}
.footer-logo {
    width: 52px;
    height: 52px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;

    filter:
        drop-shadow(
            0 4px 10px
            rgba(0, 120, 255, 0.25)
        );

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.footer-brand:hover .footer-logo {
    transform: scale(1.06);

    filter:
        drop-shadow(
            0 6px 14px
            rgba(40, 150, 255, 0.45)
        );
}


/* =========================================================
   PÁGINAS INTERNAS
========================================================= */

.page-hero {
    padding:
        92px 0
        70px;

    color: #ffffff;

    background:
        var(--bg);
}

.page-hero h1 {
    max-width: 900px;

    font-size:
        clamp(
            2.5rem,
            5vw,
            4.5rem
        );
}


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

.detail-list {
    display: grid;

    gap: 18px;
}

.detail-card {
    display: grid;

    grid-template-columns:
        90px 1fr;

    gap: 24px;

    padding: 30px;

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

    border-radius: 20px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.detail-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow);
}

.detail-card > span {
    color:
        var(--brand);

    font-weight: 800;
}

.detail-card h2 {
    margin:
        0 0 8px;
}

.detail-card p {
    margin: 0;

    color:
        var(--muted);
}


/* =========================================================
   VALORES
========================================================= */

.values-grid {
    display: grid;

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

    gap: 20px;

    margin-top: 60px;
}

.value-card {
    padding: 28px;

    border-radius: 20px;

    background:
        var(--surface-soft);
}


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

.contact-grid {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 70px;
}

.contact-item {
    padding:
        18px 0;

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

.contact-item span {
    display: block;

    margin-bottom: 4px;

    color:
        var(--muted);

    font-size: 0.8rem;
}

.contact-item a {
    color:
        var(--brand);

    font-weight: 700;

    text-shadow: none;
}

.contact-item a:hover {
    color:
        #174fd6;

    text-shadow: none;
}


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

.contact-form {
    padding: 28px;

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

    border-radius: 24px;

    background:
        #ffffff;

    box-shadow:
        var(--shadow);
}

.contact-form label {
    display: block;

    margin-bottom: 18px;

    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;

    margin-top: 8px;

    padding:
        13px 14px;

    border:
        1px solid
        #d0d5dd;

    border-radius: 12px;

    outline: none;

    background:
        #ffffff;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color:
        var(--brand);

    box-shadow:
        0 0 0 4px
        rgba(47, 107, 255, 0.10);
}

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}

.contact-form small {
    display: block;

    margin-top: 14px;

    color:
        var(--muted);
}


/* =========================================================
   ANIMACIÓN REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: none;
}


/* =========================================================
   RESPONSIVE - TABLET / MÓVIL
========================================================= */

@media (
    max-width: 900px
) {

    .menu-toggle {
        display: flex;
    }


    /* =====================================================
       MENÚ MÓVIL
    ===================================================== */

    .main-nav {
        position: absolute;

        top: calc(100% + 10px);

        left: 14px;
        right: 14px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        padding: 18px;

        border:
            1px solid
            rgba(255, 255, 255, 0.14);

        border-radius:
            0 0
            22px 22px;

        background:
            linear-gradient(
                145deg,
                rgba(8, 34, 69, 0.97),
                rgba(30, 83, 133, 0.95),
                rgba(63, 120, 166, 0.94)
            );

        backdrop-filter:
            blur(22px)
            saturate(140%);

        -webkit-backdrop-filter:
            blur(22px)
            saturate(140%);

        box-shadow:
            0 24px 60px
            rgba(0, 0, 0, 0.28);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-14px)
            scale(0.98);

        transform-origin:
            top center;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .main-nav.open {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0)
            scale(1);
    }

    .main-nav a {
        width: 100%;

        justify-content:
            flex-start;

        padding:
            13px 15px;

        border-radius:
            11px;
    }

    .main-nav a:hover {
        padding-left:
            21px;

        background:
            rgba(
                255,
                255,
                255,
                0.11
            );
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav .nav-cta {
        justify-content: center;

        margin-top: 5px;

        color:
            #0b2450;

        background:
            #ffffff;
    }


    /* =====================================================
       LAYOUT
    ===================================================== */

    .hero-content,
    .split,
    .contact-grid {
        grid-template-columns:
            1fr;
    }

    .hero-panel {
        justify-content:
            flex-start;
    }

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

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

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

    .cta-box {
        flex-direction:
            column;

        align-items:
            flex-start;
    }
}


/* =========================================================
   RESPONSIVE - CELULAR
========================================================= */

@media (
    max-width: 640px
) {

    .container {
        width:
            min(
                calc(100% - 28px),
                1180px
            );
    }

    .nav-wrap {
        height: 70px;
    }

    .brand-logo {
        height: 46px;
    }

    .hero {
        padding:
            72px 0
            58px;
    }

    .hero h1,
    .page-hero h1 {
        font-size:
            clamp(
                2.35rem,
                12vw,
                3.6rem
            );
    }

    .hero p,
    .page-hero p {
        font-size:
            1rem;
    }

    .hero-actions {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-metrics {
        gap: 18px;
    }

    .cards-grid,
    .process-grid,
    .values-grid,
    .footer-grid,
    .form-row {
        grid-template-columns:
            1fr;
    }

    .section {
        padding:
            72px 0;
    }

    .cta-box {
        padding: 30px;
    }

    .detail-card {
        grid-template-columns:
            1fr;
    }

    .trust-content {
        justify-content:
            flex-start;

        padding:
            18px 0;
    }

    .footer-bottom {
        flex-direction:
            column;
    }

    .brand small {
        display: none;
    }
}