* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ==========================================
   ALERTA DE ÉXITO
   ========================================== */
.alert-success-custom {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999999 !important;
    animation: slideInRight 0.5s ease;
    max-width: 500px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.alert-success-custom .alert-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.alert-success-custom .alert-content {
    flex: 1;
}

.alert-success-custom .alert-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.alert-success-custom .alert-message {
    font-size: 14px;
    opacity: 0.95;
}

.alert-success-custom .alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.alert-success-custom .alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
    .alert-success-custom {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 16px 20px;
    }
    
    .alert-success-custom .alert-title {
        font-size: 16px;
    }
    
    .alert-success-custom .alert-message {
        font-size: 13px;
    }
}
html {
    scroll-behavior: smooth;
}
body {
    background: #fff;
}
/****************************
HEADER
****************************/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: .4s;
    padding: 18px 0;
}
header.scrolled {
    background: #20242c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    text-decoration: none;
}
.logo img {
    width: auto;
    height: 7vh;
    min-height: 50px;
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/* Extra large screens - bigger logo */
@media (min-width: 1400px) {
    .logo img {
        height: 8vh;
        min-height: 60px;
        max-height: 80px;
        width: auto;
    }
    .logo {
        font-size: clamp(18px, 2vw, 22px);
    }
    header .container span {
        font-size: clamp(24px, 2.5vw, 28px);
    }
}
header .container span {
    font-size: clamp(22px, 2.5vw, 26px);
    font-weight: 700;
}
header .container span .highlight {
    color: #ff6b00;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}
nav a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    transition: .3s;
}
nav a:hover {
    color: #ff6b00;
}
.btn-demo {
    background: #ff6b00;
    padding: 12px 25px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}
.btn-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, .4);
}
/****************************
HERO
****************************/
.hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    top: 0;
}

/* ==========================================
   SLIDER
   ========================================== */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 1.3s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .22);
    z-index: 1;
}

/* ==========================================
   CONTENIDO DEL HERO
   ========================================== */
.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
}

.tag {
    display: inline-block;
    padding: 10px 18px;
    background: #ff6b00;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
}

.hero h1 {
    font-size: 80px;
    line-height: 1.05;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero h1 span {
    color: #ff6b00;
}

.hero p {
    max-width: 620px;
    width: 100%;
    font-size: 21px;
    line-height: 36px;
    color: #d8d8d8;
    margin-bottom: 35px;
}

/* Large screens - laptop L (1440px) */
@media (min-width: 1400px) and (max-width: 1699px) {
    .hero h1 {
        font-size: 82px;
    }
    
    .hero p {
        font-size: 21px;
        line-height: 36px;
        max-width: 650px;
    }
    
    .tag {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .features div {
        font-size: 16px;
    }
}

/* Extra extra large screens (>= 1700px - 2K, 4K) */
@media (min-width: 1700px) {
    .hero h1 {
        font-size: 92px;
    }
    
    .hero p {
        font-size: 24px;
        line-height: 40px;
        max-width: 750px;
    }
    
    .tag {
        font-size: 17px;
        padding: 13px 24px;
    }
    
    .features div {
        font-size: 19px;
    }
}

.buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff6b00;
    padding: 18px 34px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 17px;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-4px);
}

.btn-secondary {
    padding: 18px 34px;
    border: 1px solid white;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-size: 17px;
    transition: .3s;
    display: inline-flex;
    align-items: center;
}

/* Large screens - laptop L (1440px) */
@media (min-width: 1400px) and (max-width: 1699px) {
    .btn-primary, .btn-secondary {
        padding: 18px 36px;
        font-size: 17px;
    }
}

/* Extra extra large screens (>= 1700px - 2K, 4K) */
@media (min-width: 1700px) {
    .btn-primary, .btn-secondary {
        padding: 22px 42px;
        font-size: 18px;
    }
}

.btn-secondary:hover {
    background: white;
    color: #222;
}

.features {
    display: flex;
    gap: 40px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.features div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
}

.features i {
    color: #ff6b00;
    font-size: 18px;
}

