/* ========================================
   SprintMarkt Chatbot Pro v2.0.1 - ULTRA FIX
   CSS con AISLAMIENTO TOTAL
   ======================================== */

/* RESET COMPLETO para evitar herencia de estilos */
#sprintmarkt-chatbot-pro-root {
    all: initial;
    position: fixed !important;
    z-index: 2147483647 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    pointer-events: none !important;
}

#sprintmarkt-chatbot-pro-root * {
    all: unset;
    box-sizing: border-box !important;
}

/* Botón flotante */
/* BOTÓN FLOTANTE - ULTRA DINÁMICO Y LLAMATIVO */
#sm-chat-btn-wrap {
    position: fixed !important;
    bottom: 24px !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

#sm-chat-btn-wrap.sm-position-right {
    right: 24px !important;
}

#sm-chat-btn-wrap.sm-position-left {
    left: 24px !important;
}

/* Animación de pulso constante ANTES del pulso ring */
@keyframes sm-pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(11, 145, 202, 0.7),
                    0 4px 20px rgba(11, 145, 202, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(11, 145, 202, 0),
                    0 6px 30px rgba(11, 145, 202, 0.6);
    }
}

/* Pulso ring externo */
#sm-chat-btn-wrap::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    border: 3px solid #0B91CA !important;
    animation: sm-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
    pointer-events: none !important;
}

@keyframes sm-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Botón principal */
#sm-chat-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    border-radius: 50% !important;
    border: 4px solid white !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    outline: none !important;
    animation: sm-pulse-glow 2s ease-in-out infinite !important;
}

/* Efecto hover */
#sm-chat-btn:hover {
    transform: scale(1.15) rotate(5deg) !important;
    box-shadow: 0 8px 35px rgba(11, 145, 202, 0.6) !important;
    animation: none !important;
}

/* Efecto active */
#sm-chat-btn:active {
    transform: scale(0.92) !important;
}

/* SVG del ícono - ROBOT ANIMADO */
#sm-chat-btn svg {
    width: 38px !important;
    height: 38px !important;
    fill: none !important;
    stroke: white !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: transform 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

#sm-chat-btn:hover svg {
    transform: scale(1.1) rotate(-5deg) !important;
    animation: sm-bounce 0.6s ease infinite !important;
}

@keyframes sm-bounce {
    0%, 100% { transform: translateY(0) scale(1.1) rotate(-5deg); }
    50% { transform: translateY(-4px) scale(1.15) rotate(-5deg); }
}

/* Badge de "nuevo" o notificación */
.sm-notify-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border: 3px solid white !important;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4) !important;
    animation: sm-pulse-badge 1.5s ease-in-out infinite !important;
}

@keyframes sm-pulse-badge {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
    }
}

/* Label de texto "Chatea con nosotros" */
.sm-chat-label {
    position: absolute !important;
    right: 85px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: white !important;
    color: #0B91CA !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    animation: sm-slide-label 3s ease-in-out 1s infinite !important;
    pointer-events: none !important;
}

@keyframes sm-slide-label {
    0%, 70%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    10%, 60% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Hidden state */
#sm-chat-btn-wrap.hidden {
    transform: scale(0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s !important;
}

/* Contenedor del chatbot */
#sm-chat-wrap {
    position: fixed !important;
    bottom: 100px !important;
    z-index: 2147483646 !important;
    width: 420px !important;
    max-width: calc(100vw - 32px) !important;
    height: 650px !important;
    max-height: calc(100vh - 120px) !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16) !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#sm-chat-wrap.sm-position-right {
    right: 24px !important;
}

#sm-chat-wrap.sm-position-left {
    left: 24px !important;
}

#sm-chat-wrap.sm-show,
#sm-chat-wrap.open {
    display: flex !important;
    animation: sm-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes sm-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
#sm-chat-header {
    background: linear-gradient(135deg, #0B91CA 0%, #0052CC 100%) !important;
    color: white !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
}

#sm-chat-header-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
}

#sm-chat-header-avatar {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

#sm-chat-header-text {
    flex: 1 !important;
}

