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

:root {
    --bg: #07101f;
    --bg2: #0a1426;
    --panel: #0e1b30;
    --text: #f5f7fb;
    --muted: #9ba9bd;
    --line: rgba(255, 255, 255, .1);

    --accent: #f34d61;
    --accent2: #ff6b7c;
    --success: #49d99a;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: Syne, sans-serif;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
}

p {
    color: var(--muted);
}


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

.navbar {
    padding: 18px 0;
    transition: .3s;
    background: linear-gradient(
        180deg,
        rgba(3, 9, 20, .85),
        transparent
    );
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(4, 10, 22, .93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.navbar-brand img,
.footer-logo {
    width: 250px;
    max-height: 90px;
    object-fit: contain;
}

.nav-link {
    color: #dfe6f0 !important;
    font-size: .9rem;
}

.nav-link:hover {
    color: #fff !important;
}


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

.btn {
    border-radius: 10px;
    font-weight: 700;
    padding: .75rem 1.1rem;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent),
        #d83356
    );

    border: 0;
    box-shadow: 0 10px 30px rgba(243, 77, 97, .2);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--accent2),
        var(--accent)
    );

    transform: translateY(-1px);
}


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

.hero {
    min-height: 760px;
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(4, 10, 22, .90) 0%,
            rgba(4, 10, 22, .95) 50%,
            rgba(4, 10, 22, .45) 100%
        ),
        url('../img/bg-hero.jpg') center / cover;


    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 30%;



}

.hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;

    background: linear-gradient(
        transparent,
        var(--bg)
    );

    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .11;

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

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        #000,
        transparent 80%
    );
}

.hero .container {
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .72rem;
    font-weight: 800;
    color: var(--accent2);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2rem, 3.7vw, 3.65rem);
    line-height: .96;
    letter-spacing: -.045em;
    font-weight: 700;
    max-width: 900px;
}

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

.hero .lead {
    font-size: 1.17rem;
    line-height: 1.75;
    max-width: 720px;
}


/* =========================================================
   HERO - ESTADÍSTICAS
   ========================================================= */

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    max-width: 700px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-family: Syne;
    font-size: 1.7rem;
}

.hero-stats span {
    font-size: .76rem;
    color: var(--muted);
}


/* =========================================================
   PANEL TECNOLÓGICO DEL HERO
   ========================================================= */

.tech-panel {
    max-width: 430px;
    margin-left: auto;
    padding: 24px;

    border: 1px solid rgba(111, 157, 220, .25);

    background: rgba(7, 17, 35, .72);
    backdrop-filter: blur(16px);

    box-shadow: 0 35px 100px rgba(0, 0, 0, .45);

    border-radius: 18px;

    transform: perspective(900px) rotateY(-5deg);
}

.panel-head {
    display: flex;
    gap: 6px;
    align-items: center;

    padding-bottom: 18px;

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

.panel-head span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent);
}

.panel-head span:nth-child(2) {
    background: #e4b657;
}

.panel-head span:nth-child(3) {
    background: var(--success);
}

.panel-head small {
    margin-left: auto;

    color: #718099;

    font-size: .65rem;
}

.shield {
    text-align: center;

    font-size: 6rem;
    color: var(--accent);

    padding: 35px 0;

    text-shadow: 0 0 45px rgba(243, 77, 97, .4);
}

.status-row {
    display: flex;
    justify-content: space-between;

    padding: 12px 0;

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

    font-size: .78rem;
}

.status-row i,
.status-row b {
    color: var(--success);
}