/* ==========================================
   HERO RESPONSIVE - VERSIÓN MEJORADA
   ========================================== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 52px;
    }
    
    .hero p {
        font-size: 17px;
        line-height: 28px;
        max-width: 500px;
    }
    
    .hero-content {
        padding: 70px 0 30px;
        min-height: 75vh;
    }
}

/* Tablets pequeñas */
@media (max-width: 820px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .hero-content {
        padding: 80px 0 20px;
        min-height: 70vh;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
        line-height: 26px;
        max-width: 450px;
        margin-bottom: 25px;
    }
    
    .tag {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 15px;
    }
    
    .features {
        gap: 20px;
    }
    
    .features div {
        font-size: 14px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .hero-content {
        padding: 70px 0 20px;
        min-height: 65vh;
        justify-content: center;
        width: 92%;
    }
    
    .hero h1 {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 12px;
    }
    
    .hero h1 br {
        display: block;
    }
    
    .hero p {
        font-size: 15px;
        line-height: 24px;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .tag {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 12px;
    }
    
    .buttons {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 22px;
        font-size: 14px;
    }
    
    .features {
        gap: 16px;
    }
    
    .features div {
        font-size: 13px;
    }
    
    .features i {
        font-size: 15px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .hero-content {
        padding: 60px 0 15px;
        min-height: 60vh;
        justify-content: center;
        width: 94%;
    }
    
    .hero h1 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .hero h1 br {
        display: block;
    }
    
    .hero p {
        font-size: 13px;
        line-height: 20px;
        max-width: 100%;
        margin-bottom: 16px;
    }
    
    .tag {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 10px;
    }
    
    .buttons {
        gap: 10px;
        margin-bottom: 16px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 30px;
    }
    
    .features {
        gap: 12px;
        margin-top: 5px;
    }
    
    .features div {
        font-size: 11px;
        gap: 5px;
    }
    
    .features i {
        font-size: 13px;
    }
}

/* Móviles muy pequeños (menos de 380px) */
@media (max-width: 380px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .hero-content {
        padding: 55px 0 10px;
        min-height: 55vh;
        justify-content: center;
        width: 96%;
    }
    
    .hero h1 {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    
    .hero p {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 14px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 25px;
    }
    
    .features div {
        font-size: 10px;
    }
    
    .features i {
        font-size: 11px;
    }
}

/* Móviles de altura pequeña (pantallas pequeñas en altura) */
@media (max-height: 700px) {
    .hero-content {
        min-height: 50vh;
        padding: 50px 0 10px;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .hero p {
        font-size: 13px;
        line-height: 20px;
        margin-bottom: 12px;
    }
    
    .tag {
        font-size: 10px;
        padding: 4px 12px;
        margin-bottom: 8px;
    }
    
    .buttons {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .features {
        gap: 12px;
    }
    
    .features div {
        font-size: 11px;
    }
}

@media (max-height: 600px) {
    .hero-content {
        min-height: 45vh;
        padding: 40px 0 5px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 12px;
        line-height: 18px;
    }
}
/*==================================================
        FUNCIONALIDADES PRINCIPALES
===================================================*/
.features-section {
    background: #f8f9fb;
    padding: 120px 0;
}
.features-section .container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*-----------------------------------
    TITULOS
------------------------------------*/
.section-header {
    text-align: center;
    margin-bottom: 70px;
}
.section-tag {
    display: inline-block;
    color: #1d2b36;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.section-tag .highlight {
    color: #ff6b00;
}
.section-header h2 {
    font-size: 46px;
    color: #1d2b36;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}
.section-header p {
    color: #7b7b7b;
    font-size: 18px;
    max-width: 700px;
    margin: auto;
    line-height: 30px;
}
/*-----------------------------------
        GRID
------------------------------------*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}
/*-----------------------------------
        TARJETAS
------------------------------------*/
.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px 25px;
    transition: .35s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ececec;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}
/* Barra superior */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ff6b00;
    transform: scaleX(0);
    transition: .35s;
}
/* Hover */
.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, .12);
    border-color: #ff6b00;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
/*-----------------------------------
        ICONO
------------------------------------*/
.feature-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #fff4ed;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
    transition: .35s;
}
.feature-icon i {
    font-size: 34px;
    color: #ff6b00;
}
.feature-card:hover .feature-icon {
    background: #ff6b00;
    transform: rotate(8deg) scale(1.05);
}
.feature-card:hover .feature-icon i {
    color: white;
}
/*-----------------------------------
        TITULO
------------------------------------*/
.feature-card h3 {
    font-size: 22px;
    color: #1d2b36;
    margin-bottom: 15px;
    font-weight: 700;
}
/*-----------------------------------
    DESCRIPCION
------------------------------------*/
.feature-description {
    color: #666;
    font-size: 15px;
    line-height: 27px;
    margin-bottom: 22px;
}
/*-----------------------------------
        LISTA
------------------------------------*/
.feature-card ul {
    list-style: none;
    padding: 0;
}
.feature-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
}
/* Punto naranja */
.feature-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50%;
}
/*-----------------------------------
    EFECTO EN EL TEXTO
------------------------------------*/
.feature-card:hover h3 {
    color: #ff6b00;
}
.feature-card:hover .feature-description {
    color: #444;
}
/*-----------------------------------
        RESPONSIVE
------------------------------------*/
@media(max-width:1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media(max-width:850px) {
    .section-header h2 {
        font-size: 35px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width:600px) {
    .features-section {
        padding: 80px 0;
    }
    .section-header {
        margin-bottom: 45px;
    }
    .section-header h2 {
        font-size: 30px;
    }
    .section-header p {
        font-size: 16px;
        line-height: 28px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .feature-card {
        padding: 25px;
    }
}
/*==================================================
            TODO CONECTADO
==================================================*/
.connected-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    overflow: hidden;
    position: relative;
}
.connected-section .container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
}
/*==================================
        TITULOS
===================================*/
.connected-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}
.connected-section .section-tag {
    display: inline-block;
    padding: 10px 25px;
    background: #ff6b00;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.connected-section h2 {
    font-size: 46px;
    color: #1d2b36;
    line-height: 1.3;
    margin-bottom: 20px;
}
.connected-section p {
    color: #6f6f6f;
    font-size: 18px;
    max-width: 700px;
    margin: auto;
    line-height: 30px;
}
/*==================================
    CONTENEDOR GENERAL
===================================*/
.connection-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
}
/*==================================
            SVG
===================================*/
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
.connection-lines line {
    stroke: #d7dfe8;
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
}
/*==================================
        CENTRO
===================================*/
.center-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.center-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7b1d, #ff5a00);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(255, 107, 0, .35);
}
.center-circle img {
    width: 70px;
}
.center-node h3 {
    margin-top: 20px;
    color: #1d2b36;
    font-size: 28px;
    font-weight: 700;
}
/*==================================
        MODULOS
===================================*/
.node {
    position: absolute;
    width: 150px;
    text-align: center;
    z-index: 4;
}
/*==================================
        ICONO
===================================*/
.node .icon {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ff6b00;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.node .icon i {
    font-size: 34px;
    color: #ff6b00;
}
.node span {
    display: block;
    margin-top: 15px;
    font-size: 17px;
    font-weight: 600;
    color: #2d3d4c;
}
/*==================================
        POSICIONES
===================================*/
/* BOT */
.bot {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}
/* INVENTARIO */
.inventario {
    top: 130px;
    left: 13%;
}
/* WEB */
.web {
    top: 130px;
    right: 13%;
}
/* PEDIDOS */
.pedidos {
    top: 315px;
    left: 4%;
}
/* REPORTES */
.reportes {
    top: 315px;
    right: 4%;
}
/* VENDEDORES */
.vendedores {
    bottom: 20px;
    left: 23%;
}
/* APP */
.app {
    bottom: 20px;
    right: 23%;
}
/*==================================================
        TODO CONECTADO - EFECTOS PREMIUM
===================================================*/
/*---------------------------------------
    EFECTO PULSO DEL CÍRCULO CENTRAL
---------------------------------------*/
.center-circle {
    position: relative;
    animation: pulseCenter 3s infinite;
}
.center-circle::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 0, .25);
    animation: pulseRing 3s infinite;
}
.center-circle::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 0, .12);
    animation: pulseRing 3s infinite .8s;
}
@keyframes pulseCenter {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes pulseRing {
    0% {
        transform: scale(.9);
        opacity: .8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
/*---------------------------------------
        HOVER DE LOS MÓDULOS
---------------------------------------*/
.node {
    transition: .4s;
}
.node:hover {
    transform: translateY(-10px);
}
.node .icon {
    transition: .35s;
}
.node:hover .icon {
    background: #ff6b00;
    border-color: #ff6b00;
    box-shadow: 0 20px 40px rgba(255, 107, 0, .35);
}
.node:hover i {
    color: white;
    transform: scale(1.15);
}
.node i {
    transition: .35s;
}
.node span {
    transition: .35s;
}
.node:hover span {
    color: #ff6b00;
}
/*---------------------------------------
        ANIMACIÓN FLOTANTE
---------------------------------------*/
.bot {
    animation: float1 5s ease-in-out infinite;
}
.inventario {
    animation: float2 6s ease-in-out infinite;
}
.web {
    animation: float3 5.5s ease-in-out infinite;
}
.pedidos {
    animation: float2 6.5s ease-in-out infinite;
}
.reportes {
    animation: float1 5.5s ease-in-out infinite;
}
.vendedores {
    animation: float3 6s ease-in-out infinite;
}
.app {
    animation: float2 5s ease-in-out infinite;
}
@keyframes float1 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}
@keyframes float2 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(8px);
    }
    100% {
        transform: translateY(0px);
    }
}
@keyframes float3 {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}
/*---------------------------------------
        TOOLTIP GLASS
---------------------------------------*/
.node {
    position: absolute;
}
.node::after {
    content: attr(data-info);
    position: absolute;
    width: 220px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 120px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #1d2b36;
    padding: 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 22px;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
}
.node:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 135px;
}
/*---------------------------------------
        SVG
---------------------------------------*/
.connection-lines line {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: drawLine 2.5s forwards;
}
.connection-lines line:nth-child(2) {
    animation-delay: .2s;
}
.connection-lines line:nth-child(3) {
    animation-delay: .4s;
}
.connection-lines line:nth-child(4) {
    animation-delay: .6s;
}
.connection-lines line:nth-child(5) {
    animation-delay: .8s;
}
.connection-lines line:nth-child(6) {
    animation-delay: 1s;
}
.connection-lines line:nth-child(7) {
    animation-delay: 1.2s;
}
@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}
/*---------------------------------------
        BRILLO
---------------------------------------*/
.node .icon::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 120%;
    background: rgba(255, 255, 255, .45);
    transform: rotate(25deg);
    left: -40px;
    top: -10%;
    transition: .6s;
}
.node .icon {
    overflow: hidden;
    position: relative;
}
.node:hover .icon::before {
    left: 120px;
}
/*---------------------------------------
   RESPONSIVE
---------------------------------------*/
@media(max-width:1100px) {
    .connection-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .connection-lines {
        display: none;
    }
    .center-node {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 30px;
        order: -1; /* Ensure center node is first in the flex container */
    }
    .node {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 280px;
    }
    .node::after {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 15px;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        display: block;
    }
}