#sm-chat-header-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#sm-chat-header-status {
    font-size: 13px !important;
    opacity: 0.9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-status-dot {
    width: 8px !important;
    height: 8px !important;
    background: #4ADE80 !important;
    border-radius: 50% !important;
    animation: sm-pulse-dot 2s infinite !important;
}

@keyframes sm-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#sm-close-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease !important;
    flex-shrink: 0 !important;
    outline: none !important;
}

#sm-close-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

#sm-close-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: white !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
}

/* Área de mensajes */
#sm-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    background: #F7F9FC !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

#sm-messages::-webkit-scrollbar {
    width: 6px !important;
}

#sm-messages::-webkit-scrollbar-track {
    background: transparent !important;
}

#sm-messages::-webkit-scrollbar-thumb {
    background: #CBD5E1 !important;
    border-radius: 10px !important;
}

#sm-messages::-webkit-scrollbar-thumb:hover {
    background: #94A3B8 !important;
}

/* Mensaje individual */
.sm-msg {
    display: flex !important;
    gap: 10px !important;
    max-width: 85% !important;
    animation: sm-fade-in 0.3s ease !important;
}

@keyframes sm-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-msg.sm-user {
    margin-left: auto !important;
    flex-direction: row-reverse !important;
}

.sm-msg-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0B91CA 0%, #0052CC 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

.sm-msg.sm-user .sm-msg-avatar {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
}

.sm-msg-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.sm-msg-bubble {
    background: white !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1A1A1A !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-msg.sm-user .sm-msg-bubble {
    background: linear-gradient(135deg, #0B91CA 0%, #0052CC 100%) !important;
    color: white !important;
    border-bottom-right-radius: 4px !important;
}

.sm-msg.sm-bot .sm-msg-bubble {
    border-bottom-left-radius: 4px !important;
}

.sm-msg-time {
    font-size: 11px !important;
    color: #666666 !important;
    padding: 0 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Quick Replies */
/* Quick Replies - ULTRA SOPHISTICATION */
.sm-quick-replies {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 12px 0 8px 0 !important;
    padding: 0 !important;
}

.sm-qr-btn {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%) !important;
    border: 2px solid #0B91CA !important;
    color: #0B91CA !important;
    padding: 12px 20px !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(11, 145, 202, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
}

.sm-qr-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(11, 145, 202, 0.2) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

.sm-qr-btn:hover::before {
    width: 300px !important;
    height: 300px !important;
}

.sm-qr-btn:hover {
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(11, 145, 202, 0.4) !important;
    border-color: #0878AD !important;
}

.sm-qr-btn:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(11, 145, 202, 0.3) !important;
}

/* Indicador de escritura */
.sm-typing {
    display: flex !important;
    gap: 10px !important;
    max-width: 85% !important;
    animation: sm-fade-in 0.3s ease !important;
}

.sm-typing-bubble {
    background: white !important;
    padding: 16px !important;
    border-radius: 12px !important;
    border-bottom-left-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
}

.sm-typing-dot {
    width: 8px !important;
    height: 8px !important;
    background: #666666 !important;
    border-radius: 50% !important;
    animation: sm-typing 1.4s infinite !important;
}

.sm-typing-dot:nth-child(2) {
    animation-delay: 0.2s !important;
}

.sm-typing-dot:nth-child(3) {
    animation-delay: 0.4s !important;
}

@keyframes sm-typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Área de input */
#sm-input-area {
    padding: 16px 20px !important;
    background: white !important;
    border-top: 1px solid #E5E7EB !important;
    display: flex !important;
    gap: 12px !important;
    align-items: flex-end !important;
    flex-shrink: 0 !important;
}

#sm-textarea {
    flex: 1 !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 24px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    resize: none !important;
    max-height: 100px !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #1A1A1A !important;
    outline: none !important;
    background: white !important;
}

#sm-textarea:focus {
    border-color: #0B91CA !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
}

#sm-textarea::placeholder {
    color: #666666 !important;
}

#sm-send-btn {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, #0B91CA 0%, #0052CC 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    outline: none !important;
}

#sm-send-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3) !important;
}

#sm-send-btn:active {
    transform: scale(0.95) !important;
}

#sm-send-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

