/* Botones flotantes de redes sociales */
.floating-social-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.floating-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.floating-button {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(252, 67, 3, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, #FC4303, #FF6B35);
    z-index: 10001;
}

.floating-button:nth-child(1) { animation-delay: 0s; }
.floating-button:nth-child(2) { animation-delay: 0.5s; }
.floating-button:nth-child(3) { animation-delay: 1s; }
.floating-button:nth-child(4) { animation-delay: 1.5s; }

.floating-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.floating-button:hover::before {
    transform: scale(1);
}

.floating-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(252, 67, 3, 0.5);
    background: linear-gradient(135deg, #FF6B35, #FC4303);
}

.floating-button .icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    z-index: 2;
}

.floating-button:hover .icon {
    transform: rotate(15deg) scale(1.1);
}

/* Tooltip */
.floating-button .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(252, 67, 3, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 67, 3, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10002;
    pointer-events: none;
}

.floating-button .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid rgba(252, 67, 3, 0.95);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.floating-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Mensajes promocionales - ESTRUCTURA CORREGIDA */
.promo-messages-container {
    position: absolute;
    right: 80px;
    top: 0;
    height: 100%;
    width: 200px;
    pointer-events: none;
    z-index: 10003;
}

.promo-message {
    position: absolute;
    right: 0;
    background: linear-gradient(135deg, #FC4303, #FF6B35);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(252, 67, 3, 0.4);
    backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 10004;
    transform: translateX(20px);
}

.promo-message.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    animation: messagePulse 3s ease-in-out;
}

.promo-message::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid #FC4303;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

@keyframes messagePulse {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(0) scale(1.05);
    }
}

/* Efectos de partículas para hover */
.floating-button .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

.floating-button .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 2s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) translateX(10px) rotate(180deg);
        opacity: 0;
    }
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-social-container {
    animation: slideInRight 0.8s ease-out;
}

/* Animación de flotación */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Efecto de pulso para llamar la atención */
@keyframes attentionPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(252, 67, 3, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(252, 67, 3, 0);
    }
}

.attention {
    animation: attentionPulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-social-container {
        right: 10px;
    }
    
    .floating-social-buttons {
        gap: 10px;
    }
    
    .floating-button {
        width: 50px;
        height: 50px;
    }
    
    .floating-button .icon {
        width: 25px;
        height: 25px;
    }
    
    .floating-button .tooltip,
    .promo-messages-container {
        display: none;
    }
}