/* Redes Sociales Container */
.social-container {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 1s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Título Redes Sociales */
.social-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Container de Enlaces */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Enlaces Individuales */
.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.social-links a:hover::before {
    transform: translateX(100%);
}

/* Iconos PNG */
.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1) contrast(1);
    z-index: 2;
    position: relative;
}

/* Efectos Hover */
.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.social-links a:hover .social-icon {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2) contrast(1.1);
}

/* Colores específicos por red social */
.facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.2), rgba(66, 165, 245, 0.2));
}

.facebook:hover {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.4), rgba(66, 165, 245, 0.4));
    box-shadow: 0 12px 25px rgba(24, 119, 242, 0.4);
}

.tiktok {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(255, 0, 80, 0.2));
}

.tiktok:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(255, 0, 80, 0.4));
    box-shadow: 0 12px 25px rgba(255, 0, 80, 0.4);
}

.instagram {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.2), rgba(247, 119, 55, 0.2), rgba(252, 175, 69, 0.2));
}

.instagram:hover {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.4), rgba(247, 119, 55, 0.4), rgba(252, 175, 69, 0.4));
    box-shadow: 0 12px 25px rgba(228, 64, 95, 0.4);
}

.youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 68, 68, 0.2));
}

.youtube:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.4), rgba(255, 68, 68, 0.4));
    box-shadow: 0 12px 25px rgba(255, 0, 0, 0.4);
}

.whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
    position: relative;
}

.whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.4), rgba(18, 140, 126, 0.4));
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

/* Efecto de pulso para WhatsApp */
.whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 20px;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Animaciones de entrada escalonada */
.social-links a:nth-child(1) { animation: bounceInUp 0.8s ease-out 0.2s both; }
.social-links a:nth-child(2) { animation: bounceInUp 0.8s ease-out 0.4s both; }
.social-links a:nth-child(3) { animation: bounceInUp 0.8s ease-out 0.6s both; }
.social-links a:nth-child(4) { animation: bounceInUp 0.8s ease-out 0.8s both; }
.social-links a:nth-child(5) { animation: bounceInUp 0.8s ease-out 1.0s both; }

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    70% {
        transform: translateY(5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-container {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .social-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 70px;
        height: 70px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .social-container {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .social-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-links a {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }
}

/* Efectos especiales */
.social-container:hover .social-links a:not(:hover) {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Tooltip personalizado */
.social-links a {
    position: relative;
}

.social-links a::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.social-links a:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Efecto de brillo en los iconos */
.social-icon {
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover .social-icon::before {
    opacity: 1;
}

/* Animación especial para iconos PNG */
@keyframes iconGlow {
    0%, 100% {
        filter: brightness(1) contrast(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0));
    }
    50% {
        filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    }
}

.social-links a:hover .social-icon {
    animation: iconGlow 1s ease-in-out infinite;
}

/* Mejora en la carga de imágenes */
.social-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Fallback si no carga la imagen */
.social-icon:not([src]), .social-icon[src=""] {
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
}