/* =========================================================
   /assets/css/perfiles.css
   LISTADO DE PERFILES - VERSION RESCATE PROLIJA
========================================================= */

.profiles-page-wide{
    width: 100%;
    max-width: 100vw;
    padding: 18px 18px 110px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* =========================
   STORIES
========================= */
.stories-bar{
    margin: 0 0 18px;
}

.stories-scroll{
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar{
    display: none;
}

.story-item{
    flex: 0 0 auto;
    width: 82px;
    text-align: center;
    cursor: pointer;
}

.story-avatar{
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d8d, #ffb347);
    box-shadow: 0 10px 20px rgba(0,0,0,.22);
}

.story-avatar-inner{
    width: 100%;
    height: 100%;
    border-radius: 999px;
    overflow: hidden;
    background: #1a1323;
    border: 3px solid #120d18;
}

.story-avatar-inner img,
.story-avatar-empty{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-avatar-empty{
    background: #2a2138;
}

.story-name{
    color: #fff;
    font-size: .82rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   SECCIONES
========================= */
.profiles-section{
    margin-bottom: 26px;
}

.profiles-section-head{
    margin-bottom: 14px;
}

.profiles-section-head h2{
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
}

.profiles-section-head p{
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: .95rem;
    line-height: 1.45;
    max-width: 760px;
}

/* =========================
   GRID
========================= */
.profiles-grid{
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.profile-grid-item{
    min-width: 0;
}

.profile-card-link{
    display: block;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

/* =========================
   CARD
========================= */
.profile-grid-card{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 410px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    transition: transform .18s ease;
}

.profile-grid-card:hover{
    transform: translateY(-2px);
}

/* =========================
   IMAGEN
========================= */
.profile-image-wrap{
    position: relative;
    aspect-ratio: 4 / 5.8;
    overflow: hidden;
    background: #120d18;
}

.profile-avatar-ring-card{
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #120d18;
    position: relative;
}

.profile-avatar-ring-card.has-stories::after{
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 2px rgba(255,120,170,.35);
    pointer-events: none;
    z-index: 2;
}

.profile-avatar-ring-card img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.profile-grid-card:hover .profile-avatar-ring-card img{
    transform: scale(1.02);
}

.profile-image-placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.55);
    font-size: 2rem;
    background: linear-gradient(180deg, #21172e, #140f1d);
}

/* =========================
   BADGES
========================= */
.profile-badges-top{
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.profile-badges-top .badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    border: none;
    box-shadow: 0 6px 14px rgba(0,0,0,.16);
}

.badge-default-plan{
    background: rgba(255,255,255,.16);
    color: #fff;
}

.badge-platino{
    background: linear-gradient(135deg, #64d8f2, #29bfd8);
}

.badge-gold{
    background: linear-gradient(135deg, #f3c650, #d49c08);
}

.badge-bronce{
    background: linear-gradient(135deg, #c78960, #a95f32);
}

.badge-verified{
    display: none !important;
}

.badge-featured{
    background: linear-gradient(135deg, #ff4d8d, #ec4899);
}

.badge-price{
    margin-left: auto;
    background: rgba(15,10,22,.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================
   ESTADO SOBRE IMAGEN
========================= */
.profile-image-fade{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44%;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.84));
    z-index: 1;
}

.card-image-content{
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
}

.card-status-text{
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-status-time{
    margin-top: 4px;
    font-size: .76rem;
    color: rgba(255,255,255,.82);
}

/* =========================
   BODY CARD
========================= */
.profile-card-body{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 10px 12px;
    background: transparent;
    flex: 1 1 auto;
}

.profile-name-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-name,
.profile-name-row h5{
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-width: 0;
    color: #fff;
    font-size: .96rem;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-name .verified-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transform: translateY(1px);
}

.profile-rating-mini{
    flex: 0 0 auto;
    color: #ffd86d;
    font-size: .84rem;
    font-weight: 900;
    white-space: nowrap;
}

.profile-subline{
    color: rgba(255,255,255,.82);
    font-size: .82rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: auto;
}

.profile-service-line{
    display: none !important;
}

.profile-meta{
    display: none !important;
}

/* =========================
   EMPTY
========================= */
.empty-box{
    padding: 26px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    text-align: center;
    font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1600px){
    .profiles-grid{
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1400px){
    .profiles-grid{
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px){
    .profiles-grid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px){
    .profiles-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px){
    .profiles-page-wide{
        padding: 12px 10px 110px;
    }

    .profiles-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .profile-grid-card{
        min-height: 360px;
    }

    .profile-card-body{
        padding: 10px 10px 12px;
    }

    .profile-name,
    .profile-name-row h5{
        font-size: .90rem;
    }

    .profile-subline{
        font-size: .78rem;
    }

    .profile-rating-mini{
        font-size: .80rem;
    }
}

@media (max-width: 520px){
    .profiles-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-image-wrap{
        aspect-ratio: 4 / 5.4;
    }

    .profile-name,
    .profile-name-row h5{
        font-size: .84rem;
    }

    .profile-subline{
        font-size: .74rem;
    }
}