/*=============================================
            SOCIAL MODULE CSS
            Degradado: #fab200 a #DA267E
            Altura restaurada: 500px
=============================================*/

/* Contenedor principal */
.social-module {
    background-color: #f8f9fa;
    min-height: auto;
    padding: 3rem 0;
}

/* Tarjeta principal */
.social-module .social-card-main {
    background: white;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-module .social-card-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #DA267E !important;
}

/* Cabecera personalizada */
.social-module .social-header-custom {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Círculos para iconos */
.social-module .social-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-module .social-card-main:hover .social-icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.social-module .social-icon-circle i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Tarjetas de redes */
.social-module .social-card {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-module .social-card:hover {
    transform: translateY(-5px);
    border-color: #DA267E !important;
    box-shadow: 0 8px 20px rgba(218, 38, 126, 0.15);
}

/* Efecto hover con degradado */
.social-module .social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 38, 126, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.social-module .social-card:hover::before {
    left: 100%;
}

/* Contenedores de redes - ALTURA 500px */
.social-module .facebook-container,
.social-module .instagram-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 500px !important;
}

.social-module .social-card:hover .facebook-container,
.social-module .social-card:hover .instagram-container {
    border-color: #DA267E;
    box-shadow: 0 4px 12px rgba(218, 38, 126, 0.1);
}

/* Scrollbar personalizado */
.social-module .facebook-container,
.social-module .instagram-container {
    scrollbar-width: thin;
    scrollbar-color: #DA267E #f1f1f1;
    overflow-y: auto !important;
}

.social-module .facebook-container::-webkit-scrollbar,
.social-module .instagram-container::-webkit-scrollbar {
    width: 6px;
}

.social-module .facebook-container::-webkit-scrollbar-track,
.social-module .instagram-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.social-module .facebook-container::-webkit-scrollbar-thumb,
.social-module .instagram-container::-webkit-scrollbar-thumb {
    background: #DA267E;
    border-radius: 3px;
}

.social-module .facebook-container::-webkit-scrollbar-thumb:hover,
.social-module .instagram-container::-webkit-scrollbar-thumb:hover {
    background: #b81e68;
}

/* Iframes */
.social-module .instagram-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Facebook SDK */
.social-module .fb-page {
    width: 100% !important;
}

.social-module .fb-page span,
.social-module .fb-page iframe {
    width: 100% !important;
}

/* Botones con degradado */
.social-module .btn {
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-module .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(218, 38, 126, 0.3);
}

.social-module .btn .fa-arrow-right {
    transition: transform 0.3s ease;
}

.social-module .btn:hover .fa-arrow-right {
    transform: translateX(5px);
}

/* Animaciones */
@keyframes socialFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-module .social-card {
    animation: socialFadeIn 0.5s ease-out;
}

.social-module .social-card:nth-child(1) {
    animation-delay: 0.1s;
}

.social-module .social-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .social-module {
        padding: 2rem 0;
    }
    
    .social-module .social-header-custom {
        padding: 1.25rem !important;
    }
    
    .social-module .social-icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .social-module .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .social-module .facebook-container,
    .social-module .instagram-container {
        height: 400px !important; /* Un poco más pequeña en móvil */
    }
}

@media (max-width: 576px) {
    .social-module .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .social-module .facebook-container,
    .social-module .instagram-container {
        height: 350px !important;
    }
}

/* Modo oscuro */
[data-bs-theme="dark"] .social-module {
    background-color: #1a1e24;
}

[data-bs-theme="dark"] .social-module .social-card-main {
    background: #2c3e50;
}

[data-bs-theme="dark"] .social-module .social-card {
    background: #2c3e50 !important;
}

[data-bs-theme="dark"] .social-module .facebook-container,
[data-bs-theme="dark"] .social-module .instagram-container {
    background: #2c3e50;
    border-color: #495057;
}


/* Estilos para el preview de Facebook */
.social-card .facebook-preview {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.social-card:hover .facebook-preview {
    border-color: #DA267E;
    box-shadow: 0 4px 12px rgba(218, 38, 126, 0.1);
}

.facebook-preview .fa-facebook-f {
    color: #1877f2;
}

.facebook-preview .fa-thumbs-up,
.facebook-preview .fa-comment,
.facebook-preview .fa-share-square {
    color: #6c757d;
    transition: all 0.2s ease;
}

.facebook-preview span:hover i {
    color: #DA267E;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .social-card .facebook-preview {
        padding: 1rem !important;
    }
    
    .social-icon-circle[style*="width: 70px"] {
        width: 60px !important;
        height: 60px !important;
    }
}