@media(max-width:768px) {
    .connected-section {
        padding: 80px 0;
    }
    .connected-section h2 {
        font-size: 30px; /* Smaller font for mobile */
    }
    .connected-section p {
        font-size: 15px;
    }
    .connected-section .section-tag {
        font-size: 12px;
        padding: 8px 18px;
    }
    .center-circle {
        width: 120px;
        height: 120px;
    }
    .center-circle img {
        width: 60px;
    }
    .center-node h3 {
        font-size: 24px;
    }
    .node .icon {
        width: 70px;
        height: 70px;
    }
    .node .icon i {
        font-size: 30px;
    }
    .node span {
        font-size: 15px;
    }
}
/*---------------------------------------
    SUAVIDAD
---------------------------------------*/
.node,
.center-circle,
.connection-lines line {
    transition: .4s;
}
/* --- SECCIÓN TARGET / MARKET IA --- */
.target-section {
    padding: 60px 20px;
    font-family: 'Arial', sans-serif;
    /* Cambia por la de tu web */
    background-color: #ffffff;
    overflow: hidden;
}
.target-container {
    max-width: 1200px;
    margin: 0 auto;
}
/* Encabezado */
.target-header {
    text-align: center;
    margin-bottom: 40px;
}
.target-header h2 {
    font-size: 2.2rem;
    color: #111111;
    margin-bottom: 5px;
    font-weight: 700;
}
.target-header h3 {
    font-size: 2rem;
    color: #f27405;
    /* Naranja de la captura */
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}
.target-header p {
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}
/* Carrusel contenedor */
.target-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.target-carousel::-webkit-scrollbar {
    height: 6px;
}
.target-carousel::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 10px;
}
.target-carousel:active {
    cursor: grabbing;
}
/* Tarjetas */
.target-card {
    flex: 0 0 calc(20% - 16px);
    /* Distribuye 5 columnas exactas en pantallas grandes */
    min-width: 220px;
    /* Previene que se aplasten en pantallas chicas generando el scroll */
    text-align: center;
    box-sizing: border-box;
}
/* Contenedor de imágenes para efecto Hover */
.target-card .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Mantiene las fotos perfectamente cuadradas */
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    /* Simula el borde sutil de la guía */
}
.target-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Control de capas para el cambio de imagen */
.target-card .image-container .img-hover {
    opacity: 0;
}
/* Efecto Hover */
.target-card:hover .image-container .img-main {
    opacity: 0;
}
.target-card:hover .image-container .img-hover {
    opacity: 1;
    transform: scale(1.03);
    /* Un ligero zoom elegante */
}
/* Títulos inferiores */
.target-card h4 {
    font-size: 1.1rem;
    color: #f27405;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}
/* --- SECCIÓN TESTIMONIOS --- */
.testimonials-section {
    padding: 60px 20px;
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    overflow: hidden;
}
.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}
/* Encabezado */
.testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}
.testimonials-header h2 {
    font-size: 2.2rem;
    color: #0d2319;
    /* Tono oscuro verdoso/negro de la captura */
    font-weight: 700;
    margin: 0;
}
.testimonials-header h2 span {
    color: #f27405;
    /* El color naranja característico */
}
/* Contenedor del Carrusel */
.testimonials-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 5px 25px 5px;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
/* Ocultar barra de scroll visualmente pero mantener la funcionalidad */
.testimonials-carousel::-webkit-scrollbar {
    height: 6px;
}
.testimonials-carousel::-webkit-scrollbar-thumb {
    background-color: #e0e0e0;
    border-radius: 10px;
}
.testimonials-carousel:active {
    cursor: grabbing;
}
/* Tarjetas de comentarios */
.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    /* Muestra exactamente 3 en pantallas de escritorio */
    min-width: 320px;
    /* Evita que colapsen en pantallas más pequeñas */
    background-color: #f6f5f4;
    /* Gris muy claro de fondo del diseño */
    border-radius: 16px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
