/* ===== CHATBOT MEJORADO - ESTILOS UNIFICADOS ===== */

/* Contenedor del chat */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 380px;
    max-height: 95vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.chat-container.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .chat-container {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        bottom: 80px;
    }
}

/* Encabezado del chat */
.chat-header {
    background: #128C7E;
    color: #fff;
    padding: 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header small {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

.close-btn:hover {
    color: #e0e0e0;
}

/* ===== BOTÓN DE LIMPIEZA EN EL HEADER ===== */
.clear-header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.clear-header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.clear-header-btn:active {
    transform: scale(0.95);
}

/* Estilos para el botón deshabilitado */
.clear-header-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5 !important;
    transform: none !important;
}

.clear-header-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Animación de spinner */
.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cuerpo del chat */
.chat-body {
    flex: 1;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    scrollbar-width: thin;
    scrollbar-color: #128C7E #e0e0e0;
    position: relative;
}

.chat-body::-webkit-scrollbar {
    width: 8px;
}

.chat-body::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #128C7E;
    border-radius: 4px;
}

/* Mensajes */
.message {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in;
}

.message-bot {
    align-items: flex-start;
}

.message-user {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word;
}

.message-bot .message-content {
    background: white;
    border: 1px solid #e2e8f0;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message-user .message-content {
    background: #128C7E;
    color: #fff;
}

