/* ===== MEGA MENÚ STYLES ===== */
.mega-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mega-nav-list {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.mega-nav-item {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
}

/* ESTILO ÚNICO PARA TODOS LOS LINKS DEL MENÚ */
.mega-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    border-radius: 0 0 6px 6px;
    border: 1px solid transparent;
    height: 40px;
    background: transparent;
    text-decoration: none;
}

/* Hover effect para todos - SIN MOVIMIENTO */
.mega-nav-link:hover {
    color: #009ae8;
    background: #f9fafb;
    border-color: #e5e7eb;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Iconos del menú */
.mega-nav-link i:first-child {
    color: #009ae8 !important;
    font-size: 1rem;
}

/* Flecha del dropdown - POSICIÓN FIJA A LA DERECHA */
.mega-nav-link {
    position: relative;
    padding-right: 28px !important;
}

.mega-nav-link i.fa-chevron-down {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #9ca3af !important;
    transition: transform 0.3s;
    margin: 0;
}

/* Animación independiente para cada flecha - SOLO GIRA, NO SE MUEVE */
.mega-nav-item:hover .mega-nav-link i.fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
}

/* ===== ESTILOS PARA KONECTA.HOST, DEV, VOIP, GPS Y DESIGN ===== */
/* SIN BORDES REDONDEADOS - TOTALMENTE PEGADOS A LA TOP BAR */
.mega-nav-item:nth-child(2) .mega-nav-link,
.mega-nav-item:nth-child(3) .mega-nav-link,
.mega-nav-item:nth-child(4) .mega-nav-link,
.mega-nav-item:nth-child(5) .mega-nav-link,
.mega-nav-item:nth-child(6) .mega-nav-link {
    background-color: #009ae8;
    color: white;
    border: none;
    flex-direction: column;
    height: 100%;
    min-height: 80px;
    padding: 0 20px 0 12px !important;
    line-height: 1.2;
    text-align: center;
    border-radius: 0 !important; /* SIN REDONDEADO - CUADRADOS */
    margin-top: 0;
    justify-content: center;
    align-items: center;
}

.mega-nav-item:nth-child(2) .mega-nav-link i:first-child,
.mega-nav-item:nth-child(3) .mega-nav-link i:first-child,
.mega-nav-item:nth-child(4) .mega-nav-link i:first-child,
.mega-nav-item:nth-child(5) .mega-nav-link i:first-child,
.mega-nav-item:nth-child(6) .mega-nav-link i:first-child {
    color: white !important;
    font-size: 1rem;
    margin-bottom: 2px;
}

.mega-nav-item:nth-child(2) .mega-nav-link span,
.mega-nav-item:nth-child(3) .mega-nav-link span,
.mega-nav-item:nth-child(4) .mega-nav-link span,
.mega-nav-item:nth-child(5) .mega-nav-link span,
.mega-nav-item:nth-child(6) .mega-nav-link span {
    display: block;
    line-height: 1.2;
}

/* KONECTA (arriba) - MÁS PEQUEÑO */
.mega-nav-item:nth-child(2) .mega-nav-link span:first-of-type,
.mega-nav-item:nth-child(3) .mega-nav-link span:first-of-type,
.mega-nav-item:nth-child(4) .mega-nav-link span:first-of-type,
.mega-nav-item:nth-child(5) .mega-nav-link span:first-of-type,
.mega-nav-item:nth-child(6) .mega-nav-link span:first-of-type {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0px;
    line-height: 1;
}

/* HOST/DEV/VOIP/GPS/DESIGN (abajo) - MÁS GRANDE */
.mega-nav-item:nth-child(2) .mega-nav-link span:last-of-type,
.mega-nav-item:nth-child(3) .mega-nav-link span:last-of-type,
.mega-nav-item:nth-child(4) .mega-nav-link span:last-of-type,
.mega-nav-item:nth-child(5) .mega-nav-link span:last-of-type,
.mega-nav-item:nth-child(6) .mega-nav-link span:last-of-type {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: -2px;
}

/* Flecha para botones azules */
.mega-nav-item:nth-child(2) .mega-nav-link i.fa-chevron-down,
.mega-nav-item:nth-child(3) .mega-nav-link i.fa-chevron-down,
.mega-nav-item:nth-child(4) .mega-nav-link i.fa-chevron-down,
.mega-nav-item:nth-child(5) .mega-nav-link i.fa-chevron-down,
.mega-nav-item:nth-child(6) .mega-nav-link i.fa-chevron-down {
    color: rgba(255,255,255,0.9) !important;
    right: 8px;
}