/* Logotipo superior de la tarjeta */
.company-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.company-logo .logo-icon {
    font-size: 1.4rem;
    line-height: 1;
}
/* Colores para simular los iconos de la captura */
.company-logo .logo-icon.purple {
    color: #7f56d9;
}
.company-logo .logo-icon.orange {
    color: #f27405;
}
.company-logo .logo-icon.blue {
    color: #2e90fa;
}
.company-logo .logo-icon.green {
    color: #12b76a;
}
.company-logo .logo-icon.red {
    color: #f04438;
}
.company-logo .logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d2319;
}
/* Texto del comentario */
.testimonial-text {
    font-size: 0.95rem;
    color: #2b3d34;
    line-height: 1.6;
    font-style: italic;
    /* Cursiva como en la imagen */
    margin: 0 0 30px 0;
    font-weight: 500;
}
/* Perfil de Usuario abajo */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    /* Empuja el perfil al fondo si los textos varían en longitud */
}
.user-profile .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.user-info h4 {
    font-size: 0.95rem;
    color: #0d2319;
    margin: 0 0 2px 0;
    font-weight: 700;
}
.user-info span {
    font-size: 0.75rem;
    color: #667085;
}
/* Adaptación para pantallas medianas o tablets (Muestra 2 tarjetas) */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
}
/* Adaptación para móviles (Muestra 1 tarjeta completa) */
@media (max-width: 650px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}
/* --- SECCIÓN CONTACTO (NARANJA) --- */
.connect-section {
    background-color: #f25405;
    /* Fondo naranja exacto */
    padding: 70px 20px;
    font-family: 'Arial', sans-serif;
    /* Usa la de tu sitio web */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.connect-container {
    max-width: 900px;
    margin: 0 auto;
}
/* Tipografía de Títulos */
.connect-title {
    color: #ffffff;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 25px 0;
    letter-spacing: -0.5px;
}
/* Texto destacado (Market IA) en un tono azul/gris oscuro */
.connect-title .highlight-text {
    color: #0d2235;
}
/* Descripción */
.connect-description {
    color: rgba(255, 255, 255, 0.85);
    /* Blanco ligeramente traslúcido para legibilidad */
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto 35px auto;
    font-weight: 500;
}
/* Contenedor de Botones */
.connect-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Permite que se acomoden uno abajo del otro en móviles */
}
/* Estilo Base de Botones */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    /* Bordes totalmente redondeados como la captura */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
/* Botón Blanco (WhatsApp) */
.btn-whatsapp {
    background-color: #ffffff;
    color: #f25405;
    /* Texto del color del fondo */
}
.btn-whatsapp svg {
    fill: #25D366;
    /* Icono verde oficial de WhatsApp */
}
/* Botón Oscuro (Email) */
.btn-email {
    background-color: #0c1520;
    /* Fondo muy oscuro */
    color: #ffffff;
}
.btn-email .icon-email {
    font-size: 1.1rem;
}
/* Saltos de línea controlados para mejorar estética visual */
.desktop-break {
    display: block;
}
.mobile-break {
    display: none;
}
/* --- RESPONSIVE / ADAPTACIÓN PARA MÓVILES --- */
@media (max-width: 768px) {
    .connect-section {
        padding: 50px 15px;
    }
    .connect-title {
        font-size: 1.7rem;
    }
    .connect-description {
        font-size: 0.95rem;
    }
    .connect-actions {
        flex-direction: column;
        /* Apila los botones verticalmente */
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .btn-action {
        width: 100%;
        /* Botones de ancho completo en celular */
    }
    .desktop-break {
        display: none;
    }
    .mobile-break {
        display: block;
    }
}
/* --- SECCIÓN VIDEO Y CARACTERÍSTICAS (OSCURA) --- */
.video-features-section {
    background-color: #0b111e;
    /* Fondo azul oscuro/negro profundo */
    padding: 80px 20px;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
}
.video-features-container {
    max-width: 1200px;
    margin: 0 auto;
}
/* Encabezado con la frase entrecomillada */
.video-features-header {
    text-align: center;
    margin-bottom: 60px;
}
.video-features-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
    color: #e2e8f0;
    /* Blanco suave */
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}
/* Distribución en dos columnas (Flexbox) */
.video-features-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
/* Columna del Video */
.video-wrapper {
    flex: 1;
    min-width: 0;
    /* Evita desbordamientos extraños */
}
.video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Relación de aspecto estándar de video */
    border-radius: 24px;
    /* Bordes redondeados como el mockup */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: #000000;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Columna de Características */
