/* Variables de Colores */
:root {
    --primary-color: #c8195e;
    --facebook-blue: #1877f2;
    --light-bg: #f0f2f5;
    --border-color: #e4e6eb;
    --text-primary: #050505;
    --text-secondary: #65676b;
}

/* Scope específico del componente para evitar conflictos */
.home-interaccion-component {
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: var(--text-primary);*/
}

/* Section Header */
.home-interaccion-component .section-header {
    position: relative;
    padding-left: 15px;
}

.home-interaccion-component .section-title {
  margin-bottom: 35px;
}

.home-interaccion-component .section-title::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 5px;
}

/* Social Tabs - Con clases específicas para evitar conflictos */
.home-interaccion-component .social-tabs {
    border-bottom: 2px solid #d1d5db;
    background-color: transparent;
}

.home-interaccion-component .social-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.home-interaccion-component .social-tabs .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom-color: #d1d5db;
}

/* CLASE ACTIVA ESPECÍFICA - active-int en lugar de active */
.home-interaccion-component .social-tabs .nav-link.active-int {
    color: #2568ef;
    border-bottom-color: var(--primary-color);
    background-color: #e6effd;
    font-weight: 500;
}

/* Tab Content - active-int en lugar de active */
.home-interaccion-component .tab-pane {
    display: none;
}

.home-interaccion-component .tab-pane.active-int {
    display: block;
}

/* Social Plugin Container */
.home-interaccion-component .social-plugin-container {
  background-color: white;
  border-radius: 8px;
  /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);*/
  overflow: hidden;
  max-width: 70%;
  padding: 20px;
  min-height: 400px;
  margin: 0 auto;
}

/* Iframe Wrapper */
.home-interaccion-component .iframe-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.home-interaccion-component .iframe-wrapper iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* Twitter Timeline */
.home-interaccion-component .twitter-timeline {
    margin: 0 auto !important;
}

/* Fallback Link */
.home-interaccion-component .fallback-link {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Instagram Content */
.home-interaccion-component .instagram-content {
    padding: 2rem 1.5rem;
}

/* Instagram Header */
.home-interaccion-component .instagram-header {
    padding-bottom: 1.5rem;
    /*border-bottom: 1px solid var(--border-color);*/
}

.home-interaccion-component .instagram-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.home-interaccion-component .instagram-header h4 {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.home-interaccion-component .btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
    padding: 0.6rem 2rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
}

.home-interaccion-component .btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
    color: white;
}

/* Instagram Grid */
.home-interaccion-component .instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 2rem;
}

.home-interaccion-component .instagram-post {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.home-interaccion-component .instagram-post:hover {
    transform: scale(1.02);
}

.home-interaccion-component .instagram-post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-interaccion-component .instagram-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.home-interaccion-component .instagram-post:hover .instagram-post-overlay {
    opacity: 1;
}

/* ===== TWITTER STYLES ===== */

/* Twitter Content */
.home-interaccion-component .twitter-content {
    padding: 2rem 1.5rem;
}

/* Twitter Header */
.home-interaccion-component .twitter-header {
    padding-bottom: 1.5rem;
    /*border-bottom: 1px solid var(--border-color);*/
}

.home-interaccion-component .twitter-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.home-interaccion-component .twitter-header h4 {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.home-interaccion-component .btn-twitter {
    background: #000000;
    border: none;
    color: white;
    padding: 0.6rem 2rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    border-radius: 9999px;
}

.home-interaccion-component .btn-twitter:hover {
    background: #333333;
    transform: translateY(-2px);
    color: white;
}

/* Twitter Feed */
.home-interaccion-component .twitter-feed {
    margin-top: 2rem;
}

.home-interaccion-component .tweet-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.home-interaccion-component .tweet-card:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.home-interaccion-component .tweet-header {
    margin-bottom: 0.75rem;
}

.home-interaccion-component .tweet-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.home-interaccion-component .tweet-header strong {
    font-weight: 600;
    color: var(--text-primary);
}

.home-interaccion-component .tweet-content {
    margin: 0.75rem 0;
    line-height: 1.5;
    color: var(--text-primary);
}

.home-interaccion-component .tweet-content p {
    margin-bottom: 0.5rem;
}

.home-interaccion-component .tweet-actions {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.home-interaccion-component .tweet-actions span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.home-interaccion-component .tweet-actions span:hover {
    color: #1d9bf0;
}

.home-interaccion-component .tweet-actions i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-interaccion-component .section-title {
        font-size: 1.5rem;
    }

    .home-interaccion-component .social-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .home-interaccion-component .social-plugin-container {
        padding: 15px;
        max-width: 90%;
    }

    .home-interaccion-component .iframe-wrapper iframe {
        width: 100%;
        max-width: 100%;
    }

    .home-interaccion-component .instagram-content {
        padding: 1.5rem 1rem;
    }

    .home-interaccion-component .instagram-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .home-interaccion-component .instagram-header h4 {
        font-size: 1.1rem;
    }

    .home-interaccion-component .btn-instagram {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .home-interaccion-component .instagram-grid {
        gap: 6px;
    }

    .home-interaccion-component .instagram-post-overlay {
        font-size: 1.2rem;
    }

    .home-interaccion-component .twitter-content {
        padding: 1.5rem 1rem;
    }

    .home-interaccion-component .twitter-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .home-interaccion-component .twitter-header h4 {
        font-size: 1.1rem;
    }

    .home-interaccion-component .btn-twitter {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .home-interaccion-component .tweet-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .home-interaccion-component .social-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .home-interaccion-component .section-title::before {
        width: 3px;
    }

    .home-interaccion-component .social-plugin-container {
        max-width: 95%;
    }

    .home-interaccion-component .instagram-content {
        padding: 1rem 0.5rem;
    }

    .home-interaccion-component .instagram-header {
        flex-direction: column;
    }

    .home-interaccion-component .instagram-header .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .home-interaccion-component .instagram-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .home-interaccion-component .instagram-header .text-start {
        text-align: center !important;
    }

    .home-interaccion-component .instagram-grid {
        gap: 4px;
    }

    .home-interaccion-component .btn-instagram {
        width: 100%;
        padding: 0.6rem 1rem;
    }

    .home-interaccion-component .twitter-content {
        padding: 1rem 0.5rem;
    }

    .home-interaccion-component .twitter-header .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .home-interaccion-component .twitter-avatar {
        margin-bottom: 1rem;
    }

    .home-interaccion-component .twitter-header .text-start {
        text-align: center !important;
    }

    .home-interaccion-component .tweet-card {
        padding: 0.875rem;
    }

    .home-interaccion-component .tweet-actions {
        font-size: 0.8rem;
    }

    .home-interaccion-component .btn-twitter {
        width: 100%;
    }
}

/* Animation for Tab Change */
.home-interaccion-component .tab-pane {
    animation: fadeIn 0.3s ease-in;
}

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

/* Loading State */
.home-interaccion-component .loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    color: var(--text-secondary);
}

.home-interaccion-component .loading-placeholder .spinner-border {
    width: 3rem;
    height: 3rem;
}
