@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --negro: #050505;
    --negro-2: #080b0d;
    --negro-3: #0d1215;
    --verde: #a6dc2a;
    --cyan: #08bde8;
    --blanco: #ffffff;
    --gris: #a6adb3;
    --border: rgba(255,255,255,.10);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--negro);
    color: var(--blanco);
    overflow-x: hidden;
}

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

a {
    transition: .3s ease;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #050505;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--verde), var(--cyan));
    border-radius: 10px;
}


/* PRELOADER */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030405;
    transition: opacity .6s ease, visibility .6s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.logo-fake {
    font-size: 48px;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.preloader-line {
    position: relative;
    width: 180px;
    height: 2px;
    margin: 18px auto 0;
    overflow: hidden;
    background: rgba(255,255,255,.12);
}

.preloader-line::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    animation: preloadLine 1.2s linear infinite;
}

@keyframes preloadLine {
    to {
        left: 100%;
    }
}


/* GENERAL */
.section-heading {
    margin-bottom: 60px;
}

.section-heading span,
.mini-title {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--verde);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
}

.section-heading h2,
.servicios h2,
.nosotros-home h2,
.soluciones-home h2,
.clientes h2,
.contact-cta h2 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: .98;
    font-weight: 900;
}

.section-heading strong,
.servicios strong,
.nosotros-home strong,
.soluciones-home strong,
.clientes strong,
.contact-cta strong {
    color: var(--cyan);
}

.section-description {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--gris);
    line-height: 1.8;
}


/* NAVBAR */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 18px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.84), transparent);
    transition: .35s ease;
}

.navbar.navbar-scrolled {
    position: fixed;
    padding: 10px 0;
    background: rgba(3,5,6,.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(0,0,0,.30);
}

.brand-custom,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-main {
    font-size: 32px;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-sub {
    display: flex;
    flex-direction: column;
    color: white;
    line-height: 1.05;
}

.brand-sub strong {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.brand-sub small {
    margin-top: 3px;
    color: var(--gris);
    font-size: 8px;
    letter-spacing: 1px;
}

.navbar-nav {
    gap: 14px;
}

.nav-link {
    position: relative;
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: white !important;
    font-size: 10px;
    font-weight: 800;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    transition: .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-contacto {
    padding: 10px 16px !important;
    border: 1px solid rgba(255,255,255,.22);
}

.nav-contacto::after {
    display: none;
}

.nav-contacto:hover {
    color: #000 !important;
    border-color: transparent;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
}


/* HERO */
.hero {
    position: relative;
    min-height: 800px;
    overflow: hidden;
    background: #050505;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.76) 42%, rgba(0,0,0,.18) 100%),
        linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.10) 55%, rgba(0,0,0,.68));
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .10;
    background-image:
        linear-gradient(rgba(0,200,255,.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,200,255,.28) 1px, transparent 1px);
    background-size: 85px 85px;
    -webkit-mask-image: linear-gradient(90deg, black, transparent 75%);
    mask-image: linear-gradient(90deg, black, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-small {
    display: inline-block;
    color: var(--verde);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.hero h1 {
    max-width: 820px;
    margin-top: 18px;
    font-size: clamp(50px, 7vw, 92px);
    line-height: .92;
    font-weight: 900;
    letter-spacing: -4px;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    max-width: 680px;
    margin: 28px 0 35px;
    color: #d1d5d7;
    font-size: 16px;
    line-height: 1.85;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-main,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 16px 25px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    text-decoration: none;
}

.btn-main {
    color: #041013;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    box-shadow: 0 12px 35px rgba(0,190,230,.14);
}

.btn-main:hover {
    color: #000;
    transform: translateY(-4px);
}

.btn-outline {
    color: white;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.015);
}

.btn-outline:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.hero-stats {
    display: flex;
    margin-top: 55px;
}

.hero-stat {
    min-width: 145px;
    padding: 0 26px;
    border-right: 1px solid rgba(255,255,255,.18);
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.hero-stat span {
    color: var(--gris);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.social-side {
    position: absolute;
    z-index: 20;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-side a {
    display: flex;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    color: white;
    border: 1px solid rgba(255,255,255,.17);
    text-decoration: none;
    background: rgba(0,0,0,.20);
}

.social-side a:hover {
    color: #000;
    border-color: transparent;
    background: var(--verde);
    transform: translateX(-5px);
}


/* EXPERIENCIA */
.experiencia {
    padding-top: 110px;
    background: #030405;
}

.imagenes-trabajo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    margin-top: 30px;
}

.trabajo {
    position: relative;
    height: 480px;
    overflow: hidden;
    transform: skewX(-5deg);
    border-right: 8px solid #030405;
}

.trabajo:first-child {
    margin-left: -45px;
}

.trabajo:last-child {
    margin-right: -45px;
}

.trabajo img {
    width: 115%;
    height: 100%;
    object-fit: cover;
    transform: skewX(5deg) scale(1.02);
    filter: saturate(.82) brightness(.72);
    transition: .8s ease;
}

.trabajo:hover img {
    transform: skewX(5deg) scale(1.12);
    filter: saturate(1) brightness(.88);
}

.trabajo-overlay {
    position: absolute;
    inset: 0;
    transform: skewX(5deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.18) 70%);
}

.trabajo-overlay span {
    color: var(--verde);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}

.trabajo-overlay h3 {
    margin-top: 6px;
    font-size: 25px;
    font-weight: 900;
}

.trabajo-overlay p {
    margin: 0;
    color: var(--gris);
    font-size: 13px;
}


/* MARCAS */
.marcas {
    position: relative;
    z-index: 5;
    padding: 55px 0 65px;
    color: #061013;
    background: linear-gradient(105deg, #9dde29 0%, #58d846 35%, #0dbce7 100%);
    clip-path: polygon(0 0, 100% 8%, 100% 82%, 0 100%);
}

.marcas-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.marcas-title span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.marcas-title strong {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 900;
}

.marcas .swiper-slide {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca-fake {
    min-width: 150px;
    padding: 18px 22px;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.16);
}


/* PRODUCTOS */
.productos {
    position: relative;
    padding: 155px 0 130px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, #18262c, #060707 46%);
}

.productos::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .10;
    background-image:
        linear-gradient(rgba(0,200,255,.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,200,255,.35) 1px, transparent 1px);
    background-size: 75px 75px;
}

.productos .container {
    position: relative;
    z-index: 3;
}

.productosSwiper {
    padding: 20px 10px 50px;
}

.producto-card {
    position: relative;
    min-height: 535px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    backdrop-filter: blur(10px);
    transition: .4s ease;
}

.producto-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0,190,230,.55);
    box-shadow: 0 25px 65px rgba(0,0,0,.35);
}

.producto-card.destacado {
    border-color: rgba(160,220,40,.55);
}

.producto-badge {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    padding: 7px 11px;
    color: #061013;
    font-size: 9px;
    font-weight: 900;
    background: var(--verde);
}

.producto-img {
    height: 300px;
    overflow: hidden;
    border-radius: 13px;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.68) saturate(.80);
    transition: .6s ease;
}

.producto-card:hover .producto-img img {
    transform: scale(1.08);
    filter: brightness(.82) saturate(1);
}

.producto-info {
    padding: 25px 6px 8px;
}

.producto-info span {
    color: var(--verde);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.producto-info h3 {
    margin: 8px 0 13px;
    font-size: 21px;
    font-weight: 900;
}

.producto-info p {
    min-height: 70px;
    color: var(--gris);
    font-size: 13px;
    line-height: 1.75;
}

.producto-info a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.swiper-button-next,
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    color: var(--verde) !important;
    border: 1px solid rgba(160,220,40,.4);
    border-radius: 50%;
    background: rgba(0,0,0,.60);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
}


/* SOLUCIONES */
.soluciones-home {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: #050505;
}

.soluciones-home p {
    max-width: 700px;
    color: var(--gris);
    line-height: 1.8;
}

.solucion-home-card {
    position: relative;
    display: block;
    min-height: 390px;
    overflow: hidden;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.10);
}

.solucion-home-card img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    filter: brightness(.58) saturate(.85);
    transition: .8s ease;
}

