/* ==========================================================================
   ESTILOS PREMIUM PARA WIDGETS DE DEMOSTRACIÓN Y VENTAS
   ========================================================================== */

/* WIDGET 1: INTEGRACIÓN EN EL FORMULARIO */
.demo-login-integration {
    width: 100%;
    margin-top: 25px;
    animation: fadeIn 0.6s ease-out forwards;
}

.demo-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.demo-divider::before,
.demo-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--pos-border, #e2e8f0);
}

.demo-divider span {
    padding: 0 15px;
    color: var(--pos-muted, #64748b);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-roles-container {
    display: flex;
    gap: 15px;
}

.demo-role-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.demo-role-btn i {
    font-size: 20px;
}

.admin-btn {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--pos-accent, #2563eb);
    border-color: rgba(37, 99, 235, 0.2);
}

.admin-btn:hover {
    background-color: var(--pos-accent, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.caja-btn {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--pos-success, #10b981);
    border-color: rgba(16, 185, 129, 0.2);
}

.caja-btn:hover {
    background-color: var(--pos-success, #10b981);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.2);
}

/* WIDGET 2: WHATSAPP FLOTANTE */
.demo-wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 9999;
}

.wa-tooltip {
    background: var(--pos-surface, #ffffff);
    color: var(--pos-text, #0f172a);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-right: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--pos-border, #e2e8f0);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    position: relative;
}

.wa-tooltip::after {
    content: ''; position: absolute; top: 50%; right: -6px; transform: translateY(-50%);
    border-width: 6px 0 6px 6px; border-style: solid;
    border-color: transparent transparent transparent var(--pos-surface, #ffffff);
}

.demo-wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

.wa-icon-container {
    width: 65px; height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.wa-icon-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%; border: 2px solid #25D366;
    animation: waPulse 2s infinite;
}

@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Adaptación para móviles */
@media (max-width: 768px) {
    .demo-roles-container { flex-direction: column; }
    .demo-wa-float { bottom: 20px; right: 20px; }
    .wa-icon-container { width: 55px; height: 55px; font-size: 30px; }
    .wa-tooltip { display: none; }
}