/* ===================================================
   ESTILOS DE LAS TARJETAS (ESTÁNDAR & VIP DESTACADO)
   =================================================== */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

.profile-card.is-vip {
    border: 2px solid #f59e0b;
    box-shadow: var(--shadow-vip);
}

.vip-announcement-banner {
    display: none;
    background: linear-gradient(90deg, #92400e 0%, #b45309 50%, #d97706 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.4rem 0.85rem;
    text-align: center;
    letter-spacing: 0.02em;
    border-top-left-radius: calc(var(--radius-xl) - 2px);
    border-top-right-radius: calc(var(--radius-xl) - 2px);
}

.profile-card.is-vip .vip-announcement-banner {
    display: block;
}

.cover-wrapper {
    position: relative;
    overflow: hidden;
    height: 155px;
    background: #1e293b;
}

.profile-card:not(.is-vip) .cover-wrapper {
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-card:hover .cover-img {
    transform: scale(1.02);
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.cover-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.category-tag {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1e1b4b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.28rem 0.72rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    white-space: nowrap !important;
    max-width: 58% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.25;
    pointer-events: auto;
}

.vip-crown-badge {
    display: none;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #f59e0b;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.28rem 0.72rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    pointer-events: auto;
}

.profile-card.is-vip .vip-crown-badge {
    display: inline-flex;
}

.avatar-bar {
    position: relative;
    padding: 0 1.25rem;
    margin-top: -38px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 10;
}

.avatar-group {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.avatar-box {
    position: relative;
    cursor: pointer;
}

.avatar-img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 3.5px solid #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    display: block;
    transition: transform 0.2s ease;
}

.profile-card.is-vip .avatar-img {
    border: 3.5px solid #f59e0b;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.32);
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    border: 2px solid #ffffff;
}

.profile-card.is-vip .verified-badge {
    background: #d97706;
}

.card-body {
    padding: 0.9rem 1.25rem 1.2rem;
}

.business-name {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin-bottom: 0.18rem;
}

.editorial-review {
    background: var(--primary-light);
    border-left: 3.5px solid var(--primary);
    padding: 0.78rem 0.95rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 0.65rem 0 0;
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.5;
}

.profile-card.is-vip .editorial-review {
    background: #fdfaf3;
    border-left-color: #d97706;
}

.official-url-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.8rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

.url-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.url-left > div:last-child {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.official-url-card:hover {
    border-color: var(--primary);
    background: #faf5ff;
}

/* ===================================================
   ADAPTABILIDAD MÓVIL DE TARJETAS (SMARTPHONES)
   =================================================== */
@media (max-width: 640px) {
    .profile-card {
        border-radius: var(--radius-lg);
    }

    .vip-announcement-banner {
        font-size: 0.71rem;
        padding: 0.36rem 0.6rem;
        border-top-left-radius: calc(var(--radius-lg) - 2px);
        border-top-right-radius: calc(var(--radius-lg) - 2px);
    }

    .cover-wrapper {
        height: 138px;
    }

    .profile-card:not(.is-vip) .cover-wrapper {
        border-top-left-radius: var(--radius-lg);
        border-top-right-radius: var(--radius-lg);
    }

    .cover-badges {
        top: 0.65rem;
        left: 0.65rem;
        right: 0.65rem;
    }

    .category-tag,
    .vip-crown-badge {
        font-size: 0.66rem;
        padding: 0.22rem 0.58rem;
    }

    .avatar-bar {
        padding: 0 0.95rem;
        margin-top: -32px;
    }

    .avatar-img {
        width: 64px;
        height: 64px;
        border-width: 3px;
    }

    .verified-badge {
        width: 20px;
        height: 20px;
        font-size: 0.64rem;
    }

    .card-body {
        padding: 0.85rem 0.95rem 1.05rem;
    }

    .business-name {
        font-size: 1.18rem;
        line-height: 1.22;
        overflow-wrap: break-word;
    }

    .editorial-review {
        padding: 0.72rem 0.85rem;
        font-size: 0.84rem;
    }

    .official-url-card {
        padding: 0.75rem 0.85rem;
        gap: 0.55rem;
    }
}

/* ===================================================
   PANTALLAS 360px (SAMSUNG S3) Y MICRO 320px (S2)
   =================================================== */
@media (max-width: 380px) {
    .cover-wrapper {
        height: 120px;
    }

    .cover-badges {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        gap: 4px;
    }

    .category-tag {
        font-size: 0.62rem;
        padding: 0.2rem 0.48rem;
        max-width: 52% !important;
    }

    .vip-crown-badge {
        font-size: 0.62rem;
        padding: 0.2rem 0.5rem;
    }

    .avatar-bar {
        padding: 0 0.75rem;
        margin-top: -28px;
    }

    .avatar-img {
        width: 56px;
        height: 56px;
    }

    .card-body {
        padding: 0.72rem 0.75rem 0.95rem;
    }

    .business-name {
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .editorial-review {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .official-url-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.68rem 0.72rem;
        gap: 0.42rem;
    }

    .url-left {
        width: 100%;
    }
}