.solucion-home-card:hover img {
    transform: scale(1.08);
    filter: brightness(.72) saturate(1);
}

.solucion-home-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 22px;
    padding: 34px;
    background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.12) 70%);
}

.solucion-home-overlay > span {
    align-self: start;
    color: var(--verde);
    font-size: 11px;
    font-weight: 900;
}

.solucion-home-overlay small {
    color: var(--verde);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.solucion-home-overlay h3 {
    margin: 6px 0 8px;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
}

.solucion-home-overlay p {
    margin: 0;
    color: #c1c6c8;
    font-size: 12px;
}

.solucion-home-overlay > i {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    font-size: 20px;
}


/* SERVICIOS */
.servicios {
    position: relative;
    padding: 125px 0;
    background: linear-gradient(135deg, #0b0f11, #121b1f);
}

.servicios p {
    max-width: 560px;
    color: var(--gris);
    line-height: 1.8;
}

.servicio-card {
    position: relative;
    min-height: 260px;
    height: 100%;
    padding: 34px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    transition: .35s ease;
}

.servicio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,190,230,.35);
}

.service-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(255,255,255,.08);
    font-size: 46px;
    font-weight: 900;
}

.servicio-card > i {
    color: var(--cyan);
    font-size: 36px;
}

.servicio-card h3 {
    margin: 20px 0 12px;
    font-size: 18px;
    font-weight: 900;
}

.servicio-card p {
    margin: 0;
    color: var(--gris);
    font-size: 13px;
}


/* NOSOTROS */
.nosotros-home {
    padding: 130px 0;
    background: #050505;
}

.nosotros-home p {
    color: var(--gris);
    line-height: 1.9;
}

.nosotros-imagen {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.nosotros-imagen::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 75%;
    height: 75%;
    border: 1px solid rgba(0,190,230,.42);
}

.nosotros-imagen img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 520px;
    object-fit: cover;
    filter: brightness(.68);
}

.nosotros-experience {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    width: 190px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    color: #041013;
    background: linear-gradient(135deg, var(--verde), var(--cyan));
}

.nosotros-experience strong {
    font-size: 30px;
    font-weight: 900;
}

.nosotros-experience span {
    font-size: 10px;
    font-weight: 700;
}


/* CLIENTES */
.clientes {
    padding: 105px 0;
    background: linear-gradient(105deg, #006d96, #09bde7);
}

.clientes span {
    color: var(--verde);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
}

.clientes p {
    max-width: 360px;
    color: white;
    line-height: 1.7;
}

.cliente-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #273238;
    font-size: 15px;
    font-weight: 900;
    border-radius: 13px;
    background: white;
}


/* CTA */
.contact-cta {
    padding: 100px 0;
    background:
        radial-gradient(circle at 50% 0, rgba(0,190,230,.08), transparent 45%),
        #080b0d;
}

.contact-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 55px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(120deg, rgba(160,220,40,.055), rgba(0,190,230,.055));
}

.contact-cta-box > div > span {
    color: var(--verde);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
}

.contact-cta-box p {
    margin: 15px 0 0;
    color: var(--gris);
}


/* FOOTER */
footer {
    position: relative;
    padding: 85px 0 25px;
    overflow: hidden;
    background: #020304;
}

.footer-bg {
    position: absolute;
    inset: 0;
    opacity: .16;
}

.footer-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.95));
}

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

footer .container {
    position: relative;
    z-index: 2;
}

footer p {
    color: #b7bdc0;
    font-size: 13px;
    line-height: 1.7;
}

