/*Whatsapp float*/
.whatsapp-float {
    position: fixed;
    right: 0px;
    bottom: 80px; /* Ajusta la altura */
    background-color: #25D366;
    color: #fff;
    font-size: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px 0 0 30px; /* Bordes redondeados en la izquierda */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.whatsapp-float:hover {
    background-color: #fff;
    color: #25D366;
    transform: scale(1.1);
}

/*social float*/
.social-float {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.social-float a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.social-float a:hover {
    transform: scale(1.15) translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

/* LinkedIn */
.social-float a.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-float a.linkedin:hover {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

/* Facebook */
.social-float a.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
}

.social-float a.facebook:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

/* Instagram */
.social-float a.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-float a.instagram:hover {
    background: linear-gradient(45deg, #ffb347 0%, #ff6b4a 25%, #e8395a 50%, #d93d7a 75%, #c92498 100%);
}

/* Twitter/X */
.social-float a.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
}

.social-float a.twitter:hover {
    background: linear-gradient(135deg, #33b5ff 0%, #1a9fe0 100%);
}

/* YouTube */
.social-float a.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-float a.youtube:hover {
    background: linear-gradient(135deg, #ff3333 0%, #e60000 100%);
}

/* Spotify */
.social-float a.spotify {
    background: linear-gradient(135deg, #1db954 0%, #169c46 100%);
}

.social-float a.spotify:hover {
    background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
}

/* Iconos SVG */
.social-float a svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.social-float a:hover svg {
    transform: scale(1.1);
}

/* Tooltip */
.social-float a::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 65px;
    background-color: #333;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-float a::after {
    content: '';
    position: absolute;
    left: 57px;
    border: 6px solid transparent;
    border-right-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-float a:hover::before,
.social-float a:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Animación de entrada */
.social-float a {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.social-float a:nth-child(1) {
    animation-delay: 0.1s;
}
.social-float a:nth-child(2) {
    animation-delay: 0.2s;
}
.social-float a:nth-child(3) {
    animation-delay: 0.3s;
}
.social-float a:nth-child(4) {
    animation-delay: 0.4s;
}
.social-float a:nth-child(5) {
    animation-delay: 0.5s;
}
.social-float a:nth-child(6) {
    animation-delay: 0.6s;
}

.afternav{
    margin-top: 80px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efecto pulse opcional */
.social-float a.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}