.message-time {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.ai-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.ai-dot {
    width: 6px;
    height: 6px;
    background: #128C7E;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* ===== BOTONES DE ACCESO RÁPIDO CON ESTILO METÁLICO NEÓN ===== */
.quick-replies.enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.quick-reply-btn.enhanced-btn.metallic-neon {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(66, 133, 244, 0.9) 0%, 
        rgba(66, 133, 244, 0.7) 50%, 
        rgba(66, 133, 244, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 
        0 0 10px rgba(66, 133, 244, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 45px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.7rem;
    text-align: center;
    justify-content: center;
}

.quick-reply-btn.enhanced-btn.metallic-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.quick-reply-btn.enhanced-btn.metallic-neon:hover::before {
    left: 100%;
}

.quick-reply-btn.enhanced-btn.metallic-neon:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(66, 133, 244, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.quick-reply-btn.enhanced-btn.metallic-neon i {
    font-size: 1rem;
    margin-bottom: 2px;
}

/* Colores específicos para cada botón con efecto neón */
.quick-reply-btn.enhanced-btn.metallic-neon:nth-child(1) { 
    background: linear-gradient(135deg, 
        rgba(66, 133, 244, 0.9) 0%, 
        rgba(66, 133, 244, 0.7) 50%, 
        rgba(66, 133, 244, 0.9) 100%) !important;
    box-shadow: 
        0 0 10px rgba(66, 133, 244, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.quick-reply-btn.enhanced-btn.metallic-neon:nth-child(2) { 
    background: linear-gradient(135deg, 
        rgba(235, 100, 32, 0.9) 0%, 
        rgba(235, 100, 32, 0.7) 50%, 
        rgba(235, 100, 32, 0.9) 100%) !important;
    box-shadow: 
        0 0 10px rgba(235, 100, 32, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.quick-reply-btn.enhanced-btn.metallic-neon:nth-child(3) { 
    background: linear-gradient(135deg, 
        rgba(52, 168, 83, 0.9) 0%, 
        rgba(52, 168, 83, 0.7) 50%, 
        rgba(52, 168, 83, 0.9) 100%) !important;
    box-shadow: 
        0 0 10px rgba(52, 168, 83, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.quick-reply-btn.enhanced-btn.metallic-neon:nth-child(4) { 
    background: linear-gradient(135deg, 
        rgba(251, 188, 5, 0.9) 0%, 
        rgba(251, 188, 5, 0.7) 50%, 
        rgba(251, 188, 5, 0.9) 100%) !important;
    box-shadow: 
        0 0 10px rgba(251, 188, 5, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.quick-reply-btn.enhanced-btn.metallic-neon:nth-child(5) { 
    background: linear-gradient(135deg, 
        rgba(156, 39, 176, 0.9) 0%, 
        rgba(156, 39, 176, 0.7) 50%, 
        rgba(156, 39, 176, 0.9) 100%) !important;
    box-shadow: 
        0 0 10px rgba(156, 39, 176, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.quick-reply-btn.enhanced-btn.metallic-neon:nth-child(6) { 
    background: linear-gradient(135deg, 
        rgba(37, 211, 102, 0.9) 0%, 
        rgba(37, 211, 102, 0.7) 50%, 
        rgba(37, 211, 102, 0.9) 100%) !important;
    box-shadow: 
        0 0 10px rgba(37, 211, 102, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* ===== TARJETAS DE NEGOCIOS MEJORADAS ===== */
.business-card.enhanced {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in;
    overflow: hidden;
}

.business-card.enhanced:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Encabezado de tarjeta mejorado */
.business-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.business-header .business-icon {
    font-size: 2rem;
}

.business-header .business-info-main {
    flex: 1;
}

.business-header .business-name {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.business-header .business-category {
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.business-status-compact {
    background: rgba(255,255,255,0.9);
    color: #065f46;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cuerpo de tarjeta mejorado */
.business-card-body {
    padding: 16px;
}

.business-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #4a5568;
}

.business-detail i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* Botones de acción mejorados */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    color: white;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.action-btn.web { background: #4285F4; }
.action-btn.maps { background: #EB6420; }
.action-btn.whatsapp { background: #25D366; }
.action-btn.phone { background: #008CBA; }
.action-btn.instagram { background: #E1306C; }

/* ===== TARJETAS DE OFERTAS MEJORADAS ===== */
.offer-card.enhanced {
    border: 2px solid #ff6a3c;
}

.offer-card .business-header {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.offer-badge {
    background: #ffd700;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== BOTONES ESPECIALES ===== */
.special-action-btn {
    margin: 15px 0;
}

.special-action-btn a {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.special-action-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== ENCABEZADOS DE CATEGORÍA ===== */
.business-category-header {
    margin: 15px 0 8px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #128C7E, #0e6b5f);
    border-radius: 8px;
    color: white;
}

.business-category-header h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== PIE DEL CHAT ===== */
.chat-footer {
    padding: 20px;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

#messageInput {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    outline: none;
}

#messageInput:focus {
    border-color: #128C7E;
}

.send-btn {
    background: #128C7E;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.send-btn:hover {
    background: #0e6b5f;
    transform: scale(1.1);
}

.text-muted {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

/* ===== ANIMACIONES MEJORADAS ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.message-animation {
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ESTILOS PARA ENLACES ===== */
.chat-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.chat-link:hover {
    text-decoration: underline;
}

.message-content a {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ===== BOTONES FIJOS EN LA PARTE INFERIOR ===== */
.chat-quick-replies-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%);
    padding: 15px 15px 10px 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* Botones FAQ compactos y fijos */
.faq-buttons-tech {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.faq-btn-tech {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-height: 40px;
    justify-content: center;
}

.faq-btn-tech:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.faq-icon {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.faq-text {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.6rem;
    line-height: 1;
    text-align: center;
}

/* Botón de soporte más compacto */
.faq-btn-tech.support-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* ===== RESPONSIVE MEJORADO ===== */
@media (max-width: 768px) {
    .clear-header-btn {
        width: 32px;
        height: 32px;
        padding: 6px 8px;
        font-size: 14px;
        margin-right: 8px;
    }

    .quick-replies.enhanced {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .quick-reply-btn.enhanced-btn.metallic-neon {
        min-height: 40px;
        padding: 6px 4px;
        font-size: 0.65rem;
    }
    
    .quick-reply-btn.enhanced-btn.metallic-neon i {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .faq-buttons-tech {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 6px;
    }
    
    .faq-btn-tech {
        padding: 5px 3px;
        font-size: 0.6rem;
        min-height: 35px;
    }
    
    .faq-icon {
        font-size: 0.8rem;
    }
    
    .faq-text {
        font-size: 0.55rem;
    }
    
    .chat-quick-replies-container {
        padding: 10px 10px 5px 10px;
    }
    
    .business-header {
        padding: 12px;
    }
    
    .business-header .business-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-buttons-tech {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-reply-btn.enhanced-btn.metallic-neon {
        font-size: 0.65rem;
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
}

/* Indicador de escritura */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    margin: 10px 0;
    animation: fadeIn 0.3s ease;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typingPulse 1.4s ease-in-out infinite both;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Mejoras en la legibilidad */
.message-content {
    line-height: 1.5;
}

.message-content strong {
    font-weight: 600;
}

.message-content em {
    font-style: italic;
}

/* Estados de carga */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
}

.loading-state i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}
/* ===== TARJETAS ESPECIALES PARA OFICIOS, EMPRENDIMIENTOS, ETC ===== */

/* Tarjeta de oficios */
.oficio-card.enhanced {
    border: 2px solid #34A853;
}

.oficio-card .business-header {
    background: linear-gradient(135deg, #34A853, #0F9D58);
}

/* Tarjeta de emprendimientos */
.emprendimiento-card.enhanced {
    border: 2px solid #FBBC05;
}

.emprendimiento-card .business-header {
    background: linear-gradient(135deg, #FBBC05, #F4B400);
}

/* Tarjeta de inscripción */
.inscripcion-card.enhanced {
    border: 2px solid #9C27B0;
}

.inscripcion-card .business-header {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

/* Tarjeta de soporte */
.soporte-card.enhanced {
    border: 2px solid #4285F4;
}

.soporte-card .business-header {
    background: linear-gradient(135deg, #4285F4, #3367D6);
}

/* Botones de acción especiales */
.special-action-btn {
    margin: 15px 0;
}

.special-action-btn a {
    display: block;
    text-align: center;
    padding: 12px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.special-action-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Colores específicos para cada botón especial */
.special-action-btn a[href*="comunidad-de-ofertas"] {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.special-action-btn a[href*="oficios-profesiones"] {
    background: linear-gradient(135deg, #34A853, #0F9D58);
}

.special-action-btn a[href*="emprendimientos"] {
    background: linear-gradient(135deg, #FBBC05, #F4B400);
}

.special-action-btn a[href*="inscripcion.html"] {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.special-action-btn a[href*="wa.me"] {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
/* ===== MEJORAS DE RENDIMIENTO Y ESTILOS ===== */

/* Animaciones optimizadas para mejor rendimiento */
.business-card.enhanced {
    will-change: transform;
    transform: translateZ(0);
}

/* Estados de carga mejorados */
.loading-optimized {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Botones de acción más responsivos */
.special-action-btn a {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.special-action-btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.special-action-btn a:hover::before {
    left: 100%;
}

/* Mejoras de scroll para mejor rendimiento */
.chat-body {
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}

/* Optimización para móviles */
@media (max-width: 768px) {
    .business-card.enhanced {
        margin: 8px 0;
    }
    
    .business-header {
        padding: 12px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ===== ESTILOS PARA EL SISTEMA DE VOZ ===== */

/* Botón de micrófono */
.mic-btn {
    background: #4285F4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.mic-btn:hover {
    background: #3367D6;
    transform: scale(1.1);
}

.mic-btn.listening {
    background: #EA4335;
    animation: pulse 1.5s infinite;
}

/* Botón de toggle de voz */
.voice-btn {
    background: #34A853;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.voice-btn:hover {
    background: #2E8B46;
    transform: scale(1.1);
}

.voice-btn.active {
    background: #EA4335;
    box-shadow: 0 0 10px rgba(234, 67, 53, 0.5);
}

/* Indicador de escucha */
.voice-listening-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #4285F4, #3367D6);
    color: white;
    border-radius: 12px;
    margin: 10px 0;
    animation: slideIn 0.3s ease;
}

.listening-animation {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: voicePulse 1.4s ease-in-out infinite both;
}

.pulse:nth-child(2) { animation-delay: 0.2s; }
.pulse:nth-child(3) { animation-delay: 0.4s; }

@keyframes voicePulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Texto reconocido */
.recognized-text-indicator {
    display: none;
    padding: 10px 16px;
    background: #E8F0FE;
    border: 1px solid #4285F4;
    border-radius: 12px;
    margin: 10px 0;
    animation: slideIn 0.3s ease;
}

.recognized-text {
    color: #4285F4;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recognized-text i {
    font-size: 12px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras responsive */
@media (max-width: 768px) {
    .mic-btn, .voice-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .voice-listening-indicator {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .recognized-text {
        font-size: 13px;
    }
}