/* Hover para botones azules - SOLO CAMBIO DE COLOR, SIN MOVIMIENTO */
.mega-nav-item:nth-child(2):hover .mega-nav-link,
.mega-nav-item:nth-child(3):hover .mega-nav-link,
.mega-nav-item:nth-child(4):hover .mega-nav-link,
.mega-nav-item:nth-child(5):hover .mega-nav-link,
.mega-nav-item:nth-child(6):hover .mega-nav-link {
    background-color: #0077b3;
    color: white;
}

/* Mega Dropdown */
.mega-dropdown {
    position: static;
}

.mega-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-top: 3px solid #009ae8;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s;
    z-index: 1000;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.mega-nav-item:hover .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Columnas */
.mega-col {
    min-width: 0;
}

.mega-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.mega-col-header i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #009ae8 !important;
    font-size: 1rem;
}

.mega-col-header h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111827;
    margin: 0;
}

.mega-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col-list li {
    margin-bottom: 8px;
}

.mega-col-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    color: #4b5563;
    text-decoration: none;
}

.mega-col-list li a:hover {
    background: #f3f4f6;
    transform: translateX(5px);
    color: #009ae8;
}

.mega-col-list li a i {
    width: 24px;
    font-size: 1.1rem;
    color: #009ae8 !important;
}

.mega-item-content {
    flex: 1;
}

.mega-item-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.mega-item-content span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Tech badges con logos */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
}

.tech-badge:hover {
    background: #009ae8;
    color: #fff;
    transform: translateY(-2px);
}

.tech-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.mega-col.featured{
position:relative;
display:flex;
align-items:center;
justify-content:center;
}

.mega-featured-image{
position:relative;
width:100%;
aspect-ratio:16/9;
border-radius:12px;
overflow:hidden;
}

/* IMAGEN */
.mega-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.3s;
    position:absolute;
    top:0;
    left:0;
    z-index:1;
}

/* VIDEO */
.dynamic-video{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
z-index:1;
display:none;
}

/* HOVER ZOOM SOLO IMAGEN */
.mega-featured-image:hover img {
    transform: scale(1.05);
}

/* TEXTO ENCIMA */
.mega-featured-content{
    position:absolute;
    bottom:20px;
    left:20px;
    z-index:2;
    color:#fff;
    background:rgba(0,0,0,0.45);
    padding:12px 16px;
    border-radius:8px;
    backdrop-filter: blur(4px);
}


/*.mega-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}*/

.mega-featured-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.mega-featured-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-mega {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #111827;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-mega:hover {
    background: #009ae8;
    color: #fff;
    transform: translateX(5px);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #009ae8;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    transition: transform 0.3s;
    position: relative;
    z-index: 1001;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.top-bar-item i {
    color: #fff !important;
    font-size: 0.9rem;
}

.top-bar-item a {
    color: #fff;
    text-decoration: none;
}

.top-bar-item a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #fff;
    color: #009ae8;
}

.social-icons a i {
    color: #fff !important;
}

.social-icons a:hover i {
    color: #009ae8 !important;
}

/* ===== HEADER ===== */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header {
    position: relative;
    background: #fff;
    z-index: 1000;
    transition: all 0.35s ease;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.header-content {
    display: flex;
    align-items: center !important; /* FORZAR centrado vertical para logo e INICIO */
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

/* LOGO centrado */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin: auto 0; /* Centrado vertical */
    transition: all 0.3s ease;
}

/* INICIO centrado */
.mega-nav-item:first-child .mega-nav-link {
    display: flex;
    align-items: center !important;
    height: 40px;
    margin: auto 0; /* Centrado vertical */
}

/* HEADER STICKY */
.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: #009ae8 !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    animation: headerSlide 0.35s ease;
}

.header.sticky .header-content {
    height: 65px;
}

.header.sticky .logo-img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.header.sticky .mega-nav-link {
    padding: 6px 16px !important;
    color: white !important;
}

.header.sticky .mega-nav-link i:first-child {
    color: white !important;
}

.header.sticky .mega-nav-link i.fa-chevron-down {
    color: rgba(255,255,255,0.8) !important;
}

.header.sticky .mega-nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: white !important;
}

.header.sticky .btn-icon i {
    color: white !important;
}

