/* =============================================================================
   CONTACT PAGE STYLES
   Consolidated styles from contact page components
============================================================================= */

/* Contact Cards Section */
.contact-cards-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-card .card-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.contact-card .card-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-card .card-content {
    text-align: left;
}

.contact-card .contact-item {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-card .contact-item strong {
    color: #495057;
    font-size: 0.9rem;
}

.contact-card .contact-item a,
.contact-card .contact-item span {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
}

.contact-card .contact-item a:hover {
    color: #007bff;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

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

.social-link.facebook { background: #3b5998; }
.social-link.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-link.twitter { background: #1da1f2; }
.social-link.youtube { background: #ff0000; }
.social-link.linkedin { background: #0077b5; }
.social-link.whatsapp { background: #25d366; }
.social-link.tiktok { background: #000000; }

/* Contact Info Sidebar */
.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--bs-warning) 0%, #e0a800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.1rem;
}

.contact-section:last-child {
    border-bottom: none !important;
}

.phone-item a:hover,
.address-item a:hover {
    color: var(--bs-primary) !important;
}

/* Result Alert */
.alert {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    border-left: 5px solid #dc3545;
}

.alert .fa-2x {
    opacity: 0.8;
}

/* Social Media Bar */
.social-media-bar {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.social-media-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estilo específico para los enlaces sociales en la barra */
.social-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-bar-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-bar-link.facebook:hover {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.social-bar-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: #f09433;
}

.social-bar-link.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-bar-link.youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.social-bar-link.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-bar-link.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.social-bar-link.tiktok:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.social-stats .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

/* Floating Social Buttons */
.floating-social {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-social-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffc107;
    color: #343a40;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-social-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-social-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-social.active .floating-social-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-social-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-social-item.whatsapp {
    background: #25d366;
}

.floating-social-item.facebook {
    background: #3b5998;
}

.floating-social-item.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.floating-social-item.phone {
    background: #007bff;
}

.floating-social-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Tooltip personalizado */
.tooltip .tooltip-inner {
    font-size: 0.875rem;
}

/* Media queries para contacto */
@media (max-width: 768px) {
    /* Contact Cards */
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-card .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-card .card-icon i {
        font-size: 1.5rem;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Info */
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
    
    .btn-group .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }
    
    /* Social Media Bar */
    .social-media-bar h6 {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-bar-link {
        width: 40px;
        height: 40px;
    }
}