 
:root {
    /* Paleta Oficial basada en el Logo "Grupo Empresarial M" */
    --brand-cyan: #00a8e8;
    --brand-blue: #0072ce;
    --brand-navy: #0b192c;
    --brand-dark-bg: #060a12;
    --brand-gray: #a0aec0;
    --brand-light-gray: #e2e8f0;
    
    --bg-card: rgba(11, 25, 44, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 168, 232, 0.5);

    /* Variables del Widget de Chat */
    --chat-primary: #2563eb;
    --chat-primary-hover: #1d4ed8;
    --chat-bg: #f8fafc;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1eaa53;
}

/* ==========================================
   ESTILOS GENERALES Y BASE
   ========================================== */
body {
    background-color: var(--brand-dark-bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #f8fafc;
    overflow-x: hidden;
}

.text-gradient-brand {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-cyan) 50%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fs-7 { font-size: 0.85rem; }
.fs-xs { font-size: 0.65rem; }

/* ==========================================
   HEADER & NAVBAR
   ========================================== */
.navbar-glass {
    background: rgba(6, 10, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1030;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 168, 232, 0.3));
    transition: transform 0.3s ease;
}

.brand-logo-img:hover {
    transform: scale(1.04);
}

.brand-name {
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 1.05rem;
    color: var(--brand-light-gray);
}

.brand-subtext {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--brand-cyan);
    font-weight: 600;
}

.nav-link.custom-link {
    color: var(--brand-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link.custom-link:hover, 
.nav-link.custom-link.active {
    color: var(--brand-cyan);
}

/* ==========================================
   HERO SECTION & CAROUSEL
   ========================================== */
.hero-pro {
    min-height: 90vh;
    padding: 100px 0 60px;
    position: relative;
}

.hero-bg-carousel {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-bg-carousel .carousel-item {
    height: 100%;
    min-height: 90vh;
}

.hero-bg-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Se sube el brillo de 0.3 a 0.6 */
    filter: brightness(0.6) contrast(1.1);
    animation: zoomBg 7s infinite alternate linear;
}

@keyframes zoomBg {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Se ajustó la opacidad de 0.98 a 0.65 para dar más claridad */
    background: radial-gradient(circle at 20% 50%, rgba(6, 10, 18, 0.45) 0%, rgba(6, 10, 18, 0.65) 100%);
    z-index: 1;
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55; /* Subido de 0.3 a 0.55 */
    z-index: 1;
    pointer-events: none;
    animation: orbFloat 8s infinite alternate ease-in-out;
}

.orb-1 { background: var(--brand-cyan); top: 10%; left: -5%; }
.orb-2 { background: var(--brand-blue); bottom: 10%; right: -5%; animation-delay: -4s; }

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-35px) scale(1.1); }
}

/* Badges & Dots */
.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--brand-cyan);
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 168, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 232, 0); }
}

/* Botones Principales */
.btn-pro-brand {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 168, 232, 0.35);
    text-decoration: none;
}

.btn-pro-brand:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 168, 232, 0.55);
    color: #fff;
}

.btn-pro-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-pro-outline:hover {
    border-color: var(--brand-cyan);
    background: rgba(0, 168, 232, 0.1);
    color: #fff;
    transform: translateY(-3px);
}

.hero-stats-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.hero-stats-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 168, 232, 0.3);
}

/* ==========================================
   TARJETAS DE SERVICIOS
   ========================================== */
.pro-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.pro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%, rgba(0, 168, 232, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pro-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 168, 232, 0.2);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-dynamic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
    filter: brightness(0.8) contrast(1.1);
}

.pro-card:hover .card-dynamic-img {
    transform: scale(1.12);
    filter: brightness(1) contrast(1.15);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--brand-dark-bg) 100%);
}

.pro-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.3);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.pro-card:hover .pro-icon-box {
    background: var(--brand-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.6);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.tag-cyan { background: rgba(0, 168, 232, 0.2); color: var(--brand-cyan); border: 1px solid rgba(0, 168, 232, 0.4); }
.tag-blue { background: rgba(0, 114, 206, 0.2); color: #60a5fa; border: 1px solid rgba(0, 114, 206, 0.4); }

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--brand-gray);
    margin-bottom: 8px;
}

.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-card-action:hover {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
    color: #fff;
    border-color: var(--brand-cyan);
}

.btn-card-action i { transition: transform 0.3s ease; }
.btn-card-action:hover i { transform: translateX(5px); }