.header.sticky .btn-icon:hover {
    background: rgba(255,255,255,0.2);
}

.header.sticky .btn-cliente {
    border-color: white;
    color: white;
}

.header.sticky .btn-cliente i {
    color: white !important;
}

.header.sticky .btn-cliente:hover {
    background: white;
    color: #009ae8;
}

.header.sticky .btn-cliente:hover i {
    color: #009ae8 !important;
}

.header.sticky .menu-toggle-right {
    background: rgba(255,255,255,0.2);
}

.header.sticky .menu-toggle-right i {
    color: white !important;
}

.header.sticky .menu-toggle-right:hover {
    background: white;
}

.header.sticky .menu-toggle-right:hover i {
    color: #009ae8 !important;
}

/* Ajuste sticky para botones azules */
.header.sticky .mega-nav-item:nth-child(2) .mega-nav-link,
.header.sticky .mega-nav-item:nth-child(3) .mega-nav-link,
.header.sticky .mega-nav-item:nth-child(4) .mega-nav-link,
.header.sticky .mega-nav-item:nth-child(5) .mega-nav-link,
.header.sticky .mega-nav-item:nth-child(6) .mega-nav-link {
    min-height: 48px;
    padding: 3px 22px 3px 10px !important;
}

.header.sticky .mega-nav-item:nth-child(2) .mega-nav-link span:first-of-type,
.header.sticky .mega-nav-item:nth-child(3) .mega-nav-link span:first-of-type,
.header.sticky .mega-nav-item:nth-child(4) .mega-nav-link span:first-of-type,
.header.sticky .mega-nav-item:nth-child(5) .mega-nav-link span:first-of-type,
.header.sticky .mega-nav-item:nth-child(6) .mega-nav-link span:first-of-type {
    font-size: 0.6rem;
}

.header.sticky .mega-nav-item:nth-child(2) .mega-nav-link span:last-of-type,
.header.sticky .mega-nav-item:nth-child(3) .mega-nav-link span:last-of-type,
.header.sticky .mega-nav-item:nth-child(4) .mega-nav-link span:last-of-type,
.header.sticky .mega-nav-item:nth-child(5) .mega-nav-link span:last-of-type,
.header.sticky .mega-nav-item:nth-child(6) .mega-nav-link span:last-of-type {
    font-size: 1rem;
}

/* ANIMACIÓN */
@keyframes headerSlide {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    text-decoration: none;
    position: relative;
}

.btn-icon i {
    color: #6b7280 !important;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.btn-icon:hover {
    background: #009ae8;
}

.btn-icon:hover i {
    color: #fff !important;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.menu-toggle i {
    color: #009ae8 !important;
}

/* ===== BOTÓN ÁREA CLIENTES ===== */
.btn-cliente {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 36px;
    background: transparent;
    border: 2px solid #009ae8;
    border-radius: 30px;
    color: #009ae8;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cliente i {
    color: #009ae8 !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cliente:hover {
    background: #009ae8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,154,232,0.3);
}

.btn-cliente:hover i {
    color: white !important;
}

.header.sticky .btn-cliente {
    height: 32px;
    padding: 0 14px;
    font-size: 0.85rem;
}

