/* =====================================================
   PROFILE ELITE - CSS PROFESIONAL NIVEL INSTAGRAM/LINKEDIN
   ===================================================== */

/* =====================================================
   CHANNEL HEADER - DISEÑO MODERNO INSPIRADO EN YOUTUBE
   ===================================================== */

/* Banner del canal */
.channel-banner {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.banner-video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    transform: scale(1.1);
}

.btn-customize-banner {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-customize-banner:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Contenedor principal del header */
.channel-header-container {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    margin-bottom: 0;
}

.channel-header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

/* Avatar del canal (superpuesto) */
.channel-avatar-wrapper {
    margin-top: -100px;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
    padding-left: 16px;
    padding-bottom: 16px;
}

.channel-avatar-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.channel-avatar {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.channel-avatar:hover {
    transform: scale(1.02);
}

.channel-avatar-placeholder {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 4px solid white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.channel-avatar-edit-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.channel-avatar-edit-overlay:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-edit-avatar {
    color: #374151;
    font-size: 1rem;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Información del canal */
.channel-info {
    padding-left: 16px;
    padding-bottom: 12px;
    padding-right: 16px;
    min-height: 100px;
}

.channel-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.channel-name-section {
    flex: 1;
    min-width: 200px;
}

.channel-name {
    font-size: 2rem;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.channel-star-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.channel-star-badge i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.channel-handle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.channel-handle {
    font-size: 0.9375rem;
    color: #606060;
    margin: 0;
}

/* Badges inline junto al handle */
.channel-badges-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.channel-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.7rem;
    color: #6b7280;
    cursor: help;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 400;
}

.channel-badge-inline:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
}

.channel-badge-inline i {
    font-size: 0.75rem;
    opacity: 0.9;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Estadísticas del canal */
.channel-stats {
    display: flex;
    gap: 20px;
    margin: 8px 0 12px 0;
    flex-wrap: wrap;
    align-items: center;
}

.channel-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-stat-clickable {
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.channel-stat-clickable:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

.channel-stat-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f0f0f;
}

.channel-stat-label {
    font-size: 0.9375rem;
    color: #606060;
    font-weight: 400;
}

.channel-stat-separator {
    color: #c7c7c7;
    font-size: 0.9375rem;
    margin: 0 4px;
}

/* Badges del canal */
.channel-badges {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #374151;
    cursor: help;
    transition: all 0.2s ease;
}

.channel-badge:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.channel-badge i {
    font-size: 0.75rem;
}

/* Enlaces del canal */
.channel-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #065fd4;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.channel-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Meta row compacto - Badges y enlaces en una sola línea */
.channel-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

/* Badges compactos */
.channel-badges-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.channel-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #374151;
    cursor: help;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.channel-badge-compact:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.channel-badge-compact i {
    font-size: 0.7rem;
}

/* Enlaces sociales compactos - Solo iconos */
.channel-links-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

/* Wrapper para los iconos sociales en fila */
.channel-social-icons-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-link-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #606060;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.channel-link-compact:hover {
    background: #f3f4f6;
    color: #0f0f0f;
    transform: scale(1.1);
}

.channel-link-compact i {
    font-size: 0.875rem;
}

/* Botones de acción del canal */
.channel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-channel-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    height: 36px;
    color: inherit;
}

.btn-channel-action:hover {
    color: inherit;
}

.btn-channel-action i {
    font-size: 0.875rem;
}

.btn-customize,
.btn-manage {
    background: #e4e6eb;
    color: #050505;
    border: none;
}

.btn-customize:hover,
.btn-manage:hover {
    background: #d8dadf;
    color: #050505;
}

.btn-subscribe {
    background: #53fc1b;
    color: #081902;
}

.btn-subscribe:hover {
    background: #47e017;
    color: #081902;
}

/* Estado "Siguiendo" */
.btn-subscribe.is-following {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-subscribe.is-following:hover {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #d1d5db;
}

.btn-message {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-message:hover {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #d1d5db;
}

/* =====================================================
   RESPONSIVE DESIGN - CHANNEL HEADER
   ===================================================== */

@media (max-width: 1024px) {
    .channel-banner {
        height: 300px;
    }
    
    .channel-header-content {
        padding: 0 16px;
    }
    
    .channel-avatar {
        width: 140px;
        height: 140px;
    }
    
    .channel-avatar-placeholder {
        width: 140px;
        height: 140px;
        font-size: 3.5rem;
    }
    
    .channel-avatar-wrapper {
        margin-top: -70px;
        padding-left: 16px;
    }
    
    .channel-info {
        padding-left: 156px;
        padding-right: 16px;
    }
    
    .channel-name {
        font-size: 1.5rem;
    }
    
    .channel-handle {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .channel-banner {
        height: 250px;
    }
    
    .channel-header-content {
        padding: 0 12px;
    }
    
    .channel-avatar {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    
    .channel-avatar-placeholder {
        width: 120px;
        height: 120px;
        font-size: 3rem;
        border-width: 3px;
    }
    
    .channel-avatar-wrapper {
        margin-top: -60px;
        padding-left: 0;
        padding-bottom: 4px;
    width: 100%;
        text-align: center;
    }
    
    .channel-avatar-container {
        margin: 0 auto;
        display: inline-block;
    }
    
    .channel-info {
        padding-left: 0;
        padding-top: 20px;
        padding-right: 12px;
        padding-bottom: 12px;
        text-align: center;
    }
    
    .channel-info-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    
    .channel-name-section {
        width: 100%;
        text-align: center;
    }
    
    .channel-name {
        font-size: 1.25rem;
        justify-content: center;
    }
    
    .channel-handle-wrapper {
        justify-content: center;
        text-align: center;
    }
    
    .channel-handle {
        text-align: center;
    }
    
    .channel-badges-inline {
        justify-content: center;
    }
    
    .channel-badge-inline {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .channel-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .channel-stats {
        gap: 12px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
    
    .channel-stat-value,
    .channel-stat-label {
        font-size: 0.875rem;
    }
    
    .channel-meta-row {
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
    }
    
    .channel-links-compact {
        margin-left: 0;
        width: 100%;
        align-items: center;
    }
    
    .channel-badges-compact {
        justify-content: center;
    }
    
    .channel-badge-compact {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .channel-social-icons-row {
        margin-top: 4px;
        justify-content: center;
    }
    
    .channel-link-compact {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .channel-banner {
        height: 200px;
    }
    
    .channel-header-content {
        padding: 0 12px;
    }
    
    .channel-avatar {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .channel-avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        border-width: 3px;
    }
    
    .channel-avatar-wrapper {
        margin-top: -50px;
        padding-left: 0;
        padding-bottom: 4px;
        text-align: center;
        width: 100%;
    }
    
    .channel-avatar-container {
        margin: 0 auto;
    }
    
    .channel-avatar-edit-overlay {
        width: 28px;
        height: 28px;
        bottom: 2px;
        right: 2px;
    }
    
    .channel-info {
        padding-left: 0;
        padding-top: 16px;
        padding-right: 12px;
        padding-bottom: 12px;
        text-align: center;
    }
    
    .channel-info-header {
        align-items: center;
        text-align: center;
    }
    
    .channel-name-section {
        width: 100%;
        text-align: center;
    }
    
    .channel-name {
        font-size: 1.1rem;
        justify-content: center;
    }
    
    .channel-handle-wrapper {
        justify-content: center;
        text-align: center;
    }
    
    .channel-handle {
        font-size: 0.875rem;
        text-align: center;
    }
    
    .channel-badges-inline {
        justify-content: center;
    }
    
    .channel-badge-inline {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .channel-actions {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        justify-content: center;
    }
    
    .btn-channel-action {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.875rem;
        height: 36px;
    }
    
    .channel-stats {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .channel-stat-separator {
        display: none;
    }
    
    .channel-stat-item {
        flex-direction: row;
        gap: 4px;
        align-items: baseline;
    }
    
    .channel-stat-value,
    .channel-stat-label {
        font-size: 0.875rem;
    }
    
    .channel-meta-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 12px;
    }
    
    .channel-links-compact {
        margin-left: 0;
        width: 100%;
        align-items: center;
    }
    
    .channel-badges-compact {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .channel-badge-compact {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .channel-social-icons-row {
        justify-content: center;
    }
    
    .channel-link-compact {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* Pantallas muy pequeñas (320px - 360px) */
@media (max-width: 360px) {
    .channel-banner {
        height: 180px;
    }
    
    .channel-header-content {
        padding: 0 8px;
    }
    
    .channel-avatar {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    
    .channel-avatar-placeholder {
        width: 90px;
        height: 90px;
        font-size: 2rem;
        border-width: 2px;
    }
    
    .channel-avatar-wrapper {
        margin-top: -45px;
        padding-left: 0;
        padding-bottom: 4px;
        text-align: center;
        width: 100%;
    }
    
    .channel-avatar-container {
        margin: 0 auto;
        display: inline-block;
    }
    
    .channel-info {
        padding-top: 14px;
        padding-left: 8px;
        padding-right: 8px;
        text-align: center;
    }
    
    .channel-info-header {
        align-items: center;
        text-align: center;
    }
    
    .channel-name-section {
        width: 100%;
        text-align: center;
    }
    
    .channel-name {
        justify-content: center;
    }
    
    .channel-handle-wrapper {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 6px;
    }
    
    .channel-handle {
        text-align: center;
    }
    
    .channel-badges-inline {
        justify-content: center;
    }
    
    .channel-badge-inline {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    
    .channel-actions {
        justify-content: center;
    }
    
    .channel-stats {
        justify-content: center;
    }
    
    .channel-meta-row {
        align-items: center;
        justify-content: center;
    }
    
    .channel-links-compact {
        align-items: center;
    }
    
    .channel-badges-compact {
        justify-content: center;
    }
    
    .channel-social-icons-row {
        justify-content: center;
    }
    
    .channel-name {
        font-size: 1rem;
    }
    
    .channel-handle {
        font-size: 0.8125rem;
    }
    
    .channel-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-channel-action {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .channel-stats {
        gap: 8px;
    }
    
    .channel-stat-value,
    .channel-stat-label {
        font-size: 0.8125rem;
    }
    
    .channel-badge-compact {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    
    .channel-link-compact {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* =====================================================
   DARK MODE - CHANNEL HEADER
   ===================================================== */

.dark-mode .channel-header-container {
    background: #0f0f0f;
    border-bottom-color: #272727;
}

.dark-mode .channel-name {
    color: #f1f1f1;
}

.dark-mode .channel-handle {
    color: #aaaaaa;
}

.dark-mode .channel-badge-inline {
    background: #272727;
    border-color: #3f3f3f;
    color: #aaaaaa;
}

.dark-mode .channel-badge-inline:hover {
    background: #3f3f3f;
    border-color: #4a4a4a;
    color: #d1d5db;
}

.dark-mode .channel-stat-value {
    color: #f1f1f1;
}

.dark-mode .channel-stat-label {
    color: #aaaaaa;
}

.dark-mode .channel-badge {
    background: #272727;
    border-color: #3f3f3f;
    color: #aaaaaa;
}

.dark-mode .channel-badge:hover {
    background: #3f3f3f;
}

.dark-mode .channel-link {
    color: #3ea6ff;
}

.dark-mode .channel-link:hover {
    color: #5cb3ff;
}

.dark-mode .channel-badge-compact {
    background: #272727;
    border-color: #3f3f3f;
    color: #aaaaaa;
}

.dark-mode .channel-badge-compact:hover {
    background: #3f3f3f;
}

.dark-mode .channel-link-compact {
    color: #aaaaaa;
}

.dark-mode .channel-link-compact:hover {
    background: #272727;
    color: #f1f1f1;
}

.dark-mode .btn-customize,
.dark-mode .btn-manage {
    background: #272727;
    color: #f1f1f1;
    border-color: #3f3f3f;
}

.dark-mode .btn-customize:hover,
.dark-mode .btn-manage:hover {
    background: #3f3f3f;
}

.dark-mode .btn-subscribe {
    background: #47e017 !important;
    color: #081902 !important;
}

.dark-mode .btn-subscribe:hover {
    background: #47e017 !important;
    color: #081902 !important;
}

/* Estado "Siguiendo" en modo oscuro */
.dark-mode .btn-subscribe.is-following {
    background: #272727 !important;
    color: #d1d5db !important;
    border: 1px solid #3f3f3f !important;
}

.dark-mode .btn-subscribe.is-following:hover {
    background: #3f3f3f !important;
    color: #f1f1f1 !important;
    border-color: #525252 !important;
}

/* =====================================================
   MODAL DE SEGUIDORES Y SIGUIENDO - DISEÑO MODERNO
   ===================================================== */
#modalUsersFollowers .modal-dialog {
    max-width: 400px !important;
    width: 90%;
    margin: 1.75rem auto;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
}

.dark-mode #modalUsersFollowers .modal-dialog {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 576px) {
    #modalUsersFollowers .modal-dialog {
        max-width: 100% !important;
        width: 100%;
        margin: 0;
    height: 100%;
        max-height: 100%;
    }
    
    #modalUsersFollowers .modal-content {
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    #modalUsersFollowers .modal-body {
        flex: 1;
        overflow-y: auto;
    }
}

#modalUsersFollowers .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-followers-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
}

.modal-followers-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 0 16px 16px;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.modal-followers-header .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin: 0;
    text-align: center;
    flex: 1;
    padding-right: 40px;
}

.modal-followers-close {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #262626;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 0 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-followers-close span {
    display: block;
    line-height: 1;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-followers-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

.modal-followers-search-wrapper {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.modal-followers-search {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-followers-search-icon {
    position: absolute;
    left: 12px;
    color: #8e8e8e;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.modal-followers-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fafafa;
    color: #262626;
    transition: all 0.2s ease;
}

.modal-followers-search-input::placeholder {
    color: #8e8e8e;
}

.modal-followers-search-input:focus {
    outline: none;
    border-color: #a8a8a8;
    background: #ffffff;
    box-shadow: none;
}

.modal-followers-body {
    padding: 0;
    max-height: 362px;
    overflow-y: auto;
    overflow-x: hidden;
}

.follower-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.follower-item {
    margin: 0;
    padding: 0;
}

.follower-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    transition: background-color 0.15s ease;
    border-bottom: none;
    gap: 12px;
}

.follower-item-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.follower-item-main {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.follower-item-main:hover {
    text-decoration: none;
    color: inherit;
}

.follower-avatar-wrapper {
    margin: 0;
    flex-shrink: 0;
}

.follower-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.follower-item-link:hover .follower-avatar {
    transform: scale(1.02);
}

.follower-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.follower-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: #262626;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.375;
}

.follower-name {
    font-size: 0.875rem;
    color: #8e8e8e;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.375;
}

.follower-action-btn {
    background: transparent;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    color: #262626;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 5px 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.follower-action-btn:hover {
    border-color: #a8a8a8;
    background-color: rgba(0, 0, 0, 0.02);
}

.follower-action-btn:active {
    opacity: 0.7;
}

.follower-action-btn.follower-action-follow {
    background: transparent;
    border: 1px solid #dbdbdb;
    color: #262626;
}

.follower-action-btn.follower-action-follow:hover {
    border-color: #a8a8a8;
    background-color: rgba(0, 0, 0, 0.02);
}

.follower-action-btn.follower-action-following {
    background: transparent;
    border: 1px solid #dbdbdb;
    color: #262626;
}

.follower-action-btn.follower-action-following:hover {
    border-color: #a8a8a8;
    background-color: rgba(0, 0, 0, 0.02);
}

.follower-loading {
    padding: 24px;
    text-align: center;
    list-style: none;
}

.follower-empty {
    padding: 48px 24px;
    text-align: center;
    list-style: none;
}

.follower-empty .text-muted {
    color: #9ca3af;
    font-size: 0.9375rem;
}

/* Scrollbar personalizado - más sutil */
.modal-followers-body::-webkit-scrollbar {
    width: 8px;
}

.modal-followers-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-followers-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-followers-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Modo oscuro */
.dark-mode .modal-followers-content {
    background-color: #262626;
    color: #f5f5f5;
}

.dark-mode .modal-followers-header {
    background: #262626;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .modal-followers-search-wrapper {
    background: #262626;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .modal-followers-header .modal-title {
    color: #f5f5f5;
}

.dark-mode .modal-followers-close {
    background: transparent !important;
    color: #f5f5f5 !important;
}

.dark-mode .modal-followers-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.dark-mode .modal-followers-search-input {
    background: #000000;
    border-color: #363636;
    color: #f5f5f5;
}

.dark-mode .modal-followers-search-input::placeholder {
    color: #a8a8a8;
}

.dark-mode .modal-followers-search-input:focus {
    border-color: #555555;
    background: #000000;
    box-shadow: none;
}

.dark-mode .modal-followers-search-icon {
    color: #a8a8a8;
}

.dark-mode .follower-item-link:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.dark-mode .follower-username {
    color: #f5f5f5;
}

.dark-mode .follower-name {
    color: #a8a8a8;
}

.dark-mode .follower-action-btn {
    border-color: #363636;
    color: #f5f5f5;
}

.dark-mode .follower-action-btn:hover {
    border-color: #555555;
    background-color: rgba(255, 255, 255, 0.03);
}

.dark-mode .modal-followers-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode .modal-followers-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dark-mode .follower-empty .text-muted {
    color: #6b7280;
}

.dark-mode .modal-followers-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode .modal-followers-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dark-mode .btn-message {
    background: #272727;
    color: #f1f1f1;
    border-color: #3f3f3f;
}

.dark-mode .btn-message:hover {
    background: #3f3f3f;
}

.dark-mode .btn-customize-banner {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .btn-customize-banner:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .channel-avatar {
    border-color: #0f0f0f;
}

.dark-mode .channel-avatar-edit-overlay {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dark-mode .channel-avatar-edit-overlay:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.dark-mode .btn-edit-avatar {
    color: #f1f1f1;
}

.dark-mode .btn-edit-avatar:hover {
    color: #ffffff;
}

/* =====================================================
   MODAL DE ESTADÍSTICAS DETALLADAS
   ===================================================== */
.stats-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.stats-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.stats-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stats-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.stats-modal-body {
    padding: 30px;
}

.stats-section {
    margin-bottom: 40px;
}

.stats-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stats-modal-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .stats-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .stats-modal-header {
        padding: 20px;
    }
    
    .stats-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-modal-body {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-icon {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Responsive para el header */
@media (max-width: 1024px) {
    .profile-header {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .profile-header {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        min-height: 300px;
    }
}

@media (max-width: 320px) {
    .profile-header {
        min-height: 280px;
    }
}

/* =====================================================
   PROFILE HEADER MAIN - LAYOUT HORIZONTAL CENTRADO VERTICALMENTE
   ===================================================== */
.profile-header-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 3;
    height: auto;
}

/* Avatar a la izquierda */
.profile-avatar-section {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Información a la derecha */
.profile-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
}

/* Sección de nombre */
.profile-name-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}


/* Botones de acción */
.profile-actions {
    margin-top: var(--spacing-sm);
    align-self: flex-start;
    display: flex;
    gap: var(--spacing-xs);
    width: 100%;
    flex-wrap: nowrap;
    z-index: 10;
    position: relative;
    justify-content: flex-start !important;
}

.btn-follow {
    background: #53fc1b;
    color: #081902;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(83, 252, 27, 0.3);
    min-width: 80px;
    flex-shrink: 0;
}

.btn-follow:hover {
    background: #47e017;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83, 252, 27, 0.4);
}

.btn-message {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(218, 213, 213, 0.9);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    min-width: 75px;
    flex-shrink: 0;
}

.btn-message:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-friend-request {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 90px;
    flex-shrink: 0;
}

.btn-friend-request:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   AVATAR MODERNO Y COOL - DISEÑO PROFESIONAL
   ===================================================== */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    object-fit: cover;
    object-position: center;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 6;
    display: block;
}

.profile-avatar:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 6px rgba(255, 255, 255, 0.15);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    z-index: 6;
}

.profile-avatar-placeholder:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 6px rgba(255, 255, 255, 0.15);
}

/* Desktop - Asegurar visibilidad de botones */
@media (min-width: 1025px) {
    .profile-header-main {
        padding: var(--spacing-md) var(--spacing-xl);
        align-items: center;
    }
    
    .profile-actions {
        margin-top: var(--spacing-md);
        flex-wrap: nowrap;
        gap: var(--spacing-xs);
    }
    
    .btn-follow {
        min-width: 80px;
        white-space: nowrap;
    }
    
    .btn-message {
        min-width: 75px;
        white-space: nowrap;
    }
    
    .btn-friend-request {
        min-width: 90px;
        white-space: nowrap;
    }
}

/* Responsive para header principal - Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .profile-header-main {
        gap: var(--spacing-md);
        padding: var(--spacing-md);
        align-items: center;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .profile-avatar-placeholder {
        font-size: 2.5rem;
    }
    
    .profile-name {
        font-size: 1.6rem;
    }
    
    .profile-username {
        font-size: 0.95rem;
    }
    
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
    
    .profile-actions {
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
    }
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Responsive para header principal - Móviles grandes */
@media (max-width: 768px) and (min-width: 481px) {
    .profile-header-main {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .profile-avatar-section {
        align-self: center;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    
    .profile-avatar-placeholder {
        font-size: 2.2rem;
    }
    
    .profile-info-section {
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .profile-name {
        font-size: 1.4rem;
        letter-spacing: -0.2px;
    }
    
    .profile-username {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
    
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .profile-actions {
        gap: var(--spacing-xs);
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 70px;
    }
}

/* Responsive para header principal - Móviles pequeños */
@media (max-width: 480px) {
    .profile-header-main {
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .profile-avatar-section {
        align-self: center;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .profile-avatar-placeholder {
        font-size: 1.8rem;
    }
    
    .profile-info-section {
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .profile-name {
        font-size: 1.2rem;
        letter-spacing: -0.1px;
    }
    
    .profile-username {
        font-size: 0.8rem;
        letter-spacing: 0.2px;
    }
    
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .profile-actions {
        gap: 4px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 60px;
    }
}

/* Responsive para header principal - Móviles extra pequeños */
@media (max-width: 320px) {
    .profile-header-main {
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
        justify-content: center;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 60px;
        height: 60px;
        border-width: 1px;
    }
    
    .profile-avatar-placeholder {
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-username {
        font-size: 0.75rem;
    }
    
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .profile-actions {
        gap: 2px;
        flex-wrap: nowrap;
    }
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        padding: 3px 6px;
        font-size: 0.65rem;
        min-width: 50px;
    }
}

/* =====================================================
   ESTILOS DE HEADER ACTIONS ELIMINADOS - SOLO ESTADÍSTICAS
   ===================================================== */

/* =====================================================
   ESTADÍSTICAS MINIMALISTAS - RECUADRO ELEGANTE
   ===================================================== */
.profile-stats-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-md);
    transition: all 0.3s ease;
}

.profile-stats-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.profile-stats-minimal .stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.profile-stats-minimal .stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.profile-stats-minimal .stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    text-transform: capitalize;
    letter-spacing: 0;
    line-height: 1;
}

.profile-stats-minimal .stat-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
}

/* =====================================================
   TIPOGRAFÍA MODERNA - NOMBRE Y USERNAME
   ===================================================== */
.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-name:hover {
    transform: translateY(-1px);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.profile-username {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.profile-username:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   ESTILOS DE BIO ELIMINADOS - SOLO ESTADÍSTICAS
   ===================================================== */

/* =====================================================
   PROFILE STATS - DISEÑO PROFESIONAL
   ===================================================== */
.profile-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   BARRA DE ESTADÍSTICAS ELEGANTE
   ===================================================== */
.profile-stats-bar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(15px);
    border-radius: 0 0 12px 12px;
    padding: 8px 0;
    margin: 0 auto;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    max-width: 400px;
    width: 60%;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
    display: block;
}

.stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
    margin: 0 6px;
}

/* Responsive para la barra de estadísticas */
@media (max-width: 768px) {
    .profile-stats-bar {
        padding: 6px 0;
        max-width: 350px;
        width: 70%;
    }
    
    .stats-container {
        padding: 0 10px;
        gap: 0;
    }
    
    .stat-item {
        padding: 4px 6px;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .stat-divider {
        height: 16px;
        margin: 0 3px;
    }
    
    .profile-main-content {
        padding: 80px var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .profile-stats-bar {
        padding: 5px 0;
        max-width: 300px;
        width: 80%;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .stat-item {
        flex: 1;
        min-width: calc(50% - 1px);
        padding: 3px 4px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
    
    .profile-main-content {
        padding: 70px var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    }
}

.profile-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--spacing-md) / -2);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.profile-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Responsive para la información */
@media (max-width: 768px) {
    .profile-header {
        height: 300px; /* Altura proporcional para móvil */
        padding-bottom: var(--spacing-md);
    }
    
    .profile-header-actions {
        top: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .btn-modern {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
    }
    
    .profile-main-content {
        gap: var(--spacing-md);
        padding: 0 var(--spacing-md);
    }
    
    .profile-name {
        font-size: 2.2rem;
    }
    
    .profile-username {
        font-size: 1.1rem;
    }
    
    .profile-bio {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .profile-stats {
        gap: var(--spacing-sm);
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-stat {
        padding: var(--spacing-xs);
        min-width: 60px;
    }
    
    .profile-stat:not(:last-child)::after {
        display: none;
    }
    
    .profile-stat-number {
        font-size: 1rem;
    }
    
    .profile-stat-label {
        font-size: 0.6rem;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }
    
    .profile-avatar-placeholder {
        font-size: 2.5rem;
    }
}

/* =====================================================
   HEADER CONFIGURATION INDICATOR
   ===================================================== */
.header-config-indicator {
    margin-top: var(--spacing-sm);
}

.config-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-badge.config-image {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.config-badge.config-video {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.config-badge i {
    font-size: var(--font-size-xs);
}

/* =====================================================
   VARIABLES CSS - DESIGN SYSTEM
   ===================================================== */
:root {
    /* Colores principales */
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* Colores de fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #343a40;
    --bg-light: #ffffff;
    
    /* Colores de texto */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    --text-light: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Sombras */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-xl: 0 2rem 4rem rgba(0, 0, 0, 0.15);
    
    /* Bordes */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-xxl: 1.5rem;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4.5rem;
    
    /* Tipografía */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* =====================================================
   RESET Y BASE
   ===================================================== */
* {
    box-sizing: border-box;
}

.profile-elite {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* =====================================================
   PROFILE HEADER - HERO SECTION
   ===================================================== */
.profile-header {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.profile-header-content {
    position: relative;
    z-index: 2;
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--text-light);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    transition: var(--transition-base);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--text-light);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.profile-avatar-placeholder i {
    font-size: 4rem;
    color: var(--text-light);
}

/* Estilos duplicados eliminados - Solo estadísticas */

.profile-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.profile-stat {
    text-align: center;
}

.profile-header-actions {
    margin-top: var(--spacing-lg);
    text-align: center;
    padding: var(--spacing-md);
}

.profile-header-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   PROFILE NAVIGATION
   ===================================================== */
.profile-nav {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.profile-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.profile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    position: relative;
}

/* Adaptación dinámica según número de elementos visibles */
.profile-nav-list:has(> li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Fallback para navegadores que no soportan :has() */
.profile-nav-list.nav-count-1 {
    grid-template-columns: 1fr;
}

.profile-nav-list.nav-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-nav-list.nav-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-nav-list.nav-count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #475569;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: relative;
}

/* Remover borde derecho del último elemento */
.profile-nav-link:last-child,
.profile-nav-item:last-child .profile-nav-link {
    border-right: none;
}

/* Asegurar que todos los elementos excepto el último tengan borde */
.profile-nav-item:not(:last-child) .profile-nav-link {
    border-right: 1px solid #e2e8f0 !important;
}

.dark-mode .profile-nav-item:not(:last-child) .profile-nav-link {
    border-right: 1px solid rgba(75, 85, 99, 0.3) !important;
}

.profile-nav-link i {
    font-size: 1rem;
    opacity: 0.7;
}

.profile-nav-link:hover {
    color: #1e293b;
    background: #ffffff;
}

.profile-nav-link.active {
    color: #0f172a;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    border-bottom: 2px solid #94a3b8;
}

/* Submenú de Publicaciones - Minimalista y elegante */
.profile-nav-submenu-container {
    width: 100%;
    background: #f8f9fb;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 12px 0;
    display: block;
    animation: slideDown 0.2s ease-out;
}

.profile-nav-submenu-container[style*="display: none"] {
    display: none !important;
}

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

.profile-nav-submenu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.profile-nav-submenu-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-nav-submenu-link:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

.profile-nav-submenu-link.active {
    color: #0f172a;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.08);
}

.profile-nav-submenu-separator {
    color: #cbd5e1;
    font-size: 0.75rem;
    user-select: none;
}

.dark-mode .profile-nav-submenu-container {
    background: #18191a;
    border-top-color: rgba(148, 163, 184, 0.12);
}

.dark-mode .profile-nav-submenu-link {
    color: rgba(226, 232, 240, 0.7);
}

.dark-mode .profile-nav-submenu-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .profile-nav-submenu-link.active {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .profile-nav-submenu-separator {
    color: rgba(148, 163, 184, 0.3);
}

/* Responsive para el submenú */
@media (max-width: 768px) {
    .profile-nav-submenu {
        justify-content: flex-start;
        padding: 0 12px;
        gap: 6px;
    }
    
    .profile-nav-submenu-link {
        font-size: 0.8125rem;
        padding: 5px 10px;
    }
    
    .profile-nav-submenu-separator {
        font-size: 0.6875rem;
    }
}

/* ===== Dark Mode Variants ===== */
.dark-mode .profile-nav {
    background: #18191a !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    box-shadow: none !important;
}

.dark-mode .profile-nav-link {
    color: rgba(226, 232, 240, 0.86) !important;
    background: #1b1c1d !important;
    border-right: 1px solid rgba(75, 85, 99, 0.3) !important;
    box-shadow: none !important;
}

.dark-mode .profile-nav-link i {
    opacity: 0.75 !important;
}

.dark-mode .profile-nav-link:hover {
    color: #f8fafc !important;
    background: #242527 !important;
}

.dark-mode .profile-nav-link.active {
    color: rgba(241, 245, 249, 0.95) !important;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border-right: 1px solid rgba(75, 85, 99, 0.3) !important;
}

/* =====================================================
   PROFILE ACTIONS - EDITAR PERFIL BUTTON
   (Estilos específicos y organizados para el botón)
   ===================================================== */

/* Estado base (modo claro) - blanco, sutil y elegante */
.profile-elite .btn-edit-profile{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all .2s ease;
}
.profile-elite .btn-edit-profile:hover{
    background: #ffffff;
    color: #6b7280;
    border-color: rgba(0,0,0,0.18);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* Modo oscuro - también blanco (consigna de diseño) */
.dark-mode .profile-elite .btn-edit-profile{
    background: rgba(255,255,255,0.96) !important;
    color: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45) !important;
}
.dark-mode .profile-elite .btn-edit-profile:hover{
    background: #ffffff !important;
}

/* =====================================================
   PROFILE ACTIONS - SEGURIDAD BUTTON
   (Ajustes de color para modo claro y oscuro)
   ===================================================== */
.profile-elite .btn-security{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:12px;
    background:#ffffff;
    color:#111827;
    border:1px solid rgba(0,0,0,0.10);
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
    font-weight:600;
    transition:all .2s ease;
}
.profile-elite .btn-security:hover{
    background:#ffffff;
    color:#6b7280;
    border-color:rgba(0,0,0,0.18);
    box-shadow:0 8px 20px rgba(0,0,0,0.10);
    transform:translateY(-1px);
}
.dark-mode .profile-elite .btn-security{
    background:rgba(36,37,38,0.85) !important;
    color:#E4E6EB !important;
    border:1px solid #3A3B3C !important;
    box-shadow:0 10px 30px rgba(0,0,0,0.35) !important;
}
.dark-mode .profile-elite .btn-security:hover{
    background:rgba(58,59,60,0.9) !important;
}
@media (max-width: 720px) {
    .profile-nav-container {
        padding: 0;
        width: 100%;
    }

    .profile-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 0;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    /* Si hay 1 elemento, ocupar todo el ancho */
    .profile-nav-list.nav-count-1 {
        grid-template-columns: 1fr;
    }

    /* Si hay 2 elementos, ocupar todo el ancho equitativamente */
    .profile-nav-list.nav-count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Si hay 3 elementos, mantener 3 columnas pero más pequeñas */
    .profile-nav-list.nav-count-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-nav-link {
        flex: 1;
        white-space: nowrap;
        padding: 14px 12px;
        scroll-snap-align: none;
        margin-right: 0;
        font-size: 0.7rem;
    }

    .profile-nav-link i {
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .profile-nav-list {
        padding: 0;
    }

    .profile-nav-link {
        padding: 12px 10px;
        font-size: 0.7rem;
        gap: 6px;
    }

    .profile-nav-link i {
        font-size: 0.85rem;
    }

    .profile-nav-link span {
        display: inline;
    }
}

@media (max-width: 420px) {
    .profile-nav-list {
        padding: 0;
    }

    .profile-nav-link {
        padding: 11px 8px;
        font-size: 0.65rem;
        gap: 5px;
    }

    .profile-nav-link i {
        font-size: 0.8rem;
    }

    /* En pantallas muy pequeñas, si hay 3 elementos, hacer scroll horizontal */
    .profile-nav-list.nav-count-3 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .profile-nav-list.nav-count-3 .profile-nav-link {
        flex: 0 0 auto;
        min-width: 100px;
        scroll-snap-align: start;
    }
}

/* =====================================================
   PROFILE CONTENT
   ===================================================== */
.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    background: #ffffff;
    border-radius: 0px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.profile-section {
    margin-bottom: var(--spacing-md);
}

.profile-section-header {
    padding: var(--spacing-lg) var(--spacing-xl);
}

.profile-section-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-section-title i {
    color: #6b7280;
}

.profile-section-content {
    padding: var(--spacing-md) 0;
}

/* =====================================================
   PROFILE FEED - MOVED TO profile-feed.css
   ===================================================== */

/* =====================================================
   FEED GRID (Para streams, artículos, etc.)
   ===================================================== */
.profile-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.profile-feed-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}

.profile-feed-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.profile-feed-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.profile-feed-content {
    padding: var(--spacing-lg);
}

.profile-feed-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.profile-feed-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.profile-feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.profile-feed-type {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.profile-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.profile-about-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.profile-about-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
}

.profile-about-item:hover {
    background: #e9ecef;
}

.profile-about-icon {
    width: 40px;
    height: 40px;
    background: #6b7280;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

.profile-about-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.profile-about-value {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* =====================================================
   SOCIAL LINKS
   ===================================================== */
.profile-social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.profile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: var(--font-size-lg);
}

.profile-social-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.profile-social-link.instagram:hover { background: #e4405f; }
.profile-social-link.facebook:hover { background: #1877f2; }
.profile-social-link.twitter:hover { background: #1da1f2; }
.profile-social-link.youtube:hover { background: #ff0000; }
.profile-social-link.website:hover { background: var(--success-color); }

/* =====================================================
   EMPTY STATES
   ===================================================== */
.profile-empty-state {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
    color: var(--text-secondary);
}

.profile-empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.profile-empty-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.profile-empty-description {
    font-size: var(--font-size-base);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =====================================================
   RESPONSIVE DESIGN - DESKTOP PRIMERO
   ===================================================== */
@media (min-width: 1025px) {
    .profile-actions {
        justify-content: flex-start !important;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .btn-follow,
    .btn-message,
    .btn-friend-request {
        min-width: auto;
        flex-shrink: 0;
    }
}

/* =====================================================
   RESPONSIVE DESIGN - TABLETS Y MÓVILES
   ===================================================== */
@media (max-width: 768px) {
    .profile-header {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-avatar-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .profile-avatar-placeholder i {
        font-size: 3rem;
    }
    
    .profile-name {
        font-size: var(--font-size-3xl);
    }
    
    .profile-stats {
        gap: var(--spacing-lg);
    }
    
    .profile-nav-list {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .profile-nav-link {
        padding: var(--spacing-md) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    /* Profile feed responsive styles moved to profile-feed.css */
    
    .profile-feed-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .profile-about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .profile-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .profile-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .profile-nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .profile-nav-link {
        border-bottom: 1px solid #e9ecef;
        border-radius: 0;
    }
    
    .profile-nav-link:last-child {
        border-bottom: none;
    }
    
    .profile-header-actions {
        margin-top: var(--spacing-md);
    }
    
    .profile-header-actions .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-feed-item {
    animation: fadeInUp 0.6s ease-out;
}

.profile-feed-item:nth-child(2) { animation-delay: 0.1s; }
.profile-feed-item:nth-child(3) { animation-delay: 0.2s; }
.profile-feed-item:nth-child(4) { animation-delay: 0.3s; }
.profile-feed-item:nth-child(5) { animation-delay: 0.4s; }
.profile-feed-item:nth-child(6) { animation-delay: 0.5s; }

/* =====================================================
   LOADING STATES
   ===================================================== */
.profile-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xxl);
}

.profile-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

/* =====================================================
   ENTITIES SECTION - SECCIÓN DE ENTIDADES
   ===================================================== */
.entities-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.entities-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.entities-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
}

.btn-create-entity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-create-entity:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    border-color: #9ca3af;
}

.dark-mode .btn-create-entity {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-mode .btn-create-entity:hover {
    background: #4b5563;
    color: #ffffff;
    border-color: #6b7280;
}

.entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.entity-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.entity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #cccccc;
}

.dark-mode .entity-card:hover {
    border-color: #cccccc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.entity-card-header {
    position: relative;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.dark-mode .entity-card-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.entity-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .entity-logo {
    border-color: #4a5568;
}

.entity-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.entity-logo-placeholder i {
    font-size: 3rem;
    color: #fff;
}

.entity-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entity-status-approved {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.25);
}

.dark-mode .entity-status-approved {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.3);
}

.entity-status-pending {
    background: #f59e0b;
    color: #fff;
}

.entity-status-adjustment {
    background: #ef4444;
    color: #fff;
}

.entity-status-rejected {
    background: #6b7280;
    color: #fff;
}

.entity-card-body {
    padding: var(--spacing-lg);
    flex-grow: 1;
}

.entity-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.entity-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.entity-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.entity-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--spacing-sm);
}

.entity-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn-entity-action {
    flex: 1;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.btn-entity-action.btn-view-profile {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-entity-action.btn-view-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    border-color: #9ca3af;
}

.btn-entity-action.btn-edit {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-entity-action.btn-edit:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-entity-action.btn-public-profile {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-entity-action.btn-public-profile:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #9ca3af;
}

/* Modo oscuro para botones de acción de entidades */
.dark-mode .btn-entity-action.btn-view-profile {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}

.dark-mode .btn-entity-action.btn-view-profile:hover {
    background: #4b5563;
    color: #ffffff;
    border-color: #6b7280;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dark-mode .btn-entity-action.btn-edit {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}

.dark-mode .btn-entity-action.btn-edit:hover {
    background: #4b5563;
    color: #ffffff;
    border-color: #6b7280;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dark-mode .btn-entity-action.btn-public-profile {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}

.dark-mode .btn-entity-action.btn-public-profile:hover {
    background: #4b5563;
    color: #ffffff;
    border-color: #6b7280;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive para entidades */
@media (max-width: 768px) {
    .entities-grid {
        grid-template-columns: 1fr;
    }
    
    .entity-card-footer {
        flex-direction: column;
    }
    
    .btn-entity-action {
        width: 100%;
    }
}

/* =====================================================
   ELIMINAR PADDING SUPERIOR DEL CONTENT-COLUMN EN PERFILES
   ===================================================== */

/* Eliminar padding superior cuando content-column contiene profile-elite */
.content-column:has(.profile-elite),
.content-column .profile-elite {
    padding-top: 0 !important;
}

/* Reglas específicas para cada media query */
@media (max-width: 767px) {
    .content-column:has(.profile-elite) {
        padding-top: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .content-column:has(.profile-elite) {
        padding-top: 0 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .content-column:has(.profile-elite) {
        padding-top: 0 !important;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .content-column:has(.profile-elite) {
        padding-top: 0 !important;
    }
}

@media (min-width: 1440px) {
    .content-column:has(.profile-elite) {
        padding-top: 0 !important;
    }
}

/* Fallback para navegadores que no soportan :has() */
.content-column .profile-elite {
    margin-top: 0 !important;
}

/* Asegurar que el banner del canal no tenga margin superior */
.content-column .profile-elite > .channel-banner:first-child {
    margin-top: 0 !important;
}