#sm-send-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: white !important;
    stroke-width: 2 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Card de bienvenida */
.sm-welcome {
    background: linear-gradient(135deg, #0B91CA 0%, #0052CC 100%) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2) !important;
    margin-bottom: 8px !important;
}

.sm-welcome-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-welcome-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    opacity: 0.95 !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* GRID DE SERVICIOS - ULTRA SOPHISTICATION */
.sm-services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 16px 0 !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    padding: 4px !important;
}

.sm-service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%) !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 16px !important;
    padding: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-height: 140px !important;
    position: relative !important;
    overflow: hidden !important;
}

.sm-service-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #0B91CA 0%, #0878AD 100%) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.sm-service-card:hover::before {
    transform: scaleX(1) !important;
}

.sm-service-card:hover {
    border-color: #0B91CA !important;
    background: linear-gradient(135deg, rgba(11, 145, 202, 0.05) 0%, rgba(11, 145, 202, 0.1) 100%) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(11, 145, 202, 0.2) !important;
}

.sm-service-card:active {
    transform: translateY(-2px) scale(0.98) !important;
}

.sm-service-icon {
    font-size: 36px !important;
    margin-bottom: 10px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

.sm-service-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

.sm-service-price {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0B91CA !important;
    margin-bottom: 6px !important;
}

.sm-service-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11px !important;
    color: #6B7280 !important;
    line-height: 1.4 !important;
}

.sm-services-footer {
    margin: 16px 0 8px 0 !important;
    text-align: center !important;
}

.sm-other-service-btn {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%) !important;
    border: 2px solid #6B7280 !important;
    color: #4B5563 !important;
    padding: 12px 24px !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.sm-other-service-btn:hover {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%) !important;
    color: white !important;
    border-color: #374151 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.sm-other-service-btn:active {
    transform: translateY(0) !important;
}

/* Scrollbar personalizado para el grid */
.sm-services-grid::-webkit-scrollbar {
    width: 6px !important;
}

.sm-services-grid::-webkit-scrollbar-track {
    background: #F3F4F6 !important;
    border-radius: 10px !important;
}

.sm-services-grid::-webkit-scrollbar-thumb {
    background: #0B91CA !important;
    border-radius: 10px !important;
}

.sm-services-grid::-webkit-scrollbar-thumb:hover {
    background: #0878AD !important;
}

/* Responsive */
@media (max-width: 480px) {
    #sm-chat-wrap {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
    }
    
    #sm-chat-header {
        padding: 16px !important;
    }
    
    #sm-messages {
        padding: 16px !important;
    }
    
    #sm-input-area {
        padding: 12px 16px !important;
    }
    
    #sm-chat-btn-wrap {
        bottom: 16px !important;
        right: 16px !important;
    }
    
    #sm-chat-btn {
        width: 56px !important;
        height: 56px !important;
    }
    
    #sm-chat-btn svg {
        width: 28px !important;
        height: 28px !important;
    }
}

/* FORMULARIO DE CAPTURA DE LEADS */
.sm-lead-form {
    padding: 25px !important;
    animation: sm-fade-in 0.4s ease !important;
}

@keyframes sm-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sm-lead-header {
    text-align: center !important;
    margin-bottom: 25px !important;
}

.sm-lead-icon {
    font-size: 48px !important;
    margin-bottom: 15px !important;
    animation: sm-wave 2s ease-in-out infinite !important;
}