/* ===== BOTÓN MENÚ HAMBURGUESA DERECHO ===== */
.menu-toggle-right {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.menu-toggle-right i {
    color: #6b7280 !important;
    font-size: 1.2rem;
}

.menu-toggle-right:hover {
    background: #009ae8;
}

.menu-toggle-right:hover i {
    color: white !important;
}

.header.sticky .menu-toggle-right {
    width: 36px;
    height: 36px;
}

/* ===== SIDEBAR DERECHO ===== */
.sidebar-right {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

.sidebar-right.active {
    right: 0;
}

.sidebar-header {
    background: #009ae8;
    color: white;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.sidebar-header h3 i {
    margin-right: 10px;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 25px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    color: #009ae8;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-info-item i {
    width: 30px;
    height: 30px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #009ae8 !important;
}

.sidebar-info-item .info-content {
    flex: 1;
}

.sidebar-info-item .info-content strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
}

.sidebar-info-item .info-content span,
.sidebar-info-item .info-content a {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
}

.sidebar-info-item .info-content a:hover {
    color: #009ae8;
}

.sidebar-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.sidebar-social a {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #009ae8;
    transition: all 0.3s;
}

.sidebar-social a:hover {
    background: #009ae8;
    color: white;
    transform: translateY(-3px);
}

.sidebar-social a i {
    color: #009ae8 !important;
    transition: all 0.3s;
}

.sidebar-social a:hover i {
    color: white !important;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== CHAT IA ===== */
.chat-ia-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #009ae8;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    border: none;
}

.chat-ia-btn i {
    color: #fff !important;
    font-size: 1.2rem;
}

.chat-ia-btn:hover {
    background: #0077b3;
    transform: translateY(-5px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,154,232,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0,154,232,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,154,232,0); }
}

.chat-ia-window {
    position: fixed;
    bottom: 180px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    border: 1px solid #e5e7eb;
}

.chat-ia-window.active {
    display: flex;
}

.chat-header {
    background: #009ae8;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header i {
    color: #fff !important;
    font-size: 1.2rem;
}

.chat-header h4 {
    flex: 1;
    font-size: 1rem;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close i {
    color: #fff !important;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafb;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.ia {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.ia .message-content {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.message.user .message-content {
    background: #009ae8;
    color: #fff;
}

.chat-input {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
}

.chat-input input:focus {
    border-color: #009ae8;
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: #009ae8;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-input button i {
    color: #fff !important;
}

.chat-input button:hover {
    background: #0077b3;
    transform: scale(1.1);
}

/* Contacto social mini */
.contacto-social-mini {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.contacto-social-mini a {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #009ae8;
    transition: all 0.3s;
    text-decoration: none;
}

.contacto-social-mini a:hover {
    background: #009ae8;
    color: #fff;
}

.contacto-social-mini a i {
    color: #009ae8 !important;
}

.contacto-social-mini a:hover i {
    color: #fff !important;
}

/* Mega note */
.mega-note {
    margin-top: 15px;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-note i {
    color: #009ae8 !important;
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: transform 0.3s;
    border-left: 4px solid #009ae8;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification i {
    color: #009ae8 !important;
    font-size: 1.2rem;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.success i {
    color: #10b981 !important;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.error i {
    color: #ef4444 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .mega-nav-list {
        gap: 2px;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mega-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        display: block;
        z-index: 999;
    }
    
    .header.sticky .mega-menu {
        top: 65px;
    }
    
    .mega-menu.active {
        left: 0;
    }
    
    .mega-nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .mega-nav-item {
        width: 100%;
        height: auto;
    }
    
    .mega-nav-link {
        padding: 15px 16px !important;
        height: auto;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .mega-nav-link:hover {
        transform: none;
        background: #f3f4f6;
        border-color: #e5e7eb;
    }
    
    .mega-nav-link i.fa-chevron-down {
        position: static;
        transform: none;
        margin-left: auto;
    }
    
    .mega-menu-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .mega-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-top: none;
        background: #f9fafb;
        max-height: none;
    }
    
    .mega-nav-item.active .mega-dropdown-menu {
        display: block;
    }
    
    .mega-col.featured {
        order: -1;
    }
    
    .btn-cliente span {
        display: inline;
    }
    
    .mega-nav-item:first-child .mega-nav-link {
        height: auto;
        margin: 0;
    }
    
    .mega-nav-item:nth-child(2) .mega-nav-link,
    .mega-nav-item:nth-child(3) .mega-nav-link,
    .mega-nav-item:nth-child(4) .mega-nav-link,
    .mega-nav-item:nth-child(5) .mega-nav-link,
    .mega-nav-item:nth-child(6) .mega-nav-link {
        min-height: auto;
        justify-content: flex-start;
        border-radius: 0 !important;
    }
}

/* BOTÓN AUDIO MEGA MENU */
.menu-link .audio-toggle{
background:transparent;
border:none;
cursor:pointer;
padding:4px;
display:flex;
align-items:center;
justify-content:center;
transition:all .25s ease;
}

/* icono gris claro */
.menu-link .audio-toggle i{
color:#d1d5db !important;
font-size:12px;
transition:all .25s ease;
}

/* hover expansión hacia afuera */
.menu-link .audio-toggle:hover{
transform:scale(1.25);
}

/* hover celeste */
.menu-link .audio-toggle:hover i{
color:#009ae8 !important;
}


@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .top-bar-left {
        justify-content: center;
    }
    
    .chat-ia-btn {
        padding: 12px 20px;
        bottom: 80px;
        right: 20px;
    }
    
    .chat-ia-btn span {
        display: none;
    }
    
    .chat-ia-btn i {
        margin: 0;
    }
    
    .chat-ia-window {
        width: 300px;
        height: 450px;
        right: 20px;
        bottom: 150px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .btn-icon {
        width: 34px;
        height: 34px;
    }
    
    .btn-cliente {
        padding: 0 12px;
        font-size: 0.85rem;
    }
    
  
    
    .btn-cliente i {
        margin: 0;
    }
    
    .sidebar-right {
        width: 320px;
    }
    
    
    .audio-toggle{
background:none;
border:none;
cursor:pointer;
margin-left:8px;
color:#888;
font-size:14px;
transition:all .2s;
}

.audio-toggle:hover{
color:#fff;
transform:scale(1.1);
}

.audio-toggle{
background:transparent;
border:none;
color:#8a8a8a;
cursor:pointer;
font-size:14px;
padding:6px;
display:flex;
align-items:center;
justify-content:center;
transition:all .25s ease;
}

/* mismo hover que los botones del header */
.audio-toggle:hover{
color:#ffffff;
background:rgba(255,255,255,0.08);
border-radius:6px;
transform:scale(1.05);
}
/* ===== LOGOS ===== */

.logo-mobile{
display:none;
}

.logo-desktop{
display:block;
}

/* ===== MOBILE ===== */

@media (max-width:768px){

.logo-desktop{
display:none;
}

.logo-mobile{
display:block;
height:42px;
}

}
@media (max-width:768px){

.top-bar{
display:none;
}

}
@media (max-width:768px){

/* ocultar botones */
.header-actions a[title="Llamar gratis"],
.header-actions a[title="Soporte"],
.header-actions a[title="Cotizar"]{
display:none;
}

}
@media (max-width:768px){

.header-actions{
gap:6px;
}

.btn-icon{
width:34px;
height:34px;
}

.menu-toggle-right{
width:36px;
height:36px;
}

}
@media (max-width:768px){

.header-content{
height:60px;
}

.logo-img{
height:40px;
}

}

/* ===== OCULTAR TOP BAR SOLO EN MOBILE ===== */
@media (max-width:768px){

.top-bar{
display:none !important;
}

}

/* ===== ÁREA CLIENTES CON TEXTO EN MOBILE ===== */
@media (max-width:768px){

.btn-cliente span{
display:inline !important;
}

}

/* ===== TEXTO CLIENTES SOLO DESKTOP ===== */

.cliente-text{
display:inline;
}

@media (max-width:768px){

.cliente-text{
display:none;
}

}
/* TEXTO CLIENTES SOLO EN DESKTOP */

@media (max-width:768px){

.btn-cliente .cliente-text{
display:none;
}

}/* OCULTAR TEXTO CLIENTES EN MÓVIL */
@media (max-width:768px){

.btn-cliente span{
display:none !important;
}

}/* CLIENTES COMO ICONO EN MÓVIL */
@media (max-width:768px){

/* ocultar texto */
.btn-cliente span{
display:none !important;
}

/* convertir botón en icono circular */
.btn-cliente{
width:34px;
height:34px;
padding:0;
border:none;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
background:transparent;
}

/* icono gris igual que los otros */
.btn-cliente i{
color:#6b7280 !important;
font-size:1.1rem;
}

/* hover igual que lupa y carrito */
.btn-cliente:hover{
background:#009ae8;
}

.btn-cliente:hover i{
color:#fff !important;
}

}
/* ===== FIX SOLO MOVIL – NO TOCA MEGA MENU DESKTOP ===== */

@media (max-width:992px){

/* lista horizontal */
.mega-nav-list{
flex-direction:row !important;
flex-wrap:wrap;
gap:6px;
}

/* INICIO se mantiene igual */
.mega-nav-item:first-child{
flex-basis:100%;
}

/* servicios en linea */
.mega-nav-item:not(:first-child){
flex:1;
}

/* botones azules compactos */
.mega-nav-item:not(:first-child) .mega-nav-link{
flex-direction:column;
background:#009ae8;
color:#fff;
border:none;
border-radius:6px;
padding:10px 6px !important;
min-height:60px;
justify-content:center;
}

/* iconos blancos */
.mega-nav-item:not(:first-child) .mega-nav-link i:first-child{
color:#fff !important;
}

/* flecha */
.mega-nav-item:not(:first-child) .mega-nav-link i.fa-chevron-down{
color:rgba(255,255,255,0.9) !important;
}
}