/* Fix para iconos de FontAwesome y problemas de visualización */

/* Asegurar que los iconos se muestren correctamente */
.social-networks .social-link i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Específicos para marcas */
.social-networks .social-link.facebook i:before {
    content: "\f39e" !important; /* Facebook square */
}

.social-networks .social-link.instagram i:before {
    content: "\f16d" !important; /* Instagram */
}

.social-networks .social-link.twitter i:before {
    content: "\f099" !important; /* Twitter */
}

.social-networks .social-link.linkedin i:before {
    content: "\f08c" !important; /* LinkedIn */
}

.social-networks .social-link.youtube i:before {
    content: "\f167" !important; /* YouTube */
}

.social-networks .social-link.whatsapp i:before {
    content: "\f232" !important; /* WhatsApp */
}

/* Estilos para redes sociales mejorados */
.social-networks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.social-networks .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-networks .social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-networks .social-link i {
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.social-networks .social-link span {
    display: none;
}

/* Colores específicos para cada red social */
.social-networks .social-link.facebook {
    background: #3b5998;
    color: white;
}

.social-networks .social-link.facebook:hover {
    background: #2d4373;
}

.social-networks .social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-networks .social-link.twitter {
    background: #1da1f2;
    color: white;
}

.social-networks .social-link.twitter:hover {
    background: #0d8bd9;
}

.social-networks .social-link.linkedin {
    background: #0077b5;
    color: white;
}

.social-networks .social-link.linkedin:hover {
    background: #046293;
}

.social-networks .social-link.youtube {
    background: #ff0000;
    color: white;
}

.social-networks .social-link.youtube:hover {
    background: #cc0000;
}

.social-networks .social-link.whatsapp {
    background: #25d366;
    color: white;
}

.social-networks .social-link.whatsapp:hover {
    background: #1da851;
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
    .social-networks {
        gap: 10px;
    }
    
    .social-networks .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-networks .social-link i {
        font-size: 18px;
    }
}

/* Fix para problemas de carga de FontAwesome */
@font-face {
    font-family: 'FontAwesome';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Alternative fallback para iconos usando Unicode */
.social-link.facebook::before {
    content: "f" !important;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.social-link.instagram::before {
    content: "📷" !important;
}

.social-link.twitter::before {
    content: "🐦" !important;
}

.social-link.whatsapp::before {
    content: "📱" !important;
}

/* Mejorar la sección de contacto */
.form-contact .form-group input,
.form-contact .form-group textarea {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-contact .form-group input:focus,
.form-contact .form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-contact .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Error styling for validation */
.form-contact .error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
}

.form-contact .form-group.error input,
.form-contact .form-group.error textarea {
    border-color: #dc3545;
}

.form-contact .form-group.valid input,
.form-contact .form-group.valid textarea {
    border-color: #28a745;
}