@keyframes sm-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.sm-lead-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-lead-subtitle {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.6 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-lead-fields {
    margin: 20px 0 !important;
}

.sm-field-group {
    margin-bottom: 18px !important;
}

.sm-field-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-field-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.sm-field-input:focus {
    border-color: #0B91CA !important;
    box-shadow: 0 0 0 3px rgba(11, 145, 202, 0.1) !important;
}

.sm-field-input.error {
    border-color: #EF4444 !important;
    animation: sm-shake 0.3s ease !important;
}

@keyframes sm-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.sm-lead-submit {
    width: 100% !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(11, 145, 202, 0.3) !important;
}

.sm-lead-submit:hover {
    background: linear-gradient(135deg, #0878AD 0%, #0B91CA 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(11, 145, 202, 0.4) !important;
}

.sm-lead-submit:active {
    transform: translateY(0) !important;
}

/* MENSAJES DE BIENVENIDA */
.sm-welcome-message {
    padding: 20px !important;
    animation: sm-fade-in 0.5s ease !important;
}

.sm-bot-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 20px !important;
    border: 3px solid #0B91CA !important;
    box-shadow: 0 4px 12px rgba(11, 145, 202, 0.2) !important;
}

.sm-bot-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.sm-welcome-bubble {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    padding: 20px !important;
    border-radius: 16px !important;
    border: 2px solid #0B91CA !important;
}

.sm-welcome-bubble h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0B91CA !important;
    margin-bottom: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-welcome-bubble p {
    font-size: 15px !important;
    color: #1F2937 !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-welcome-bubble p:last-child {
    margin-bottom: 0 !important;
}

/* MENSAJES DEL CHAT */
.sm-message {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    animation: sm-fade-in 0.3s ease !important;
}

.sm-user-message {
    flex-direction: row-reverse !important;
}

.sm-bot-message {
    flex-direction: row !important;
}

.sm-message-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #F3F4F6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.sm-bot-message .sm-message-avatar {
    border: 2px solid #0B91CA !important;
}

.sm-bot-message .sm-message-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.sm-message-content {
    max-width: 75% !important;
}

.sm-message-bubble {
    padding: 12px 16px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    word-wrap: break-word !important;
}

.sm-user-message .sm-message-bubble {
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border-bottom-right-radius: 4px !important;
}

.sm-bot-message .sm-message-bubble {
    background: #F3F4F6 !important;
    color: #1F2937 !important;
    border-bottom-left-radius: 4px !important;
}

.sm-message-time {
    font-size: 11px !important;
    color: #9CA3AF !important;
    margin-top: 4px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-user-message .sm-message-time {
    text-align: right !important;
}

.sm-bot-message .sm-message-time {
    text-align: left !important;
}

/* ========================================
   v3.5 FIXED - ESTILOS CORREGIDOS
======================================== */

/* FORMULARIO COMPACTO - SIN LOGO GIGANTE */
.sm-lead-form-compact {
    padding: 20px !important;
    animation: sm-fade-in 0.4s ease !important;
}

.sm-form-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.sm-form-icon {
    font-size: 42px !important;
    margin-bottom: 10px !important;
    animation: sm-wave 2s ease-in-out infinite !important;
}

.sm-form-header h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-form-header p {
    font-size: 13px !important;
    color: #6B7280 !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-form-fields {
    margin: 15px 0 !important;
}

.sm-input-field {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    margin-bottom: 12px !important;
}

.sm-input-field:focus {
    border-color: #0B91CA !important;
    box-shadow: 0 0 0 3px rgba(11, 145, 202, 0.1) !important;
}

.sm-input-field.error {
    border-color: #EF4444 !important;
    animation: sm-shake 0.3s ease !important;
}

.sm-form-submit {
    width: 100% !important;
    padding: 13px !important;
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(11, 145, 202, 0.3) !important;
}

.sm-form-submit:hover {
    background: linear-gradient(135deg, #0878AD 0%, #0B91CA 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(11, 145, 202, 0.4) !important;
}

/* MENSAJES DEL BOT - SIN LOGO GIGANTE */
.sm-bot-msg {
    padding: 15px 20px !important;
    animation: sm-fade-in 0.4s ease !important;
}

.sm-bot-bubble {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    padding: 16px !important;
    border-radius: 14px !important;
    border: 2px solid #0B91CA !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1F2937 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-bot-bubble strong {
    color: #0B91CA !important;
    font-size: 16px !important;
}

.sm-bot-bubble p {
    margin: 8px 0 !important;
}

.sm-bot-bubble p:last-child {
    margin-bottom: 0 !important;
}

/* MENSAJES DE CHAT - COMPACTOS */
.sm-msg {
    padding: 8px 20px !important;
    animation: sm-fade-in 0.3s ease !important;
}

.sm-msg.sm-user {
    display: flex !important;
    justify-content: flex-end !important;
}

.sm-msg.sm-bot {
    display: flex !important;
    justify-content: flex-start !important;
}

.sm-msg-bubble {
    max-width: 75% !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    word-wrap: break-word !important;
}

.sm-user .sm-msg-bubble {
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border-bottom-right-radius: 4px !important;
}

.sm-bot .sm-msg-bubble {
    background: #F3F4F6 !important;
    color: #1F2937 !important;
    border-bottom-left-radius: 4px !important;
}

/* BOTÓN "OTRA CONSULTA" */
.sm-other-btn-wrap {
    text-align: center !important;
    padding: 15px 20px !important;
}

.sm-other-btn {
    background: white !important;
    border: 2px solid #6B7280 !important;
    color: #4B5563 !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-other-btn:hover {
    background: #4B5563 !important;
    color: white !important;
    border-color: #4B5563 !important;
    transform: translateY(-2px) !important;
}

/* STATUS DOT ANIMADO */
.sm-status-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #10B981 !important;
    margin-right: 6px !important;
    animation: sm-pulse-dot 2s ease-in-out infinite !important;
}

@keyframes sm-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* MEJORAR HEADER */
#sm-chat-header-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    flex-shrink: 0 !important;
}