footer h4 {
    margin-bottom: 25px;
    color: var(--verde);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.footer-social a {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    text-decoration: none;
}

.footer-social a:hover {
    color: #000;
    border-color: transparent;
    background: var(--cyan);
    transform: translateY(-4px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a {
    color: #aeb4b6;
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    padding-left: 5px;
    color: var(--cyan);
}

footer p i {
    margin-right: 7px;
    color: var(--cyan);
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
    padding-top: 20px;
    color: #626a6f;
    font-size: 10px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.copyright div {
    display: flex;
    gap: 18px;
}

.copyright a {
    color: #626a6f;
    text-decoration: none;
}


/* WHATSAPP */
.whatsapp {
    position: fixed;
    z-index: 999;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    border-radius: 50%;
    background: #25d366;
}


/* RESPONSIVE */
@media(max-width: 1200px) {
    .navbar-nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 72px;
    }
}

@media(max-width: 991px) {
    .navbar {
        background: rgba(2,4,5,.94);
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 20px;
        background: rgba(3,5,6,.97);
        border: 1px solid rgba(255,255,255,.08);
    }

    .navbar-nav {
        align-items: flex-start !important;
        gap: 5px;
    }

    .nav-link {
        width: 100%;
        padding: 11px 0 !important;
    }

    .nav-contacto {
        margin-top: 8px;
        padding: 12px 15px !important;
        text-align: center;
    }

    .hero {
        min-height: 760px;
    }

    .hero h1 {
        font-size: 60px;
        letter-spacing: -2px;
    }

    .social-side {
        display: none;
    }

    .imagenes-trabajo {
        grid-template-columns: 1fr;
    }

    .trabajo {
        height: 420px;
        margin: 0 !important;
        transform: none;
        border: none;
        border-bottom: 6px solid #030405;
    }

    .trabajo img {
        width: 100%;
        transform: none;
    }

    .trabajo:hover img {
        transform: scale(1.08);
    }

    .trabajo-overlay {
        transform: none;
    }

    .marcas {
        clip-path: polygon(0 0, 100% 3%, 100% 95%, 0 100%);
    }

    .productos,
    .soluciones-home,
    .servicios,
    .nosotros-home {
        padding: 100px 0;
    }

    .nosotros-imagen img {
        height: 440px;
    }

    .contact-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .copyright {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media(max-width: 767px) {
    .section-heading h2,
    .servicios h2,
    .nosotros-home h2,
    .soluciones-home h2,
    .clientes h2,
    .contact-cta h2 {
        font-size: 40px;
    }

    .hero {
        min-height: 700px;
    }

    .hero-bg img {
        object-position: 60% center;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero-small {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .hero h1 {
        font-size: 46px;
        line-height: .98;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-main,
    .btn-outline {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stat {
        min-width: 0;
        padding: 0 10px;
        text-align: center;
    }

    .hero-stat:first-child {
        padding-left: 10px;
    }

    .hero-stat strong {
        font-size: 17px;
    }

    .hero-stat span {
        font-size: 8px;
    }

    .experiencia {
        padding-top: 90px;
    }

    .trabajo {
        height: 340px;
    }

    .marcas {
        padding: 50px 0;
    }

    .producto-card {
        min-height: auto;
    }

    .producto-img {
        height: 260px;
    }

    .solucion-home-card {
        min-height: 330px;
    }

    .solucion-home-card img {
        height: 330px;
    }

    .solucion-home-overlay {
        grid-template-columns: 1fr auto;
        padding: 25px;
    }

    .solucion-home-overlay > span {
        display: none;
    }

    .nosotros-imagen img {
        height: 350px;
    }

    .contact-cta {
        padding: 75px 0;
    }

    .contact-cta-box {
        padding: 35px 25px;
    }

    .copyright div {
        flex-direction: column;
        gap: 8px;
    }
}

@media(max-width: 480px) {
    .brand-main {
        font-size: 28px;
    }

    .brand-sub {
        display: none;
    }

    .hero {
        min-height: 670px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-stats {
        display: none;
    }

    .section-heading h2,
    .servicios h2,
    .nosotros-home h2,
    .soluciones-home h2,
    .clientes h2,
    .contact-cta h2 {
        font-size: 34px;
    }

    .trabajo {
        height: 300px;
    }

    .producto-img {
        height: 230px;
    }

    .solucion-home-overlay h3 {
        font-size: 22px;
    }

    .solucion-home-overlay p {
        display: none;
    }

    .nosotros-imagen {
        padding: 0;
    }

    .nosotros-imagen::before {
        display: none;
    }

    .whatsapp {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
        font-size: 25px;
    }
}


/* ============================================================
   EFECTOS DINÁMICOS - MISMO DISEÑO, MÁS INTERACTIVO
============================================================ */

/* Barra de progreso superior */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    width: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    box-shadow: 0 0 14px rgba(8,189,232,.5);
}


/* ------------------------------------------------------------
   BOTONES REDONDEADOS + BRILLO + MOVIMIENTO
------------------------------------------------------------ */

.btn-main,
.btn-outline,
.producto-info a {
    border-radius: 999px;
}

.btn-main,
.btn-outline {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-fx::before {
    content: "";
    position: absolute;
    top: -130%;
    left: -45%;
    width: 42%;
    height: 360%;
    z-index: -1;
    transform: rotate(22deg);
    background: rgba(255,255,255,.34);
    transition: left .62s ease;
}

.btn-fx:hover::before {
    left: 125%;
}

.btn-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .3s ease;
}

.btn-main:hover::after {
    opacity: 1;
    animation: btnPulse 1.15s ease-out infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(8,189,232,.30);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(8,189,232,0);
    }
}

.btn-main:hover,
.btn-outline:hover {
    transform: translateY(-5px) scale(1.025);
}

.btn-main i,
.btn-outline i,
.producto-info a i {
    transition: transform .3s ease;
}

.btn-main:hover i,
.btn-outline:hover i,
.producto-info a:hover i {
    transform: translateX(5px);
}


/* ------------------------------------------------------------
   BRILLO DINÁMICO EN TARJETAS
------------------------------------------------------------ */

.interactive-card {
    position: relative;
    isolation: isolate;
}

.interactive-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(
            circle at var(--mx, 50%) var(--my, 50%),
            rgba(255,255,255,.13),
            transparent 31%
        );
    transition: opacity .3s ease;
}

.interactive-card:hover::after {
    opacity: 1;
}


/* ------------------------------------------------------------
   SOLUCIONES 3D - CHIPS / PILLS
------------------------------------------------------------ */

.solution-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.solution-pills span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    color: #dce4e7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(10px);
    transition: transform .3s ease,
                border-color .3s ease,
                background .3s ease,
                color .3s ease;
}

.solution-pills span i {
    color: var(--cyan);
    font-size: 14px;
}

.solution-pills span:hover {
    transform: translateY(-5px) scale(1.025);
    color: white;
    border-color: rgba(8,189,232,.45);
    background: rgba(8,189,232,.08);
}


/* ------------------------------------------------------------
   EFECTO 3D SUAVE EN IMÁGENES
------------------------------------------------------------ */

.interactive-media {
    position: relative;
    transform-style: preserve-3d;
    transition: transform .18s ease-out;
}

.media-shine {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(
            circle at var(--sx, 50%) var(--sy, 50%),
            rgba(255,255,255,.18),
            transparent 34%
        );
    transition: opacity .25s ease;
}

.interactive-media:hover .media-shine {
    opacity: 1;
}


/* ------------------------------------------------------------
   EXPERIENCIA - MÁS MOVIMIENTO SIN CAMBIAR EL DISEÑO
------------------------------------------------------------ */

.trabajo-overlay h3,
.trabajo-overlay span {
    transition: transform .35s ease;
}

.trabajo:hover .trabajo-overlay h3 {
    transform: translateX(7px);
}

.trabajo:hover .trabajo-overlay span {
    transform: translateX(5px);
}


/* ------------------------------------------------------------
   PRODUCTOS
------------------------------------------------------------ */

.producto-card {
    transition:
        transform .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.producto-card:hover {
    transform: translateY(-13px) scale(1.012);
}

.producto-badge {
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.producto-info a {
    padding: 8px 12px;
    margin-left: -12px;
    transition: .3s ease;
}

.producto-info a:hover {
    padding-left: 16px;
    background: rgba(8,189,232,.07);
}


/* ------------------------------------------------------------
   SOLUCIONES HOME
------------------------------------------------------------ */

.solucion-home-card {
    border-radius: 18px;
    transition:
        transform .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.solucion-home-card:hover {
    transform: translateY(-8px);
    border-color: rgba(8,189,232,.45);
    box-shadow: 0 24px 55px rgba(0,0,0,.28);
}

.solucion-home-card img {
    border-radius: 18px;
}

.solucion-home-overlay {
    border-radius: 18px;
}

.solucion-home-overlay > i {
    transition:
        transform .35s ease,
        color .35s ease,
        background .35s ease,
        border-color .35s ease;
}

.solucion-home-card:hover .solucion-home-overlay > i {
    color: #031014;
    border-color: transparent;
    background: var(--verde);
    transform: rotate(45deg) scale(1.06);
}


/* ------------------------------------------------------------
   SERVICIOS
------------------------------------------------------------ */

.servicio-card {
    border-radius: 18px;
    overflow: hidden;
}

.servicio-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--verde), var(--cyan));
    transition: transform .35s ease;
}

.servicio-card:hover::after {
    transform: scaleX(1);
}

.servicio-card > i {
    transition: transform .35s ease;
}

.servicio-card:hover > i {
    transform: translateY(-4px) scale(1.08) rotate(-3deg);
}

.service-number {
    transition: opacity .35s ease, transform .35s ease;
}

.servicio-card:hover .service-number {
    opacity: .14;
    transform: translate(-4px, 4px) scale(1.04);
}


/* ------------------------------------------------------------
   NOSOTROS
------------------------------------------------------------ */

.nosotros-imagen {
    transition: transform .22s ease-out;
}

.nosotros-experience {
    border-radius: 18px 0 18px 0;
    box-shadow: 0 18px 35px rgba(0,0,0,.25);
    transition: transform .35s ease;
}

.nosotros-imagen:hover .nosotros-experience {
    transform: translate(-5px, -5px);
}


/* ------------------------------------------------------------
   CLIENTES
------------------------------------------------------------ */

.cliente-logo {
    border-radius: 18px;
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.cliente-logo:hover {
    transform: translateY(-7px) scale(1.025);
    box-shadow: 0 20px 40px rgba(0,0,0,.16);
}


/* ------------------------------------------------------------
   CTA FINAL
------------------------------------------------------------ */

.dynamic-cta {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.dynamic-cta::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    right: -140px;
    top: -170px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(45px);
    background: rgba(8,189,232,.10);
    animation: ctaFloat 6s ease-in-out infinite alternate;
}

.dynamic-cta::after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    left: -130px;
    bottom: -150px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
    background: rgba(166,220,42,.07);
    animation: ctaFloat2 7s ease-in-out infinite alternate;
}

.dynamic-cta > * {
    position: relative;
    z-index: 2;
}

@keyframes ctaFloat {
    to {
        transform: translate(-35px, 28px) scale(1.08);
    }
}

@keyframes ctaFloat2 {
    to {
        transform: translate(30px, -20px) scale(1.1);
    }
}


/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */

.footer-social a {
    transition:
        transform .3s ease,
        color .3s ease,
        background .3s ease,
        border-color .3s ease;
}


/* ------------------------------------------------------------
   MOBILE / ACCESIBILIDAD
------------------------------------------------------------ */

@media(max-width: 767px) {

    .solution-pills {
        gap: 8px;
    }

    .solution-pills span {
        padding: 8px 12px;
        font-size: 8px;
    }

    .solucion-home-card,
    .solucion-home-card img,
    .solucion-home-overlay,
    .servicio-card,
    .cliente-logo,
    .dynamic-cta {
        border-radius: 16px;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}


/* ============================================================
   REDES SOCIALES LATERALES
   Agregado sin modificar el diseño general del INDEX
============================================================ */

.social-side {
    position: fixed;
    z-index: 950;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.social-item {
    position: relative;

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

    color: #fff;
    text-decoration: none;

    border-radius: 999px;

    transition:
        transform .3s ease,
        filter .3s ease;
}

.social-icon {
    position: relative;
    z-index: 2;

    width: 46px;
    height: 46px;

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

    flex: 0 0 46px;

    color: #fff;
    font-size: 18px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;

    background:
        rgba(3,7,9,.76);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.24);

    overflow: hidden;

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

.social-icon::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    opacity: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            var(--verde),
            var(--cyan)
        );

    transition:
        opacity .3s ease;
}

.social-label {
    position: absolute;
    right: 24px;

    min-width: 128px;

    padding:
        12px 34px 12px 18px;

    color:
        #eef7f9;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        1.4px;

    text-align:
        left;

    white-space:
        nowrap;

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

    border-radius:
        999px 0 0 999px;

    background:
        rgba(3,7,9,.88);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 12px 32px rgba(0,0,0,.22);

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateX(22px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        border-color .3s ease;
}

.social-item:hover {
    transform:
        translateX(-5px);
}

.social-item:hover .social-icon {
    color:
        #031014;

    border-color:
        transparent;

    transform:
        scale(1.07);

    box-shadow:
        0 0 26px
        rgba(8,189,232,.28);
}

.social-item:hover .social-icon::before {
    opacity:
        1;
}

.social-item:hover .social-label {
    opacity:
        1;

    visibility:
        visible;

    transform:
        translateX(0);

    border-color:
        rgba(8,189,232,.32);
}


/* Movimiento sutil individual */

.social-item:nth-child(1) .social-icon {
    animation:
        socialFloat
        4s ease-in-out infinite;
}

.social-item:nth-child(2) .social-icon {
    animation:
        socialFloat
        4s ease-in-out .45s infinite;
}

.social-item:nth-child(3) .social-icon {
    animation:
        socialFloat
        4s ease-in-out .9s infinite;
}

@keyframes socialFloat {

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

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

}


/* En tablets/celulares no ocupa espacio lateral */

@media(max-width: 991px) {

    .social-side {
        display:
            none;
    }

}


/* Respeta usuarios que prefieren menos movimiento */

@media(prefers-reduced-motion: reduce) {

    .social-item .social-icon {
        animation:
            none !important;
    }

}


/* ============================================================
   MEGA MENÚ CRL
   Se agrega al diseño aprobado sin modificar el resto del INDEX
============================================================ */

/* Menú principal un poco más grande visualmente */
.navbar {
    overflow: visible;
}

.navbar .container {
    position: relative;
}

.mega-navbar {
    gap: 17px;
}

.mega-navbar > .nav-item {
    position: static;
}

.mega-navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;

    min-height: 46px;

    font-size: 11px;
    letter-spacing: .25px;
}

.nav-icon {
    color: var(--cyan);
    font-size: 13px;
    opacity: .88;
    transition: color .3s ease, transform .3s ease;
}

.nav-chevron {
    margin-left: 1px;
    color: var(--verde);
    font-size: 9px;
    transition: transform .3s ease;
}

.has-mega-menu:hover > .mega-trigger .nav-chevron,
.has-mega-menu.mega-open > .mega-trigger .nav-chevron {
    transform: rotate(180deg);
}

.has-mega-menu:hover > .mega-trigger .nav-icon,
.has-mega-menu.mega-open > .mega-trigger .nav-icon {
    color: var(--verde);
    transform: translateY(-1px) scale(1.08);
}


/* ------------------------------------------------------------
   PANEL GENERAL
------------------------------------------------------------ */

.mega-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;

    z-index: 1200;

    padding: 24px;

    color: #fff;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(10,15,18,.97),
            rgba(3,6,8,.98)
        );

    box-shadow:
        0 28px 80px rgba(0,0,0,.48),
        0 0 0 1px rgba(8,189,232,.04) inset;

    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, 14px)
        scale(.985);

    transform-origin:
        top center;

    pointer-events: none;

    transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .28s ease;
}

.mega-menu::before {
    content: "";

    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--verde),
            var(--cyan),
            transparent
        );

    opacity: .85;
}

.mega-menu::after {
    content: "";

    position: absolute;
    width: 280px;
    height: 280px;

    right: -110px;
    top: -140px;

    pointer-events: none;

    border-radius: 50%;

    filter: blur(60px);

    background:
        rgba(8,189,232,.07);
}

.has-mega-menu:hover > .mega-menu,
.has-mega-menu:focus-within > .mega-menu,
.has-mega-menu.mega-open > .mega-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 4px)
        scale(1);

    pointer-events: auto;
}

