/* Sección de Redes Sociales */
#redes-sociales {
    background: linear-gradient(135deg, #3f8a8a 0%, #0e0bc467 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Efecto de fondo animado */
#redes-sociales::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

#redes-sociales h2 {
    font-size: clamp(32px, 5vw, 48px);
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease;
}

#redes-sociales p {
    font-size: clamp(16px, 3vw, 20px);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Contenedor de iconos */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Estilo de cada icono */
.social-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Efecto de brillo en hover */
.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-10px) scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #fff;
}

/* Colores específicos para cada red social */
.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
    border-color: #1877f2;
}

.twitter:hover {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    border-color: #1da1f2;
}

.instagram:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e1306c;
}

.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #005885);
    border-color: #0077b5;
}

.youtube:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
}

.tiktok:hover {
    background: linear-gradient(135deg, #000000, #ff0050);
    border-color: #ff0050;
}

/* Animación del icono */
.social-icon i {
    transition: transform 0.4s ease;
}

.social-icon:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* Animaciones de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones individuales para cada icono */
.social-icon:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

.social-icon:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.social-icon:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.7s backwards;
}

.social-icon:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.social-icon:nth-child(5) {
    animation: fadeInUp 0.6s ease 0.9s backwards;
}

.social-icon:nth-child(6) {
    animation: fadeInUp 0.6s ease 1s backwards;
}

/* Decoración adicional - círculos flotantes */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    right: -75px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsivo */
@media screen and (max-width: 768px) {
    #redes-sociales {
        padding: 60px 15px;
        border-radius: 15px;
    }

    .social-icons {
        gap: 20px;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    #redes-sociales {
        padding: 50px 15px;
        border-radius: 10px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}