/* ==========================================================
   SUPENA POTOSÍ - ESTILOS GLOBALES
   ================================================---------- */

.sp-wrap-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.sp-header-title-area {
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.sp-badge-cat {
    background: #eb0045;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
    text-decoration: none;
}

.sp-main-title {
    margin: 0;
    color: #001a57;
    font-size: 2.2rem;
    line-height: 1.2;
}

.sp-genres-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.sp-genre-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.sp-genre-chip.active {
    background: #001a57;
    color: #fff;
}

.sp-genre-chip.inactive {
    background: #f3f4f6;
    color: #374151;
}

/* Tarjeta Líder #1 */
.sp-lider-box {
    background: linear-gradient(135deg, #fdf2f4 0%, #fff5f7 100%);
    border: 2px solid #fbcfe8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(235,0,69,0.08);
}

.sp-lider-avatar-wrap {
    position: relative;
}

.sp-lider-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eb0045;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sp-lider-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #eb0045;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid #fff;
}

.sp-lider-info {
    flex: 1;
    min-width: 240px;
}

.sp-lider-subtitle {
    color: #eb0045;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.sp-lider-name {
    margin: 0 0 6px 0;
    color: #001a57;
    font-size: 1.8rem;
}

.sp-lider-name a {
    color: #001a57;
    text-decoration: none;
}

.sp-lider-meta {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

.sp-lider-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.sp-stat-badge {
    background: #ffffff;
    color: #eb0045;
    border: 1px solid #fbcfe8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-btn-primary {
    background: #001a57;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s;
}

.sp-btn-primary:hover {
    background: #eb0045;
}

/* Cuadrícula de Artistas */
.sp-section-title {
    color: #001a57;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.sp-grid-artistas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sp-tarjeta-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.sp-tarjeta-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e5e7eb;
    color: #374151;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.0rem;
}

.sp-tarjeta-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #001a57;
    margin-bottom: 12px;
}

.sp-tarjeta-name {
    margin: 0 0 4px 0;
    color: #001a57;
    font-size: 1.05rem;
    width: 100%;
}

.sp-tarjeta-name a {
    color: #001a57;
    text-decoration: none;
}

.sp-tarjeta-genero {
    color: #222;
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
}

.sp-tarjeta-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.sp-tarjeta-stat {
    background: #ffffff;
    color: #eb0045;
    border: 1px solid #fbcfe8;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.90rem;
    font-weight: bold;
}

.sp-tarjeta-link {
    color: #eb0045;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
}

.sp-hidden-item {
    display: none;
}

/* Vista de Perfil */
.sp-perfil-banner {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    background: #001a57;
    margin-bottom: -60px;
}

.sp-perfil-header-content {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    padding: 0 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.sp-perfil-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background: #fff;
}

.sp-perfil-titles h1 {
    margin: 0 0 5px 0;
    color: #001a57;
    font-size: 2rem;
}

.sp-perfil-titles p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

.sp-perfil-section {
    margin-bottom: 25px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

.sp-perfil-section h3 {
    margin-top: 0;
    color: #001a57;
    font-size: 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.sp-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.sp-social-btn {
    background: #001a57;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-social-btn:hover {
    background: #eb0045;
}

/* Responsivo */
@media (max-width: 768px) {
    .sp-wrap-container {
        margin: 15px auto !important;
        padding: 15px !important;
    }
    .sp-grid-artistas {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .sp-tarjeta-item {
        padding: 12px 8px !important;
    }
    .sp-tarjeta-avatar {
        width: 55px !important;
        height: 55px !important;
    }
    .sp-tarjeta-name {
        font-size: 0.9rem !important;
    }
    .sp-tarjeta-genero {
        font-size: 0.72rem !important;
    }
    .sp-lider-box {
        flex-direction: column !important;
        text-align: center !important;
        padding: 18px !important;
    }
    .sp-lider-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sp-perfil-banner {
        height: 140px;
    }
    .sp-perfil-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }
    .sp-perfil-avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
    }
}