.mega-menu-wide {
    width: min(1120px, calc(100vw - 42px));
}

.mega-menu-medium {
    width: min(790px, calc(100vw - 42px));
}

.mega-menu-small {
    width: min(470px, calc(100vw - 42px));
}


/* ------------------------------------------------------------
   CABECERA DEL MEGA MENÚ
------------------------------------------------------------ */

.mega-menu-head {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 20px;
    padding-bottom: 18px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mega-kicker {
    display: block;

    margin-bottom: 4px;

    color: var(--verde);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}

.mega-menu-head h3 {
    margin: 0;

    color: #fff;

    font-size: 20px;
    font-weight: 900;
}

.mega-menu-head p {
    max-width: 560px;

    margin: 7px 0 0;

    color: #919ca1;

    font-size: 10px;
    line-height: 1.65;
}

.mega-all-link {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 15px;

    color: #061014;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .7px;

    text-decoration: none;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--verde),
            var(--cyan)
        );
}

.mega-all-link:hover {
    color: #000;

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 25px
        rgba(8,189,232,.16);
}


/* ------------------------------------------------------------
   COLUMNAS
------------------------------------------------------------ */

.mega-grid {
    position: relative;
    z-index: 2;

    display: grid;
    gap: 15px;
}

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

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

.mega-column {
    min-width: 0;

    padding: 14px;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 17px;

    background:
        rgba(255,255,255,.022);
}