#sm-chat-header-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 4px !important;
}

#sm-close-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

#sm-close-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

#sm-close-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: white !important;
}

/* ========================================
   v3.6 FINAL - SIN SOLAPAMIENTO + INTERACTIVO
======================================== */

/* FORMULARIO - COMPACTO Y CLARO */
.sm-form-container {
    padding: 25px !important;
    text-align: center !important;
}

.sm-form-icon {
    font-size: 48px !important;
    margin-bottom: 12px !important;
}

.sm-form-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 8px !important;
}

.sm-form-subtitle {
    font-size: 13px !important;
    color: #6B7280 !important;
    margin-bottom: 20px !important;
}

.sm-form-inputs {
    margin-bottom: 16px !important;
}

.sm-field {
    width: 100% !important;
    padding: 12px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s !important;
}

.sm-field:focus {
    border-color: #0B91CA !important;
    outline: none !important;
}

.sm-field.error {
    border-color: #EF4444 !important;
}

.sm-submit-btn {
    width: 100% !important;
    padding: 13px !important;
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* BIENVENIDA - SIN SOLAPAMIENTO */
.sm-welcome-block {
    padding: 20px !important;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    border-radius: 14px !important;
    margin: 15px !important;
    border: 2px solid #0B91CA !important;
}

.sm-welcome-block strong {
    font-size: 18px !important;
    color: #0B91CA !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.sm-welcome-block p {
    font-size: 14px !important;
    color: #1F2937 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* GRID - LIMPIO */
.sm-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 15px !important;
    max-height: 360px !important;
    overflow-y: auto !important;
}

.sm-card {
    background: white !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 16px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.sm-card:hover {
    border-color: #0B91CA !important;
    background: linear-gradient(135deg, rgba(11, 145, 202, 0.05) 0%, rgba(11, 145, 202, 0.1) 100%) !important;
    transform: translateY(-3px) !important;
}

.sm-card-icon {
    font-size: 32px !important;
    margin-bottom: 8px !important;
}

.sm-card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 6px !important;
}

.sm-card-price {
    font-size: 12px !important;
    color: #0B91CA !important;
    font-weight: 600 !important;
}

.sm-footer {
    text-align: center !important;
    padding: 15px !important;
}

.sm-other-btn {
    background: white !important;
    border: 2px solid #6B7280 !important;
    color: #4B5563 !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* MENSAJES - CLAROS */
.sm-user-msg,
.sm-bot-msg {
    padding: 10px 20px !important;
    margin-bottom: 12px !important;
}

.sm-user-msg {
    display: flex !important;
    justify-content: flex-end !important;
}

.sm-bot-msg {
    display: flex !important;
    justify-content: flex-start !important;
}

.sm-bubble {
    max-width: 80% !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.sm-user-bubble {
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border-bottom-right-radius: 4px !important;
}

.sm-bot-bubble {
    background: #F3F4F6 !important;
    color: #1F2937 !important;
    border-bottom-left-radius: 4px !important;
}

/* BOTONES DE ACCIÓN - MUY INTERACTIVOS */
.sm-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    margin-bottom: 12px !important;
}

.sm-action-btn {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%) !important;
    border: 2px solid #0B91CA !important;
    color: #0B91CA !important;
    padding: 10px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    flex: 1 1 auto !important;
    min-width: 45% !important;
}

.sm-action-btn:hover {
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(11, 145, 202, 0.3) !important;
}

.sm-action-btn:active {
    transform: translateY(0) !important;
}

/* ========================================
   v3.7 PRO SALES - VENDEDOR PROFESIONAL
======================================== */

/* OCULTAR BOTÓN CUANDO CHAT ABIERTO */
#sm-chat-btn-wrap.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* BADGES EN SERVICIOS */
.sm-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 16px !important;
    animation: sm-pulse-badge 1.5s ease-in-out infinite !important;
}