.features-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
/* Iconos Dorados/Naranjas sutiles */
.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f27405;
    /* Color corporativo de Market IA */
    background-color: rgba(242, 116, 5, 0.1);
    /* Fondo sutil traslúcido */
    border-radius: 12px;
}
.feature-icon svg {
    width: 26px;
    height: 26px;
}
/* Textos de características */
.feature-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
}
.feature-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    /* Gris azulado claro para la descripción */
    margin: 0;
}
/* --- RESPONSIVE / ADAPTACIÓN --- */
@media (max-width: 992px) {
    .video-features-content {
        flex-direction: column;
        /* Pasa a una sola columna en pantallas medianas/chicas */
        gap: 40px;
    }
    .video-wrapper,
    .features-list {
        width: 100%;
        /* Ocupan todo el ancho disponible */
    }
    .video-features-header h2 {
        font-size: 1.3rem;
    }
}
@media (max-width: 576px) {
    .video-features-section {
        padding: 50px 15px;
    }
    .video-features-header h2 {
        font-size: 1.1rem;
    }
    .feature-item {
        flex-direction: column;
        /* Apila el icono arriba del texto en móviles muy chicos */
        gap: 12px;
    }
}
/* --- SECCIÓN BANNER ACCIONES (PLANES Y REGISTRO) --- */
.action-banner-section {
    padding: 60px 20px;
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    /* Fondo exterior para contrastar la tarjeta */
    display: flex;
    justify-content: center;
}
.banner-box {
    background-color: #f25405;
    /* Naranja idéntico al diseño anterior */
    width: 100%;
    max-width: 1100px;
    border-radius: 28px;
    /* Esquinas bien redondeadas como la imagen */
    display: flex;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(242, 84, 5, 0.2);
}
/* Columnas internas */
.banner-column {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}
/* Línea divisoria central sutil */
.left-column {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
/* Contenedor de iconos redondos traslúcidos */
.banner-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 25px;
}
.banner-icon svg {
    width: 22px;
    height: 22px;
}
/* Títulos H2 dentro de la tarjeta */
.banner-column h2 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}
/* Textos descriptivos */
.banner-column p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    min-height: 72px;
    /* Mantiene la alineación uniforme si un texto es más corto */
}
/* Estilos de los Botones */
.btn-banner {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}
/* Botón Blanco (Izquierdo) */
.btn-white {
    background-color: #ffffff;
    color: #f25405;
}
.btn-white:hover {
    background-color: #f7f7f7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Botón Outline / Transparente con Borde (Derecho) */
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}
/* --- ADAPTACIÓN RESPONSIVA (TABLETS Y MÓVILES) --- */
@media (max-width: 992px) {
    .banner-box {
        flex-direction: column;
        /* Cambia a una sola columna */
    }
    .left-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        /* Pone la línea abajo */
    }
    .banner-column {
        padding: 40px;
    }
    .banner-column p {
        min-height: auto;
        /* Ya no requiere una altura fija en vertical */
    }
}
@media (max-width: 576px) {
    .action-banner-section {
        padding: 30px 15px;
    }
    .banner-column h2 {
        font-size: 1.35rem;
    }
    .btn-banner {
        width: 100%;
        /* El botón se expande por completo en pantallas muy chicas */
    }
}
/* --- FOOTER PRINCIPAL (ESTILO COMPLETO) --- */
.main-footer {
    background-color: #0b111e;
    /* El mismo fondo azul noche profundo del diseño */
    padding: 60px 20px 30px 20px;
    font-family: 'Arial', sans-serif;
    color: #94a3b8;
    /* Gris azulado suave por defecto */
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
/* Fila Superior */
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    /* Previene desbordamiento en tablets */
    padding-bottom: 40px;
}
/* Columna de Marca (Ancho preferencial) */
.footer-brand-col {
    flex: 2;
    min-width: 250px;
}
.footer-logo h2 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.footer-logo h2 span {
    color: #f25405;
    /* Carrito naranja corporativo */
    font-size: 1.4rem;
}
.footer-logo h2 sub {
    font-size: 0.75rem;
    vertical-align: sub;
    margin-left: -2px;
}
.brand-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 320px;
}
/* Iconos de Redes Sociales */
.footer-socials {
    display: flex;
    gap: 12px;
}
.social-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Círculos sutiles oscuros */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.social-icon svg {
    width: 18px;
    height: 18px;
}
.social-icon:hover {
    background-color: #f25405;
    /* Cambio al naranja corporativo en hover */
    color: #ffffff;
    transform: translateY(-2px);
}
/* Columnas de Enlaces */
.footer-links-col {
    flex: 1;
    min-width: 150px;
}
.footer-links-col h3 {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin: 0 0 20px 0;
}
.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-col ul li {
    margin-bottom: 12px;
}
.footer-links-col ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links-col ul li a:hover {
    color: #ffffff;
    /* Brillo blanco limpio al interactuar */
}
/* Fila Inferior de Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    /* Línea divisoria muy sutil */
    padding-top: 25px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}
