/* ==========================================================
   0. RESET & VARIABLES
========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: #fff;
}

/* ==========================================================
   1. NAVBAR FLOTANTE
========================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1400px;
    background: #1E293B;
    padding: 18px 40px;
    border-radius: 20px;
    z-index: 1000;

    box-shadow: 0 12px 40px rgba(0, 0, 0, .52),
        0 6px 20px rgba(0, 0, 0, .13);
}

.navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.navbar-left {
    display: flex;
    gap: 35px;
    justify-content: flex-start;
}

.navbar-left a {
    position: relative;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .7px;
    padding-bottom: 4px;
    transition: color .25s ease;
}

.navbar-left a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    height: 3px;
    width: 0;
    background: #BACA00;
    border-radius: 2px;
    transition: width .3s ease;
}

.navbar-left a:hover {
    color: #BACA00;
}

.navbar-left a:hover::after {
    width: 100%;
}

.navbar-logo {
    display: flex;
    justify-content: center;
}

.navbar-logo img {
    height: 40px;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
}

/* Botón Demo */
.btn-demo {
    background: #BACA00;
    color: #fff;
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 0 6px rgba(186, 202, 0, .4);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn-demo:hover {
    transform: scale(1.06);
    opacity: .95;
    box-shadow: 0 0 10px rgba(186, 202, 0, .55);
}

/* ----------------------------------------------------------
   Navbar Responsive
---------------------------------------------------------- */
@media (max-width: 900px) {
    .navbar-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .navbar-left,
    .navbar-right {
        justify-content: center;
    }
}

/* ==========================================================
   HERO / PORTADA
========================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 75.67vh;
    padding: 122px 5% 0;
    background: #1E293B;
    color: #fff;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Textos */
.hero-text {
    z-index: 2;
    max-width: 500px;
    margin-left: 6%;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.hero-title .highlight {
    color: #b6d400;
    /* "DE PROCESOS" */
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #cfd6dd;
    margin: 0 0 2rem;
}

/* Botones laterales */
.hero-buttons {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    width: 240px;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
}

.btn-primary {
    background: #BACA00;
    color: #fff;
    box-shadow: 0 4px 15px rgba(185, 202, 0, .22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(185, 202, 0, .36);
}

.btn-secondary {
    background: #1E293B;
    color: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .5);
}

/* Canvas de nodos de fondo */
.hero-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#nodeCanvas {
    width: 100%;
    height: 100%;
    display: block;
}


html {
    scroll-behavior: smooth;
}

/* ----------------------------------------------------------
   Hero Responsive
---------------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        padding: 100px 5% 80px;
    }

    .hero-text {
        margin-left: 0;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-buttons {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 260px;
    }
}






/* ==========================
    SERVICIOS
========================== */

.servicios-icons {
    display: flex;
    overflow: hidden;
    padding: 20px 0 40px;
    max-width: 1100px;
    margin: auto;
}

.servicios-slider {
    display: flex;
    gap: 32px;
    animation: scroll-loop 40s linear infinite;
    width: max-content;
}

@keyframes scroll-loop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25%);
    }
}


.servicios-icons:hover .servicios-slider {
    animation-play-state: paused;
}



.servicio-btn {
    flex: 0 0 var(--item-width);
    background: #f3f4f6;
    border: 3px solid transparent;
    border-radius: 20px;

    padding: 20px 14px;
    text-align: center;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 140px;

    transition: border-color 0s, background .3s ease, transform .3s ease;
}



/* Contenido - PAUSA AL SELECCIONAR un botón */
.servicios-icons.paused .servicios-slider {
    animation-play-state: paused;
}



/* Contenido */
.servicios-contenido {
    max-width: 1200px;
    margin: auto;
}

.servicio-panel {
    display: none;
    gap: 70px;
    align-items: center;
    animation: fade .4s ease;
}

.servicio-panel.active {
    display: grid;
    grid-template-columns: 1fr 480px;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-destacado-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
}

.highlight {
    color: #b6d400;
}

.servicio-beneficios {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servicio-beneficios li {
    font-size: 1.2rem;
    font-weight: 700;
    padding-left: 30px;
    position: relative;
}

.servicio-beneficios li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 3px;
    background: #BACA00;
    transform: translateY(-50%);
}

.servicio-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