.mega-column-title {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 11px;
    padding: 4px 4px 12px;

    border-bottom:
        1px solid rgba(255,255,255,.07);
}

.mega-icon {
    width: 38px;
    height: 38px;

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

    flex: 0 0 38px;

    color: #041014;

    font-size: 17px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--verde),
            var(--cyan)
        );

    box-shadow:
        0 10px 24px rgba(8,189,232,.12);
}

.mega-column-title small {
    display: block;

    margin-bottom: 1px;

    color: #718086;

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.mega-column-title strong {
    color: #fff;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
}


/* ------------------------------------------------------------
   ITEMS
------------------------------------------------------------ */

.mega-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 48px;

    margin-top: 4px;
    padding: 8px 10px;

    color: #fff;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 13px;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.mega-item > i {
    width: 29px;
    height: 29px;

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

    flex: 0 0 29px;

    color: var(--cyan);

    font-size: 13px;

    border-radius: 9px;

    background:
        rgba(8,189,232,.08);

    transition:
        color .25s ease,
        transform .25s ease,
        background .25s ease;
}

.mega-item span {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.mega-item strong {
    overflow: hidden;

    color: #eaf0f2;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.mega-item small {
    margin-top: 2px;

    overflow: hidden;

    color: #7f8a8f;

    font-size: 8px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.mega-item em {
    margin-left: auto;

    padding: 4px 7px;

    color: #071014;

    font-size: 6px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .5px;

    border-radius: 999px;

    background: var(--verde);
}

.mega-item:hover {
    color: #fff;

    transform:
        translateX(4px);

    border-color:
        rgba(8,189,232,.18);

    background:
        linear-gradient(
            90deg,
            rgba(166,220,42,.07),
            rgba(8,189,232,.07)
        );
}

.mega-item:hover > i {
    color: #061014;

    transform:
        scale(1.08)
        rotate(-4deg);

    background:
        linear-gradient(
            135deg,
            var(--verde),
            var(--cyan)
        );
}


/* ------------------------------------------------------------
   TARJETAS DE SOLUCIONES/SERVICIOS
------------------------------------------------------------ */

.mega-feature {
    position: relative;

    min-height: 78px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 14px;

    color: #fff;
    text-decoration: none;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;

    background:
        rgba(255,255,255,.023);

    overflow: hidden;

    transition:
        transform .28s ease,
        border-color .28s ease,
        background .28s ease,
        box-shadow .28s ease;
}

.mega-feature::after {
    content: "";

    position: absolute;
    right: -30px;
    bottom: -35px;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    background:
        rgba(8,189,232,.06);

    filter: blur(18px);

    transition:
        transform .3s ease,
        background .3s ease;
}

.mega-feature > i {
    width: 42px;
    height: 42px;

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

    flex: 0 0 42px;

    color: var(--cyan);
    font-size: 18px;

    border-radius: 13px;

    background:
        rgba(8,189,232,.075);

    transition:
        color .3s ease,
        background .3s ease,
        transform .3s ease;
}

.mega-feature span {
    display: flex;
    flex-direction: column;
}

.mega-feature strong {
    color: #fff;

    font-size: 10px;
    font-weight: 900;
}

.mega-feature small {
    margin-top: 3px;

    color: #7f8a8f;

    font-size: 8px;
}

.mega-feature:hover {
    color: #fff;

    transform:
        translateY(-4px);

    border-color:
        rgba(8,189,232,.24);

    background:
        linear-gradient(
            135deg,
            rgba(166,220,42,.055),
            rgba(8,189,232,.07)
        );

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

.mega-feature:hover > i {
    color: #061014;

    transform:
        scale(1.07)
        rotate(-4deg);

    background:
        linear-gradient(
            135deg,
            var(--verde),
            var(--cyan)
        );
}

.mega-feature:hover::after {
    transform:
        scale(1.35);

    background:
        rgba(166,220,42,.08);
}


/* ============================================================
   RESPONSIVE MEGA MENÚ
============================================================ */

@media(max-width: 1250px) {

    .mega-navbar {
        gap: 11px;
    }

    .mega-navbar .nav-link {
        font-size: 10px;
    }

    .nav-icon {
        display: none;
    }

}


@media(max-width: 991px) {

    .mega-navbar {
        width: 100%;
        gap: 0;
    }

    .mega-navbar > .nav-item {
        width: 100%;
        position: relative;

        border-bottom:
            1px solid rgba(255,255,255,.055);
    }

    .mega-navbar .nav-link {
        min-height: 48px;

        display: flex;
        align-items: center;

        font-size: 11px;
    }

    .nav-icon {
        display: inline-block;
    }

    .nav-chevron {
        margin-left: auto;
        margin-right: 3px;

        font-size: 10px;
    }

    .mega-menu,
    .mega-menu-wide,
    .mega-menu-medium,
    .mega-menu-small {
        position: static;

        width: 100%;

        margin: 0;
        padding: 0 0 12px;

        border: none;
        border-radius: 0;

        background: transparent;
        box-shadow: none;
        backdrop-filter: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        pointer-events: auto;

        display: none;
    }

    .mega-menu::before,
    .mega-menu::after {
        display: none;
    }

    .has-mega-menu.mega-open > .mega-menu {
        display: block;
    }

    .mega-menu-head {
        align-items: flex-start;

        margin: 2px 0 12px;
        padding: 13px;

        border: 1px solid rgba(255,255,255,.06);
        border-radius: 14px;

        background:
            rgba(255,255,255,.025);
    }

    .mega-menu-head h3 {
        font-size: 15px;
    }

    .mega-menu-head p {
        display: none;
    }

    .mega-all-link {
        padding: 8px 11px;
        font-size: 7px;
    }

    .mega-grid-3,
    .mega-grid-2 {
        grid-template-columns: 1fr;
    }

    .mega-column {
        padding: 10px;
    }

    .mega-item {
        min-height: 46px;
    }

    .mega-feature {
        min-height: 66px;
    }

}


@media(max-width: 575px) {

    .mega-menu-head {
        flex-direction: column;
        gap: 10px;
    }

    .mega-all-link {
        width: 100%;
        justify-content: center;
    }

    .mega-item strong,
    .mega-feature strong {
        white-space: normal;
    }

    .mega-item small,
    .mega-feature small {
        white-space: normal;
    }

}


/* ============================================================
   AJUSTE BOTÓN CONTACTO DEL MENÚ
   Más ovalado, moderno y coherente con los demás botones
============================================================ */

.nav-contacto {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;

    padding:
        10px 20px !important;

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

    border-radius:
        999px;

    background:
        rgba(255,255,255,.025);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.015);

    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.nav-contacto:hover {
    color:
        #031014 !important;

    border-color:
        transparent;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            var(--verde),
            var(--cyan)
        );

    transform:
        translateY(-3px)
        scale(1.025);

    box-shadow:
        0 12px 28px
        rgba(8,189,232,.20);
}

.nav-contacto .nav-icon {
    color:
        var(--cyan);

    transition:
        color .3s ease,
        transform .3s ease;
}

.nav-contacto:hover .nav-icon {
    color:
        #031014;

    transform:
        translateX(-1px)
        scale(1.08);
}


/* En móvil conserva forma ovalada y buen ancho */

@media(max-width: 991px) {

    .nav-contacto {
        width:
            auto !important;

        align-self:
            flex-start;

        margin-top:
            10px;

        padding:
            11px 20px !important;

        border-radius:
            999px;

        text-align:
            center;
    }

}


/* ============================================================
   FIX DE NAVEGACIÓN MEGA MENÚ
   Evita que Software / Academia / Nosotros desaparezcan
   al mover el cursor desde el menú hacia el desplegable.
============================================================ */

@media(min-width: 992px) {

    /*
       El panel queda ligeramente superpuesto al área inferior
       de la barra de navegación, eliminando cualquier hueco
       donde se pudiera perder el :hover.
    */
    .mega-menu {
        top: calc(100% - 12px);

        transform:
            translate(-50%, 0)
            scale(.985);

        padding-top: 28px;
    }

    .has-mega-menu:hover > .mega-menu,
    .has-mega-menu:focus-within > .mega-menu,
    .has-mega-menu.mega-open > .mega-menu {
        transform:
            translate(-50%, 0)
            scale(1);
    }


    /*
       Zona invisible de seguridad entre el trigger y el panel.
       Esto amplía el corredor del mouse sin alterar el diseño.
    */
    .mega-menu .mega-hover-bridge {
        position: absolute;

        left: 0;
        right: 0;
        top: -18px;

        height: 24px;

        pointer-events: auto;

        background: transparent;
    }


    /*
       El propio LI conserva hover/focus mientras se navega
       dentro del panel desplegable.
    */
    .has-mega-menu {
        position: static;
    }

    .has-mega-menu:hover,
    .has-mega-menu:focus-within {
        z-index: 1250;
    }


    /*
       Los menús pequeños de Academia y Nosotros quedan centrados
       pero con suficiente zona activa para llegar con el mouse.
    */
    .mega-menu-small {
        min-width: 430px;
    }


    /*
       Evita que la animación de cierre sea demasiado rápida
       al cruzar del texto al panel.
    */
    .mega-menu {
        transition:
            opacity .18s ease,
            visibility .18s ease,
            transform .22s ease;
    }

}


/* En móvil se mantiene intacto el acordeón existente. */
@media(max-width: 991px) {

    .mega-menu .mega-hover-bridge {
        display: none;
    }

}


/* ============================================================
   FIX POSICIÓN DE ACADEMIA Y NOSOTROS
   Cada desplegable aparece debajo de SU propio botón.
============================================================ */

@media(min-width: 992px) {

    /*
       Los mega menús grandes continúan centrados como antes.
       Solo Academia y Nosotros cambian su punto de anclaje.
    */
    .mega-navbar > .mega-anchor-academia,
    .mega-navbar > .mega-anchor-nosotros {
        position: relative;
    }


    /* ACADEMIA: centrado justo debajo de ACADEMIA */
    .mega-anchor-academia > .mega-menu-small {
        left: 50%;
        right: auto;

        top: calc(100% - 8px);

        transform:
            translate(-50%, 0)
            scale(.985);

        transform-origin:
            top center;
    }

    .mega-anchor-academia:hover > .mega-menu-small,
    .mega-anchor-academia:focus-within > .mega-menu-small,
    .mega-anchor-academia.mega-open > .mega-menu-small {
        transform:
            translate(-50%, 0)
            scale(1);
    }


    /* NOSOTROS: alineado al borde derecho del botón NOSOTROS */
    .mega-anchor-nosotros > .mega-menu-small {
        left: auto;
        right: 0;

        top: calc(100% - 8px);

        transform:
            translate(0, 0)
            scale(.985);

        transform-origin:
            top right;
    }

    .mega-anchor-nosotros:hover > .mega-menu-small,
    .mega-anchor-nosotros:focus-within > .mega-menu-small,
    .mega-anchor-nosotros.mega-open > .mega-menu-small {
        transform:
            translate(0, 0)
            scale(1);
    }


    /*
       Mantener un corredor continuo entre el botón y su submenu.
       Esto evita que se cierre al bajar el cursor.
    */
    .mega-anchor-academia > .mega-menu-small .mega-hover-bridge,
    .mega-anchor-nosotros > .mega-menu-small .mega-hover-bridge {
        top: -20px;
        height: 28px;
    }

}


/* En móvil se mantiene exactamente el acordeón existente */
@media(max-width: 991px) {

    .mega-navbar > .mega-anchor-academia,
    .mega-navbar > .mega-anchor-nosotros {
        position: relative;
    }

}


/* ============================================================
   NUEVO HERO CON VIDEO
   Mantiene el diseño general del INDEX, cambia solo el banner.
============================================================ */

.hero-video-layout {
    position: relative;
    min-height: 820px;
    overflow: hidden;
    background: #030506;
}

.hero-video-layout .hero-dark-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(circle at 72% 42%, rgba(8,189,232,.10), transparent 30%),
        radial-gradient(circle at 26% 70%, rgba(166,220,42,.055), transparent 28%),
        linear-gradient(135deg, #020304 0%, #050708 58%, #071014 100%);
}

.hero-video-layout .hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .08;

    background-image:
        linear-gradient(rgba(8,189,232,.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8,189,232,.22) 1px, transparent 1px);

    background-size: 78px 78px;

    -webkit-mask-image:
        linear-gradient(90deg, black, rgba(0,0,0,.8) 55%, transparent 100%);

    mask-image:
        linear-gradient(90deg, black, rgba(0,0,0,.8) 55%, transparent 100%);
}

.hero-orb {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(85px);
}

.hero-orb-a {
    width: 390px;
    height: 390px;
    right: 5%;
    top: 10%;
    background: rgba(8,189,232,.09);
    animation: heroOrbA 8s ease-in-out infinite alternate;
}

.hero-orb-b {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -70px;
    background: rgba(166,220,42,.055);
    animation: heroOrbB 9s ease-in-out infinite alternate;
}

@keyframes heroOrbA {
    to {
        transform: translate(-28px, 24px) scale(1.08);
    }
}

@keyframes heroOrbB {
    to {
        transform: translate(38px, -20px) scale(1.10);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .18;

    background:
        radial-gradient(circle at 14% 25%, var(--verde) 0 1px, transparent 1.8px),
        radial-gradient(circle at 35% 76%, var(--cyan) 0 1px, transparent 1.8px),
        radial-gradient(circle at 69% 17%, var(--cyan) 0 1px, transparent 1.8px),
        radial-gradient(circle at 82% 68%, var(--verde) 0 1px, transparent 1.8px),
        radial-gradient(circle at 55% 52%, #fff 0 1px, transparent 1.8px);

    background-size:
        320px 320px,
        410px 410px,
        370px 370px,
        460px 460px,
        520px 520px;

    animation:
        particleDrift 18s linear infinite;
}

@keyframes particleDrift {
    to {
        background-position:
            70px 40px,
            -60px 80px,
            45px -55px,
            -80px -35px,
            100px 70px;
    }
}

.hero-video-layout .hero-content {
    position: relative;
    z-index: 5;
}

.hero-video-layout h1 {
    max-width: 720px;
}

.hero-video-layout p {
    max-width: 650px;
}


/* ------------------------------------------------------------
   VIDEO STAGE
------------------------------------------------------------ */

.hero-video-stage {
    position: relative;
    max-width: 690px;
    margin-left: auto;
    padding: 26px 22px 30px 0;
    transform-style: preserve-3d;
}

.hero-video-card {
    position: relative;
    z-index: 3;

    min-height: 440px;

    overflow: hidden;

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

    border-radius:
        24px;

    background:
        #081015;

    box-shadow:
        0 35px 90px rgba(0,0,0,.48),
        0 0 50px rgba(8,189,232,.07);

    isolation: isolate;
}

.hero-video-frame {
    position: absolute;
    z-index: 1;

    top: 52px;
    right: 0;
    bottom: 0;
    left: 32px;

    border:
        1px solid rgba(8,189,232,.36);

    border-radius:
        24px;
}

.hero-video-frame::before {
    content: "";

    position: absolute;

    left: -1px;
    top: 35px;

    width: 3px;
    height: 110px;

    border-radius: 99px;

    background:
        linear-gradient(
            var(--verde),
            var(--cyan)
        );

    box-shadow:
        0 0 20px rgba(8,189,232,.4);
}

.hero-video-glow {
    position: absolute;
    z-index: 0;

    width: 390px;
    height: 390px;

    right: -80px;
    top: 30px;

    border-radius: 50%;

    background:
        rgba(8,189,232,.12);

    filter:
        blur(70px);
}

.hero-video {
    width: 100%;
    height: 440px;

    display: block;

    object-fit: cover;
    object-position: center;

    background:
        #080b0d;

    filter:
        brightness(.82)
        saturate(.92)
        contrast(1.04);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(2,5,6,.62),
            transparent 50%
        ),
        linear-gradient(
            90deg,
            rgba(2,5,6,.20),
            transparent 40%
        );
}


/* ------------------------------------------------------------
   VIDEO BADGES
------------------------------------------------------------ */

.hero-video-badge {
    position: absolute;
    z-index: 7;

    display: flex;
    align-items: center;
    gap: 11px;

    padding:
        12px 15px;

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

    border-radius:
        14px;

    color:
        white;

    background:
        rgba(3,7,9,.74);

    backdrop-filter:
        blur(12px);

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

    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease;
}

.hero-video-badge i {
    display: flex;
    width: 35px;
    height: 35px;

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

    flex: 0 0 35px;

    color:
        var(--cyan);

    font-size:
        18px;

    border-radius:
        11px;

    background:
        rgba(8,189,232,.08);
}

.hero-video-badge span {
    display: flex;
    flex-direction: column;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        .7px;
}

.hero-video-badge small {
    margin-bottom: 2px;

    color:
        var(--verde);

    font-size:
        7px;

    letter-spacing:
        1.4px;
}

.hero-video-badge-top {
    top: 22px;
    left: 20px;
}

.hero-video-badge-bottom {
    right: 20px;
    bottom: 22px;
}

.hero-video-card:hover .hero-video-badge-top {
    transform:
        translate(5px, 4px);
}

.hero-video-card:hover .hero-video-badge-bottom {
    transform:
        translate(-5px, -4px);
}


/* ------------------------------------------------------------
   SCAN LINE
------------------------------------------------------------ */

.hero-scan-line {
    position: absolute;
    z-index: 5;

    left: 0;
    right: 0;
    top: -20%;

    height: 2px;

    pointer-events: none;

    opacity: .0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--verde),
            var(--cyan),
            transparent
        );

    box-shadow:
        0 0 18px rgba(8,189,232,.50);

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

@keyframes heroScan {

    0% {
        top: 8%;
        opacity: 0;
    }

    12% {
        opacity: .75;
    }

    55% {
        opacity: .75;
    }

    70%,
    100% {
        top: 86%;
        opacity: 0;
    }

}


/* ------------------------------------------------------------
   VIDEO CONTROL
------------------------------------------------------------ */

.hero-video-control {
    position: absolute;
    z-index: 12;

    right: 18px;
    top: 18px;

    width: 44px;
    height: 44px;

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

    color:
        white;

    font-size:
        18px;

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

    border-radius:
        50%;

    background:
        rgba(3,7,9,.62);

    backdrop-filter:
        blur(10px);

    cursor:
        pointer;

    transition:
        transform .3s ease,
        color .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.hero-video-control:hover {
    color:
        #031014;

    border-color:
        transparent;

    transform:
        scale(1.08);

    background:
        linear-gradient(
            135deg,
            var(--verde),
            var(--cyan)
        );
}


/* ------------------------------------------------------------
   CAPTION
------------------------------------------------------------ */

.hero-video-caption {
    position: relative;
    z-index: 4;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin:
        16px 0 0 30px;

    color:
        #869398;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.5px;
}

.hero-live-dot {
    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--verde);

    box-shadow:
        0 0 0 0 rgba(166,220,42,.45);

    animation:
        liveDot 1.8s infinite;
}

@keyframes liveDot {

    70% {
        box-shadow:
            0 0 0 8px rgba(166,220,42,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(166,220,42,0);
    }

}


/* ------------------------------------------------------------
   RESPONSIVE NUEVO HERO
------------------------------------------------------------ */

@media(max-width: 991px) {

    .hero-video-layout {
        min-height:
            auto;

        padding:
            120px 0 85px;
    }

    .hero-video-layout .min-vh-100 {
        min-height:
            auto !important;
    }

    .hero-video-stage {
        max-width:
            760px;

        margin:
            55px auto 0;
    }

}


@media(max-width: 767px) {

    .hero-video-layout {
        padding:
            105px 0 70px;
    }

    .hero-video-stage {
        padding:
            15px 0 20px;
    }

    .hero-video-frame {
        display:
            none;
    }

    .hero-video-card {
        min-height:
            330px;

        border-radius:
            18px;
    }

    .hero-video {
        height:
            330px;
    }

    .hero-video-badge {
        padding:
            9px 11px;
    }

    .hero-video-badge span {
        font-size:
            8px;
    }

    .hero-video-badge i {
        width:
            30px;
        height:
            30px;

        flex-basis:
            30px;

        font-size:
            15px;
    }

    .hero-video-caption {
        margin-left:
            8px;
    }

}


@media(max-width: 480px) {

    .hero-video-card {
        min-height:
            270px;
    }

    .hero-video {
        height:
            270px;
    }

    .hero-video-badge-bottom {
        display:
            none;
    }

    .hero-video-badge-top {
        left:
            12px;
        top:
            12px;
    }

    .hero-video-control {
        right:
            12px;
        top:
            12px;

        width:
            40px;
        height:
            40px;
    }

}