.pulse-line {
    height: 38px;
    margin-top: 18px;

    background: linear-gradient(
        90deg,
        transparent 0 8%,
        var(--accent) 8% 9%,
        transparent 9% 20%,
        var(--accent) 20% 21%,
        transparent 21% 35%,
        var(--accent) 35% 37%,
        transparent 37% 50%,
        var(--accent) 50% 51%,
        transparent 51%
    );

    opacity: .55;

    clip-path: polygon(
        0 50%,
        8% 50%,
        12% 20%,
        16% 80%,
        20% 50%,
        35% 50%,
        39% 5%,
        43% 95%,
        48% 50%,
        100% 50%,
        100% 55%,
        48% 55%,
        43% 100%,
        39% 10%,
        35% 55%,
        20% 55%,
        16% 85%,
        12% 25%,
        8% 55%,
        0 55%
    );
}


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

.brands {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background: #060d19;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: .14em;

    font-size: .68rem;

    color: #66758b;
}

.brand-track {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    overflow: hidden;
}

.brand-track img {
    width: 110px;
    height: 50px;

    object-fit: contain;

    filter: grayscale(1);

    opacity: .55;
}


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

.section {
    padding: 110px 0;
}

.section-copy {
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-heading {
    max-width: 700px;
}


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

.service-card {
    height: 100%;
    min-height: 300px;

    position: relative;

    padding: 32px;

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

    background: linear-gradient(
        145deg,
        rgba(16, 32, 56, .85),
        rgba(8, 17, 32, .7)
    );

    border-radius: 16px;

    transition: .3s;

    overflow: hidden;
}

.service-card:after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: var(--accent);

    filter: blur(70px);

    opacity: 0;

    right: -20px;
    bottom: -20px;

    transition: .3s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(243, 77, 97, .45);
}

.service-card:hover:after {
    opacity: .25;
}

.service-number {
    position: absolute;

    right: 24px;
    top: 20px;

    color: #33435a;

    font-family: Syne;
    font-weight: 800;
    font-size: 2rem;
}

.service-icon {
    display: block;

    margin-bottom: 45px;

    font-size: 2.2rem;

    color: var(--accent);
}

.service-card h3 {
    font-size: 1.35rem;
}

.service-card p {
    line-height: 1.7;
    font-size: .92rem;
}


/* =========================================================
   EMPRESA / EXPERIENCIA
   ========================================================= */

.about {
    position: relative;
    isolation: isolate;

    min-height: 680px;

    display: flex;
    align-items: center;

    background:
        url('../img/about-bg.jpg')
        center center / cover
        no-repeat;

    background-attachment: scroll;
}

.about:before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(3, 8, 18, .38) 0%,
        rgba(3, 8, 18, .62) 42%,
        rgba(3, 8, 18, .93) 72%,
        rgba(3, 8, 18, .98) 100%
    );
}

.about:after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background: linear-gradient(
        180deg,
        rgba(5, 12, 23, .22),
        rgba(5, 12, 23, .55)
    );
}

.about-content {
    min-height: 460px;
}

.about-copy {
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(5, 12, 23, .58);
    backdrop-filter: blur(7px);
    border-radius: 18px;
}

.about .section-copy {
    color: #bdc8d7;
}


/* =========================================================
   BADGE EXPERIENCIA
   ========================================================= */

.experience-badge {
    width: 190px;
    padding: 25px;
    background: var(--accent);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.experience-badge-bg {
    margin: 0 0 18px 18px;
}

.experience-badge strong {
    display: block;
    font-family: Syne;
    font-size: 3rem;
}

.experience-badge span {
    font-size: .78rem;
}


/* =========================================================
   LISTADO CHECK
   ========================================================= */

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.check-list span {
    font-size: .9rem;
}

.check-list i {
    color: var(--accent);
    margin-right: 8px;
}

.text-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}


/* =========================================================
   PROCESO / METODOLOGÍA
   ========================================================= */

.process {
    border: 1px solid var(--line);

    border-radius: 16px;

    overflow: hidden;
}

