.explore-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative !important;
    z-index: 20 !important;
}

.back-btn {
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #0056b3;
}


.profile-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background-image: url('/uploads/logos/fondoPubs.png'); 
    position: relative !important;
    z-index: 20 !important;
}

.profile-card {
    width: 250px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease-in-out;
    position: relative !important;
    z-index: 20 !important;
}

.profile-card:hover {
    transform: scale(1.05);
    position: relative !important;
    z-index: 20 !important;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #9f2241;
    position: relative !important;
    z-index: 20 !important;
}

.profile-info h3 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.profile-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.profile-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #9f2241;
    color: white;
    
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
    
}

.profile-btn:hover {
   /* background-color: #0056b3;*/
    transform: scale(1.05);
    
    
   
}

/* ——— Barra filtros ——— */
.filters-wrapper{
    margin:20px auto;
    padding:12px 16px;
    background:#fff;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,.1);
    width:max-content;
    z-index: 20 !important;
}
.filters-form{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}
.filter-select{
    min-width:160px;
    padding:6px 10px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    z-index: 20 !important;
}
.filter-btn{
    padding:7px 14px;
    border:none;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
    z-index: 20 !important;
}
.filter-btn.apply{background:#9f2241;color:#fff}
.filter-btn.clear{background:#D7C8A3;color:#9f2241}
.filter-btn.apply:hover{background:#7a1a32}
.filter-btn.clear:hover{filter:brightness(.95)}

/* ──────────────────────────────────────────────────────────
   TABLET (≤ 1024 px)
────────────────────────────────────────────────────────── */
@media (max-width:1024px){
    /* ▼ filtros a todo el ancho y en columna */
    .filters-wrapper{
        width:100%;
        max-width:100%;
        padding:12px;
        box-sizing:border-box;
    }
    .filters-form{
        gap:10px;
        justify-content:center;
    }

    /* ▼ tarjetas: dos por fila */
    .profile-card{
        flex:1 1 calc(45% - 20px);  /* 2 columnas con gap 20px */
        max-width:350px;
    }
}

/* ──────────────────────────────────────────────────────────
   MÓVIL (≤ 600 px)
────────────────────────────────────────────────────────── */
@media (max-width:600px){
    .explore-header{
        flex-direction:column;
        align-items:flex-start;
        gap:4px;
    }
    .back-btn{
        font-size:14px;
    }
    .explore-header h2{
        font-size:20px;
        margin:0 0 6px;
    }

    /* ▼ filtros en una sola columna */
    .filters-form{
        flex-direction:column;
        align-items:stretch;
        gap:8px;
    }
    .filter-select{
        width:100%;
        min-width:auto;
    }
    .filter-btn{
        width:100%;
        text-align:center;
    }

    /* ▼ tarjetas: una por fila */
    .profile-card{
        flex:1 1 100%;
        width:100%;
        max-width:450px;
    }
    .profile-image img{
        width:100px;
        height:100px;
    }
    .profile-info h3{
        font-size:16px;
    }
    .profile-info p{
        font-size:13px;
    }
}