/* --- RESPONSIVE / MAQUETACIÓN MÓVIL --- */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        /* Apila todo en una única columna */
        gap: 35px;
    }
    .footer-brand-col {
        margin-bottom: 10px;
    }
    .brand-text {
        max-width: 100%;
    }
}
@media (max-width: 576px) {
    .footer-bottom {
        padding-top: 15px;
    }
}
/* ===================================================
   MENÚ HAMBURGUESA - VERSIÓN DEFINITIVA
   =================================================== */

/* Botón Hamburguesa - Oculto en desktop */
.menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 28px !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    z-index: 1001 !important;
    transition: color 0.3s ease !important;
}

.menu-toggle i {
    color: #ffffff !important;
    font-size: 28px !important;
}

.menu-toggle:hover i {
    color: #ff6b00 !important;
}

/* ===================================================
   NAV - ESTADO POR DEFECTO (DESKTOP)
   =================================================== */

#mainNav {
    display: flex !important;
    align-items: center !important;
    gap: 35px !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    overflow: visible !important;
    flex-direction: row !important;
    transition: none !important;
}

#mainNav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 35px !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mainNav ul li {
    border-bottom: none !important;
    list-style: none !important;
}

#mainNav ul li a {
    color: #fff !important;
    font-size: 15px !important;
    padding: 0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#mainNav ul li a:hover {
    color: #ff6b00 !important;
}