/* ==========================================
   WIDGET CHATBOX AISLADO (Prefijo cw-)
   ========================================== */
#chat-widget-button.cw-btn,
#chat-widget-box.cw-box,
#chat-widget-box.cw-box * {
    box-sizing: border-box !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
    margin: 0;
    padding: 0;
}

/* Botón Flotante Principal */
#chat-widget-button.cw-btn {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    background: linear-gradient(135deg, var(--chat-primary), var(--chat-primary-hover)) !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    user-select: none !important;
}

#chat-widget-button.cw-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6) !important;
}

.cw-btn-content {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cw-online-badge {
    width: 10px !important;
    height: 10px !important;
    background-color: #22c55e !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    margin-left: 8px !important;
}

/* Ventana Flotante */
#chat-widget-box.cw-box {
    position: fixed !important;
    bottom: 85px !important;
    right: 25px !important;
    width: 340px !important;
    max-width: calc(100vw - 30px) !important;
    height: 480px !important;
    max-height: calc(100vh - 110px) !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    z-index: 999999 !important;
    display: none;
    flex-direction: column !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #e2e8f0 !important;
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-widget-box.show-chat {
    display: flex !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Encabezado */
.cw-header {
    background: #0f172a !important;
    padding: 14px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.cw-header-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.cw-avatar-container { position: relative !important; }

.cw-avatar-icon {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 18px !important;
}

.cw-status-dot {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #22c55e !important;
    border: 2px solid #0f172a !important;
    border-radius: 50% !important;
}

.cw-title {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.cw-subtitle {
    color: #94a3b8 !important;
    font-size: 11px !important;
}

.cw-close-btn {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
}

.cw-close-btn:hover { color: #ffffff !important; }

/* Tarjeta WhatsApp Interna */
.cw-whatsapp-card {
    background-color: #f0fdf4 !important;
    padding: 12px !important;
    border-bottom: 1px solid #dcfce7 !important;
}

.cw-wa-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
}

.cw-wa-icon {
    color: var(--whatsapp-green) !important;
    font-size: 18px !important;
}

.cw-wa-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #166534 !important;
}

.cw-btn-wa {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: var(--whatsapp-green) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s !important;
}

.cw-btn-wa:hover {
    background-color: var(--whatsapp-hover) !important;
    color: #ffffff !important;
}

.cw-divider {
    text-align: center !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
    margin: 8px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Mensajes */
.cw-body {
    flex: 1 !important;
    padding: 12px !important;
    overflow-y: auto !important;
    background-color: var(--chat-bg) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.cw-msg {
    max-width: 85% !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.cw-msg-sender {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    opacity: 0.7 !important;
}

.cw-bot-msg {
    background-color: #ffffff !important;
    color: #1e293b !important;
    align-self: flex-start !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom-left-radius: 2px !important;
}

.cw-user-msg {
    background: var(--chat-primary) !important;
    color: #ffffff !important;
    align-self: flex-end !important;
    border-bottom-right-radius: 2px !important;
}

/* Footer / Input */
.cw-footer {
    padding: 10px !important;
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

.cw-form {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

.cw-input {
    flex: 1 !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    outline: none !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.cw-input:focus {
    border-color: var(--chat-primary) !important;
}

.cw-btn-send {
    background-color: var(--chat-primary) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s !important;
}

.cw-btn-send:hover {
    background-color: var(--chat-primary-hover) !important;
}

.hero-pro p, 
.hero-pro .lead {
    color: rgba(255, 255, 255, 0.85) !important; /* Blanco legible al 85% */
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.footer-pro {
    background: rgba(6, 10, 18, 0.95);
    border-top: 1px solid var(--border-glass);
}

.tracking-wider {
    letter-spacing: 1px;
}

/* Enlaces del Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-cyan);
    padding-left: 4px;
}

.footer-link-sm {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-sm:hover {
    color: var(--brand-cyan);
}

/* Botones de Redes Sociales */
.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--brand-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--brand-cyan);
    color: #000;
    border-color: var(--brand-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

/* Estado inicial: Totalmente transparente y sin bordes pesados al tope de la página */
.navbar-custom.navbar-transparent {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease-in-out;
}

/* Estado al hacer scroll: Fondo oscuro sólido, efecto Blur y borde sutil */
.navbar-custom.navbar-scrolled {
    background: rgba(6, 10, 18, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease-in-out;
}

.hero-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}