.process-step {
    height: 100%;
    min-height: 240px;

    padding: 32px;

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

.process > div:last-child .process-step {
    border: 0;
}

.process-step b {
    color: var(--accent);

    font-family: Syne;
    font-size: 2rem;
}

.process-step h3 {
    font-size: 1.2rem;

    margin-top: 45px;
}

.process-step p {
    font-size: .86rem;
    line-height: 1.6;
}


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

.cta-band {
    padding: 70px 0;

    background: linear-gradient(
        115deg,
        #c92e4e,
        var(--accent)
    );

    position: relative;

    overflow: hidden;
}

.cta-band:after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 50%;

    right: -120px;
    top: -220px;
}

.cta-band .eyebrow,
.cta-band h2 {
    color: #fff;
}

.cta-band h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);

    max-width: 800px;
}


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

.contact {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(28, 56, 95, .25),
            transparent 35%
        ),
        #07101f;
}

.contact-links {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 35px;
}

.contact-links a {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 15px;

    color: #fff;

    text-decoration: none;

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

    border-radius: 12px;
}

.contact-links i {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: rgba(243, 77, 97, .12);

    color: var(--accent);

    border-radius: 10px;
}

.contact-links small {
    display: block;

    color: var(--muted);

    font-size: .7rem;
}


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

.contact-form {
    padding: 34px;

    background: rgba(14, 27, 48, .72);

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

    border-radius: 18px;
}

.contact-form label {
    font-size: .78rem;
    font-weight: 700;

    margin-bottom: 8px;
}

.form-control {
    background: #07101f !important;

    border: 1px solid #263750 !important;

    color: #fff !important;

    padding: .85rem 1rem;
}

.form-control:focus {
    box-shadow:
        0 0 0 .2rem rgba(243, 77, 97, .12) !important;

    border-color: var(--accent) !important;
}

.form-note {
    display: block;

    color: #6f7d91;

    text-align: center;

    margin-top: 10px;
}


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

footer {
    padding: 42px 0;

    background: #030812;

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

footer p {
    font-size: .75rem;

    margin: 0;
}

.footer-nav {
    display: flex;

    gap: 20px;

    justify-content: center;
}

.footer-nav a {
    color: #8f9caf;

    text-decoration: none;

    font-size: .8rem;
}


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

.whatsapp-float {
    position: fixed;

    z-index: 20;

    right: 24px;
    bottom: 24px;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #25d366;

    color: #fff;

    text-decoration: none;

    font-size: 1.65rem;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: none;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991px) {

    .navbar {
        background: rgba(4, 10, 22, .95);
    }

    .navbar-collapse {
        padding: 18px 0;
    }

    .hero {
        text-align: center;
    }

    .hero .lead {
        margin-inline: auto;
    }

    .hero-stats {
        justify-content: center;

        margin-inline: auto;
    }

    .brand-track {
        justify-content: flex-start;

        overflow-x: auto;
    }

    .brand-track img {
        flex: 0 0 100px;
    }

    .section {
        padding: 80px 0;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .navbar-brand img {
        width: 155px;
    }

    /* Hero */

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

    .hero-stats {
        gap: 15px;
    }

    .hero-stats strong {
        font-size: 1.3rem;
    }

    .hero-stats span {
        font-size: .64rem;
    }

    /* Empresa */

    .check-list {
        grid-template-columns: 1fr;
    }

    .about {
        min-height: auto;

        background-position: 35% center;
    }

    .about:before {
        background: rgba(3, 8, 18, .84);
    }

    .about-content {
        min-height: auto;
    }

    .about-copy {
        padding: 28px;
    }

    .experience-badge-bg {
        margin: 0 0 10px 0;
    }

    /* Metodología */

    .process-step {
        border-right: 0;
        border-bottom: 1px solid var(--line);

        min-height: 190px;
    }

    .process-step h3 {
        margin-top: 25px;
    }

    /* Footer */

    .footer-nav {
        justify-content: flex-start;

        flex-wrap: wrap;
    }

    /* Formulario */

    .contact-form {
        padding: 22px;
    }
}