/* Modern Social Media and Counter Styles */
.social-media-section {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 18px;
    z-index: 2;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

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

/* Modern Counter Styles */
.visit-counter {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.visit-counter:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.counter-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-digits {
    display: flex;
    gap: 2px;
}

.counter-digit {
    width: 20px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.counter-digit.updating {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-media-section {
        padding: 5px 0;
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 16px;
    }
    
    .visit-counter {
        padding: 6px 12px;
    }
    
    .counter-label {
        font-size: 10px;
        margin-right: 6px;
    }
    
    .counter-digit {
        width: 18px;
        height: 20px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .social-media-section {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link i {
        font-size: 14px;
    }
    
    .visit-counter {
        padding: 5px 10px;
    }
    
    .counter-digit {
        width: 16px;
        height: 18px;
        font-size: 11px;
    }
}

/* Animation for counter digits */
@keyframes digitFlip {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.counter-digit.updating {
    animation: digitFlip 0.6s ease-in-out;
}

/* Pulse animation for social links */
@keyframes socialPulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
}

.social-link.whatsapp:hover {
    animation: socialPulse 2s infinite;
}

@keyframes socialPulseFacebook {
    0% { box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(24, 119, 242, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); }
}

.social-link.facebook:hover {
    animation: socialPulseFacebook 2s infinite;
}