@keyframes sm-pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* CARDS CON BADGES */
.sm-card {
    position: relative !important;
}

/* MENSAJES CON FORMATO RICO */
.sm-bot-bubble strong {
    color: #0B91CA !important;
    font-weight: 700 !important;
}

/* BOTONES DE ACCIÓN MÁS LLAMATIVOS */
.sm-action-btn {
    position: relative !important;
    overflow: hidden !important;
}

.sm-action-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

.sm-action-btn:hover::before {
    width: 300px !important;
    height: 300px !important;
}

/* ANIMACIÓN DE TYPING INDICATOR */
@keyframes sm-typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* NOTIFICACIÓN CON URGENCIA */
.sm-notification {
    animation: sm-shake-notification 0.5s ease !important;
}

@keyframes sm-shake-notification {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


/* ========================================
   v3.8 PERFECT - MEJORAS VISUALES
======================================== */

/* FORMULARIO - DISTRIBUCIÓN MEJORADA */
.sm-form-wrap {
    padding: 20px !important;
}

.sm-form-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.sm-form-emoji {
    font-size: 40px !important;
    margin-bottom: 10px !important;
}

.sm-form-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

.sm-form-subtitle {
    font-size: 13px !important;
    color: #6B7280 !important;
    line-height: 1.4 !important;
}

.sm-form-body {
    margin-top: 15px !important;
}

.sm-form-row {
    margin-bottom: 12px !important;
}

.sm-input {
    width: 100% !important;
    padding: 12px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

.sm-input:focus {
    border-color: #0B91CA !important;
    outline: none !important;
}

.sm-input.error {
    border-color: #EF4444 !important;
    animation: sm-shake 0.3s !important;
}

.sm-btn-primary {
    width: 100% !important;
    padding: 13px !important;
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.sm-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(11, 145, 202, 0.4) !important;
}

.sm-form-footer {
    text-align: center !important;
    font-size: 11px !important;
    color: #9CA3AF !important;
    margin-top: 10px !important;
}

/* MENSAJE DE BIENVENIDA */
.sm-welcome-msg {
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    border-radius: 12px !important;
    margin: 15px !important;
    border: 2px solid #0B91CA !important;
}

.sm-welcome-msg strong {
    font-size: 15px !important;
    color: #0B91CA !important;
    line-height: 1.6 !important;
    display: block !important;
}

/* SERVICIOS - GRID COMPACTO */
.sm-services {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 15px !important;
}

.sm-service {
    position: relative !important;
    background: white !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 14px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.sm-service:hover {
    border-color: #0B91CA !important;
    background: linear-gradient(135deg, rgba(11, 145, 202, 0.05) 0%, rgba(11, 145, 202, 0.1) 100%) !important;
    transform: translateY(-2px) !important;
}

.sm-service-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 14px !important;
    animation: sm-pulse-badge 1.5s ease-in-out infinite !important;
}

.sm-service-icon {
    font-size: 28px !important;
    margin-bottom: 6px !important;
}

.sm-service-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 4px !important;
}

.sm-service-price {
    font-size: 11px !important;
    color: #0B91CA !important;
    font-weight: 600 !important;
}

.sm-other-wrap {
    text-align: center !important;
    padding: 10px 15px !important;
}

.sm-btn-secondary {
    background: white !important;
    border: 2px solid #6B7280 !important;
    color: #4B5563 !important;
    padding: 10px 18px !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.sm-btn-secondary:hover {
    background: #4B5563 !important;
    color: white !important;
}

/* MENSAJES */
.sm-msg {
    padding: 8px 15px !important;
    margin-bottom: 10px !important;
}

.sm-msg.sm-user {
    display: flex !important;
    justify-content: flex-end !important;
}

.sm-msg.sm-bot {
    display: flex !important;
    justify-content: flex-start !important;
}

.sm-msg-bubble {
    max-width: 75% !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.sm-user .sm-msg-bubble {
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    border-bottom-right-radius: 4px !important;
}

.sm-bot .sm-msg-bubble {
    background: #F3F4F6 !important;
    color: #1F2937 !important;
    border-bottom-left-radius: 4px !important;
}

/* ACCIONES */
.sm-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 8px 15px !important;
    margin-bottom: 10px !important;
}

.sm-action {
    background: white !important;
    border: 2px solid #0B91CA !important;
    color: #0B91CA !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    flex: 1 1 auto !important;
    min-width: 45% !important;
}

.sm-action:hover {
    background: linear-gradient(135deg, #0B91CA 0%, #0878AD 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(11, 145, 202, 0.3) !important;
}

/* TYPING INDICATOR */
.sm-typing {
    padding: 10px 15px !important;
    font-size: 12px !important;
    color: #9CA3AF !important;
    font-style: italic !important;
}

/* BADGE DEL BOTÓN - BIEN POSICIONADO */
#sm-chat-btn {
    position: relative !important;
}

.sm-notify-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #EF4444 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .sm-services {
        grid-template-columns: 1fr !important;
    }
    
    .sm-action {
        min-width: 100% !important;
    }
}

