/**
 * ===== OUTLETTECH - ESTILOS PERSONALIZADOS =====
 * 
 * TRAINEE NOTE: Estilos adicionales y componentes personalizados
 * separados del archivo principal para mejor organización
 */

/* ===== WHATSAPP FLOATING BUTTON ===== */
/* TRAINEE NOTE: Botón flotante fijo que permanece visible en toda la página */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366; /* Color oficial de WhatsApp */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000; /* TRAINEE: z-index alto para que esté siempre encima */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Color más oscuro al hover */
    color: white;
    transform: scale(1.1); /* Efecto de crecimiento al hover */
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Animación de pulso para llamar la atención */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite;
    opacity: 0;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ===== INDICADOR DE SEGURIDAD PARA WHATSAPP =====
   GUÍA: Badge que indica que el botón está protegido por medidas de seguridad */
.security-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #22c55e; /* Verde de verificación */
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    animation: securityPulse 3s infinite;
    z-index: 1001; /* Por encima del botón WhatsApp */
}

/* Animación especial para el indicador de seguridad */
@keyframes securityPulse {
    0%, 70%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    35% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
}

/* Tooltip que aparece al hacer hover sobre el badge */
.security-badge::after {
    content: 'Protegido';
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.security-badge:hover::after {
    opacity: 1;
}

/* TRAINEE NOTE: Responsive - En móviles el botón es un poco más pequeño */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
    
    /* Badge más pequeño en móviles */
    .security-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -3px;
        right: -3px;
    }
}