/* ===================================================
   BOTÓN REGISTRATE - UN SOLO BOTÓN PARA TODO
   =================================================== */

/* En desktop: se muestra como botón naranja a la derecha */
#mainNav .btn-demo {
    display: inline-block !important;
    background: #ff6b00 !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    font-size: 15px !important;
    margin-left: auto !important;
}

#mainNav .btn-demo:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4) !important;
}

/* ===================================================
   RESPONSIVE - MÓVIL (max-width: 992px)
   =================================================== */

@media (max-width: 992px) {
    
    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: block !important;
    }

    .menu-toggle i {
        font-size: 28px !important;
    }

    /* NAV - OCULTO POR DEFECTO EN MÓVIL */
    #mainNav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: #1a1e2a !important;
        padding: 80px 30px 30px !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    /* NAV - ABIERTO */
    #mainNav.open {
        right: 0 !important;
    }

    /* Estilos de los enlaces en móvil */
    #mainNav ul {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        display: flex !important;
    }

    #mainNav ul li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        list-style: none !important;
    }

    #mainNav ul li a {
        display: block !important;
        padding: 15px 0 !important;
        font-size: 16px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        text-decoration: none !important;
        transition: color 0.3s ease, padding-left 0.3s ease !important;
    }

    #mainNav ul li a:hover {
        color: #ff6b00 !important;
        padding-left: 10px !important;
    }

    /* Botón "Ingresar" en móvil - blanco */
    #mainNav ul li a.nav-login {
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    #mainNav ul li a.nav-login:hover {
        color: #ff6b00 !important;
    }

    /* ===================================================
       BOTÓN REGISTRATE EN MÓVIL
    =================================================== */
    
    /* En móvil: se muestra como botón de ancho completo dentro del menú */
    #mainNav .btn-demo {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 14px !important;
        margin-top: 10px !important;
        font-size: 16px !important;
        background: #ff6b00 !important;
        color: #fff !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        margin-left: 0 !important;
    }

    #mainNav .btn-demo:hover {
        background: #e05a00 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Overlay oscuro cuando el menú está abierto */
    body.menu-open::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
    }

    /* Logo en móvil */
    .logo img {
        height: 8vh !important;
        min-height: 50px !important;
        max-height: 65px !important;
        width: auto !important;
        max-width: 65px !important;
    }

    .logo {
        font-size: clamp(14px, 4vw, 18px) !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }
}

/* ===================================================
   RESPONSIVE - MÓVIL MUY PEQUEÑO (max-width: 480px)
   =================================================== */

@media (max-width: 480px) {
    #mainNav {
        width: 280px !important;
        padding: 70px 20px 20px !important;
    }

    #mainNav ul li a {
        font-size: 15px !important;
        padding: 12px 0 !important;
    }

    #mainNav .btn-demo {
        font-size: 15px !important;
        padding: 12px !important;
    }

    .menu-toggle {
        font-size: 24px !important;
        padding: 4px 8px !important;
    }

    .menu-toggle i {
        font-size: 24px !important;
    }

    .logo img {
        height: 7.5vh !important;
        min-height: 45px !important;
        max-height: 60px !important;
        width: auto !important;
        max-width: 60px !important;
    }

    .logo {
        font-size: clamp(12px, 4.5vw, 16px) !important;
        gap: 8px !important;
    }
}
/*cambios------------------------------------------------*/



/* ===================================================
   MEJORAS PARA LA SECCIÓN "TODO CONECTADO" EN MÓVIL
   =================================================== */