/* ========================================
   v3.9 FINAL - CORRECCIÓN APPS + LINKS
======================================== */

/* GRID DE SERVICIOS - FORZAR 2 COLUMNAS */
.sm-services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 15px !important;
}

.sm-service-card {
    position: relative !important;
    background: white !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 14px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 110px !important;
}

.sm-service-card:hover {
    border-color: #0B91CA !important;
    background: linear-gradient(135deg, rgba(11, 145, 202, 0.05) 0%, rgba(11, 145, 202, 0.1) 100%) !important;
    transform: translateY(-2px) !important;
}

.sm-service-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 14px !important;
    animation: sm-pulse-badge 1.5s ease-in-out infinite !important;
}

.sm-service-icon {
    font-size: 28px !important;
    margin-bottom: 6px !important;
}

.sm-service-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    margin-bottom: 4px !important;
}

.sm-service-price {
    font-size: 11px !important;
    color: #0B91CA !important;
    font-weight: 600 !important;
}

/* LINKS EN MENSAJES */
.sm-msg-bubble a {
    color: #0B91CA !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.sm-msg-bubble a:hover {
    color: #0878AD !important;
    text-decoration: none !important;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .sm-services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   v4.0 PERFECTO - PROYECTOS CLICABLES
======================================== */

/* LISTA DE PROYECTOS */
.sm-projects-list {
    padding: 10px 15px !important;
    margin: 10px 0 !important;
}

.sm-project-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    margin: 8px 0 !important;
    background: white !important;
    border-radius: 10px !important;
    border: 2px solid #E5E7EB !important;
    transition: all 0.3s !important;
}

.sm-project-item:hover {
    border-color: #0B91CA !important;
    background: #F0F9FF !important;
    transform: translateX(4px) !important;
}

.sm-project-icon {
    font-size: 24px !important;
    flex-shrink: 0 !important;
}

.sm-project-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.sm-project-link {
    color: #0B91CA !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.sm-project-link:hover {
    color: #0878AD !important;
    text-decoration: underline !important;
}

.sm-project-desc {
    font-size: 12px !important;
    color: #6B7280 !important;
}

/* LINKS EN MENSAJES DEL BOT */
.sm-bot .sm-msg-bubble a {
    color: #0B91CA !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.sm-bot .sm-msg-bubble a:hover {
    color: #0878AD !important;
}
