/* Botones de Redes Sociales */
.social-buttons {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Posición flotante (por defecto) */
.social-buttons.floating {
    right: 20px;
    bottom: 20px;
}

/* Posición en el header */
.social-buttons.header {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 10px 0;
    background: var(--bs-light);
    border-radius: 8px;
    margin: 10px 0;
}

/* Botones de redes sociales en el menú horizontal */
.social-menu {
    padding: 8px 12px !important;
    margin: 0 1px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Contenedor para alinear los botones sociales a la derecha */
.navbar-nav {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Grupo de botones sociales pegados entre sí */
.navbar-nav .social-menu {
    margin-left: 0 !important;
}

.navbar-nav .social-menu:first-of-type {
    margin-left: 20px !important;
    position: relative;
}

.navbar-nav .social-menu:first-of-type::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
}

.social-menu:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-menu i {
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Colores específicos para botones en el menú */
.social-menu.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white !important;
}

.social-menu.facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    color: white !important;
}

.social-menu.instagram {
    background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045);
    color: white !important;
}

.social-menu.instagram:hover {
    background: linear-gradient(135deg, #d63384, #e91e63, #ff9800);
    color: white !important;
}

.social-menu.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white !important;
}

.social-menu.whatsapp:hover {
    background: linear-gradient(135deg, #1ea952, #0f7a6b);
    color: white !important;
}

.social-menu.telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white !important;
}

.social-menu.telegram:hover {
    background: linear-gradient(135deg, #0077b5, #1e88e5);
    color: white !important;
}

.social-menu.tiktok {
    background: linear-gradient(135deg, #000000, #ff0050);
    color: white !important;
}

.social-menu.tiktok:hover {
    background: linear-gradient(135deg, #333333, #ff1744);
    color: white !important;
}

.social-menu.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white !important;
}

.social-menu.youtube:hover {
    background: linear-gradient(135deg, #e60000, #b30000);
    color: white !important;
}

/* Responsive para botones en el menú */
@media (max-width: 768px) {
    .social-menu {
        padding: 6px 8px !important;
        margin: 0 1px !important;
    }
    
    .social-menu i {
        font-size: 14px;
    }
    
    .navbar-nav .social-menu:first-of-type {
        margin-left: 15px !important;
    }
}

@media (max-width: 480px) {
    .social-menu {
        padding: 4px 6px !important;
        margin: 0 1px !important;
    }
    
    .social-menu i {
        font-size: 12px;
    }
    
    .navbar-nav .social-menu:first-of-type {
        margin-left: 10px !important;
    }
    
    .navbar-nav .social-menu:first-of-type::before {
        display: none; /* Ocultar separador en móviles muy pequeños */
    }
}

/* Posición en el footer */
.social-buttons.footer {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 15px 0;
    background: var(--bs-dark);
    border-radius: 8px;
    margin-top: 20px;
}

/* Posición en sidebar */
.social-buttons.sidebar {
    position: fixed;
    left: 20px;
    bottom: 20px;
}

/* Estilos de botones individuales */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.social-btn:active {
    transform: translateY(-1px);
}

/* Colores específicos de cada red social */
.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045);
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, #d63384, #e91e63, #ff9800);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #1ea952, #0f7a6b);
}

.social-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
}

.social-btn.telegram:hover {
    background: linear-gradient(135deg, #0077b5, #1e88e5);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000, #ff0050);
}

.social-btn.tiktok:hover {
    background: linear-gradient(135deg, #333333, #ff1744);
}

.social-btn.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-btn.youtube:hover {
    background: linear-gradient(135deg, #e60000, #b30000);
}

/* Efectos adicionales */
.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-btn:hover::before {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .social-buttons.floating {
        right: 15px;
        bottom: 15px;
    }
    
    .social-buttons.sidebar {
        left: 15px;
        bottom: 15px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .social-buttons.header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .social-buttons.floating {
        right: 10px;
        bottom: 10px;
    }
    
    .social-buttons.sidebar {
        left: 10px;
        bottom: 10px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Animación de entrada */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.social-buttons.floating .social-btn {
    animation: slideInRight 0.5s ease forwards;
}

.social-buttons.sidebar .social-btn {
    animation: slideInLeft 0.5s ease forwards;
}

/* Delay para cada botón */
.social-btn:nth-child(1) { animation-delay: 0.1s; }
.social-btn:nth-child(2) { animation-delay: 0.2s; }
.social-btn:nth-child(3) { animation-delay: 0.3s; }
.social-btn:nth-child(4) { animation-delay: 0.4s; }
.social-btn:nth-child(5) { animation-delay: 0.5s; }
.social-btn:nth-child(6) { animation-delay: 0.6s; }