@media (max-width: 1100px) {
    .connection-wrapper {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 20px 0 !important;
    }
    
    .connection-lines {
        display: none !important;
    }
    
    .center-node {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 10px !important;
        order: -1 !important;
        width: 100% !important;
    }
    
    .center-circle {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important;
    }
    
    .center-circle img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .center-node h3 {
        font-size: 22px !important;
        margin-top: 12px !important;
    }
    
    .node {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 320px !important;
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 14px 20px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e8edf2 !important;
        transition: all 0.3s ease !important;
    }
    
    .node:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15) !important;
        border-color: #ff6b00 !important;
    }
    
    .node .icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        border-width: 2px !important;
    }
    
    .node .icon i {
        font-size: 22px !important;
    }
    
    .node span {
        margin-top: 0 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1d2b36 !important;
    }
    
    /* Tooltips en móvil - se muestran siempre de forma nativa */
    .node::after {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        color: #6b7a8a !important;
        box-shadow: none !important;
        flex: 1 !important;
        text-align: left !important;
    }
    
    .node:hover::after {
        bottom: auto !important;
    }
    
    /* Animaciones flotantes desactivadas en móvil */
    .bot, .inventario, .web, .pedidos, .reportes, .vendedores, .app {
        animation: none !important;
    }
    
    /* Efecto hover del icono en móvil */
    .node:hover .icon {
        background: #ff6b00 !important;
        border-color: #ff6b00 !important;
        box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3) !important;
    }
    
    .node:hover .icon i {
        color: white !important;
        transform: scale(1.05) !important;
    }
    
    .node:hover span {
        color: #ff6b00 !important;
    }
    
    /* Brillo desactivado en móvil */
    .node .icon::before {
        display: none !important;
    }
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 480px) {
    .node {
        max-width: 100% !important;
        padding: 12px 16px !important;
        gap: 12px !important;
    }
    
    .node .icon {
        width: 42px !important;
        height: 42px !important;
    }
    
    .node .icon i {
        font-size: 18px !important;
    }
    
    .node span {
        font-size: 14px !important;
    }
    
    .node::after {
        font-size: 12px !important;
    }
    
    .center-circle {
        width: 80px !important;
        height: 80px !important;
    }
    
    .center-circle img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .center-node h3 {
        font-size: 18px !important;
    }
    
    .connected-section h2 {
        font-size: 24px !important;
    }
    
    .connected-section p {
        font-size: 14px !important;
    }
}

/* ===================================================
   AJUSTE PARA EL SECTION HEADER EN MÓVIL
   =================================================== */

@media (max-width: 768px) {
    .connected-section .section-header {
        margin-bottom: 40px !important;
    }
    
    .connected-section .section-tag {
        font-size: 11px !important;
        padding: 6px 16px !important;
    }
}

/* ===================================================
   MEJORA EN EL RESPONSIVE DE FUNCIONALIDADES
   =================================================== */

@media (max-width: 480px) {
    .feature-card ul li {
        font-size: 13px !important;
        padding-left: 18px !important;
    }
    
    .feature-card ul li::before {
        width: 6px !important;
        height: 6px !important;
        top: 6px !important;
    }
}

/* ===================================================
   FIX: TODO CONECTADO - RESPONSIVE
   =================================================== */

@media (max-width: 1100px) {
    .connected-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .connected-section .section-header {
        order: 1;
        width: 100%;
        margin-bottom: 40px;
    }
    
    .connection-wrapper {
        order: 2;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 20px 0 !important;
    }
    
    .connection-lines {
        display: none !important;
    }
    
    .center-node {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 20px !important;
        order: -1 !important;
        width: 100% !important;
    }
    
    .center-circle {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important;
    }
    
    .center-circle img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .center-node h3 {
        font-size: 22px !important;
        margin-top: 12px !important;
    }
    
    .node {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 320px !important;
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 14px 20px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e8edf2 !important;
        animation: none !important;
    }
    
    .node:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15) !important;
        border-color: #ff6b00 !important;
    }
    
    .node .icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        border-width: 2px !important;
    }
    
    .node .icon i {
        font-size: 22px !important;
    }
    
    .node span {
        margin-top: 0 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1d2b36 !important;
        flex-shrink: 0 !important;
    }
    
    /* Mostrar tooltip siempre visible en móvil */
    .node::after {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #6b7a8a !important;
        box-shadow: none !important;
        flex: 1 !important;
        text-align: left !important;
        content: attr(data-info) !important;
    }
    
    .node:hover::after {
        bottom: auto !important;
    }
    
    .node .icon::before {
        display: none !important;
    }
    
    .node:hover .icon {
        background: #ff6b00 !important;
        border-color: #ff6b00 !important;
        box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3) !important;
    }
    
    .node:hover .icon i {
        color: white !important;
        transform: scale(1.05) !important;
    }
    
    .node:hover span {
        color: #ff6b00 !important;
    }
    
    /* Animaciones flotantes desactivadas */
    .bot, .inventario, .web, .pedidos, .reportes, .vendedores, .app {
        animation: none !important;
    }
}

/* Ajustes para móviles pequeños */
@media (max-width: 480px) {
    .connection-wrapper {
        gap: 20px !important;
        padding: 10px 0 !important;
    }
    
    .node {
        max-width: 100% !important;
        padding: 12px 14px !important;
        gap: 12px !important;
        border-radius: 14px !important;
    }
    
    .node .icon {
        width: 42px !important;
        height: 42px !important;
    }
    
    .node .icon i {
        font-size: 18px !important;
    }
    
    .node span {
        font-size: 14px !important;
    }
    
    .node::after {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    .center-circle {
        width: 80px !important;
        height: 80px !important;
    }
    
    .center-circle img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .center-node h3 {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .connected-section .section-header {
        margin-bottom: 30px !important;
    }
    
    .connected-section .section-tag {
        font-size: 11px !important;
        padding: 6px 16px !important;
    }
}