/* Responsive */
@media (max-width: 900px) {
    .servicio-panel.active {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


:root {
    --item-width: 150px;
    --item-gap: 32px;
}

.servicios {
    padding: 120px 5% 90px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    color: #1E293B;
}

/* Header */
.servicios-header {
    text-align: center;
    margin-bottom: 60px;
}

.servicios-title {
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.servicios-subtitle {
    font-size: 1.15rem;
    color: #6b7280;
}

/* Carrusel - Contenedor principal para el overflow y centrado */
.servicios-icons {
    display: flex;
    overflow: hidden;
    padding: 20px 0 40px;
    max-width: 1100px;
    margin: auto;
}


.servicios-slider {
    display: flex;
    gap: var(--item-gap);
    cursor: default;
    transition: transform 0.5s ease-out;
}



/* PAUSA AL HOVER */
.servicios-icons:hover .servicios-slider {
    animation-play-state: paused;
}

/* Items del Carrusel */
.servicio-btn {
    flex: 0 0 var(--item-width);
    background: #f3f4f6;
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;

    /* SOLUCIÓN DE DESTELLO: El borde cambia instantáneamente (0s), el resto suave */
    transition: border-color 0s, background .3s ease, transform .3s ease;
}

.servicio-btn img {
    height: 52px;
    margin-bottom: 12px;
}

.servicio-btn span {
    font-size: 1rem;
    font-weight: 700;
}

/* Activo (Para el borde verde) */
.servicio-btn.active {
    border-color: #BACA00;
    background: #fff;
    transform: scale(1.08);
}


.no-transition .servicio-btn {
    transition: none !important;
}

.servicios-icons.paused .servicios-slider {
    animation-play-state: paused;
}

/* Contenido */

.servicios-contenido {
    max-width: 1200px;
    margin: auto;
}

.servicio-panel {
    display: none;
    gap: 70px;
    align-items: center;
    animation: fade .4s ease;
}

.servicio-panel.active {
    display: grid;
    grid-template-columns: 1fr 480px;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-destacado-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
}

.highlight {
    color: #b6d400;
}

.servicio-beneficios {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servicio-beneficios li {
    font-size: 1.2rem;
    font-weight: 700;
    padding-left: 30px;
    position: relative;
}

.servicio-beneficios li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 3px;
    background: #BACA00;
    transform: translateY(-50%);
}

.servicio-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}


/* ==========================================================
    RESPONSIVE SERVICIOS
========================================================== */
@media (max-width: 900px) {
    .servicio-panel.active {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* ==========================================================
    EXPERIENCIA POR SECTORES
========================================================== */

.sectores {
    position: relative;
    background: #fff;
    padding-bottom: 120px;
}

/* Header */
.sectores-header {
    position: relative;
    height: 320px;
    overflow: hidden;
    z-index: 1;
}

.sectores-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Título */
.sectores-title {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;

    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-align: center;

    z-index: 2;
    pointer-events: none;
}

/* Cards */
.sectores-cards {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: -90px auto 0;
    padding: 0 5%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

/* Card individual */
.sector-card {
    background: #fff;
    padding: 36px 32px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);

    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Icono */
.sector-icon img {
    height: 56px;
}

/* Título */
.sector-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1E293B;
}

/* Texto */
.sector-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

/* ==========================
   RESPONSIVE EXPERIANCIA POR SECTORES
========================== */

/* Pantallas medianas */
@media (max-width: 1100px) {
    .sectores-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celulares */
@media (max-width: 600px) {
    .sectores-cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 arriba + 2 abajo */
        margin-top: -60px;
    }

    .sectores-title {
        font-size: 2.2rem;
        padding: 0 20px;
    }
}

/* Celulares muy estrechos */
@media (max-width: 420px) {
    .sectores-cards {
        grid-template-columns: 1fr;
        /* 1 por fila */
    }
}




/* ==========================
    NUESTROS CLIENTES
========================== */

.clientes {
    padding: 120px 0;
    background: #fff;
}

/* Título */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Contenedor principal */
.clientes-logos {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;

    border-top: 7px solid #b6d400;
    border-bottom: 7px solid #b6d400;

    overflow: hidden;
}

/* Fondo */
.clientes-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Fila (contenedor de la pista) */
.logos-row {
    position: relative;
    z-index: 2;

    height: 90px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 15px;
    /* Separación entre filas si hay varias */
}

/* Pista (contenedor que se anima) */
.logos-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scroll-left 35s linear infinite;

    /* OPTIMIZACIÓN CLAVE: Reduce el salto y mejora el rendimiento */
    will-change: transform;
}

/* Dirección inversa */
.logos-row.reverse .logos-track {
    animation-name: scroll-right;
}

/* Logos */
.logos-track img {
    height: 65px;
    object-fit: contain;
    opacity: .9;

    max-width: 250px;
}

/* Animaciones */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .clientes-logos {
        max-width: 92%;
    }

    .logos-track {
        gap: 40px;
    }

    .logos-track img {
        height: 46px;
    }
}



/* ==========================================================
   FORMULARIO DE DEMO 
========================================================== */

.form-section {
    position: relative;
    padding: 120px 5%;
    overflow: hidden;
}

.form-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.form-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.form-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.form-title span {
    color: #BACA00;
}

.form-subtitle {
    font-size: 1.05rem;
    color: #cfd6dd;
    max-width: 560px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .35),
        0 8px 20px rgba(0, 0, 0, .18);
}

.form-card iframe {
    width: 100%;
    height: 820px;
    border: none;
    border-radius: 12px;
}

.terms-notice {
    margin-top: 18px;
    font-size: 0.85rem;
    color: #cfd6dd;
    text-align: center;
    line-height: 1.5;
}

.terms-notice a {
    color: #BACA00;
    text-decoration: underline;
    font-weight: 600;
}

.terms-notice a:hover {
    opacity: 0.85;
}

/* ==========================
   RESPONSIVE FORM DEMO
========================== */

@media (max-width: 768px) {
    .form-title {
        font-size: 2.2rem;
    }

    .form-card {
        padding: 14px;
    }

    .form-card iframe {
        height: 900px;
    }
}


/* ==========================================================
   FOOTER
========================================================== */

.footer {
    background: #ffffff;
    color: #1E293B;
    padding-top: 80px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 5% 60px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

/* Marca */

.footer-logo {
    height: 44px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: .95rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 360px;
}

.footer-cert {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .9rem;
    color: #4b5563;
}


.footer-cert img {
    height: 68px;
    object-fit: contain;
}

/* links */

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1E293B;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: .95rem;
    transition: color .25s ease;
}

.footer-links a:hover {
    color: #BACA00;
}

/* contacto */

.footer-contact p {
    font-size: .95rem;
    margin-bottom: 12px;
    color: #4b5563;
}



.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 20px 5%;
    text-align: center;
    font-size: .85rem;
    color: #6b7280;
}

/* --------------------------
   Responsive footer
-------------------------- */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-description {
        margin: auto;
    }

    .footer-cert {
        justify-content: center;
    }
}