/* Quimika · controles compactos de Explorar. Cargar después de la paleta global. */
body[data-page="explorar"] .q-explore-heading {
    width: 100%;
    min-width: 0;
}
body[data-page="explorar"] .q-explore-titlebar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
body[data-page="explorar"] .q-explore-titlebar h1 {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
}
body[data-page="explorar"] .q-explore-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    gap: 8px;
    margin-left: auto;
}
body[data-page="explorar"] .q-explore-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid var(--q-border, #d6e4ef);
    border-radius: 14px;
    color: var(--q-action, #0075b4);
    background: var(--q-surface, #fff);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .18s ease, border-color .18s ease;
}
body[data-page="explorar"] .q-explore-tool:hover,
body[data-page="explorar"] .q-explore-tool[aria-expanded="true"] {
    background: var(--q-soft, #e8f4fc);
    border-color: var(--q-action, #0075b4);
}
body[data-page="explorar"] .q-explore-tool svg {
    display: block;
    flex: none;
    width: 19px;
    height: 19px;
}
body[data-page="explorar"] #explorar_vistas { width: 56px; }
body[data-page="explorar"] .q-view-number {
    min-width: 10px;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
body[data-page="explorar"] .q-view-picker { position: relative; }
body[data-page="explorar"] .q-view-options {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 5px;
    width: 196px;
    padding: 10px;
    border: 1px solid var(--q-border, #d6e4ef);
    border-radius: 18px;
    color: var(--q-text, #1b2d38);
    background: var(--q-surface, #fff);
    box-shadow: 0 14px 40px rgba(8, 40, 65, .16);
}
body[data-page="explorar"] .q-view-options[hidden],
body[data-page="explorar"] #filtros[hidden] { display: none !important; }
body[data-page="explorar"] .q-view-heading {
    padding: 4px 8px 7px;
    color: var(--q-muted, #52677b);
    font-size: 11px;
    font-weight: 600;
}
body[data-page="explorar"] .q-view-options .q-view-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--q-text, #1b2d38) !important;
    background: transparent !important;
    border-color: transparent !important;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
body[data-page="explorar"] .q-view-options .q-view-option svg {
    flex: none;
    width: 20px;
    height: 20px;
}
body[data-page="explorar"] .q-view-options .q-view-option[aria-pressed="true"] {
    color: var(--q-action, #0075b4) !important;
    background: var(--q-soft, #e8f4fc) !important;
    border-color: var(--q-border, #d6e4ef) !important;
}
body[data-page="explorar"] .q-view-options .q-view-option[aria-pressed="true"]::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    margin-left: auto;
    border-radius: 50%;
    background: currentColor;
}
body[data-page="explorar"] .q-view-options .q-view-option:hover {
    background: var(--q-soft, #e8f4fc);
}
body[data-page="explorar"] :is(.q-explore-tool, .q-view-option):focus-visible {
    outline: 2px solid var(--q-action, #0075b4);
    outline-offset: 3px;
}
body[data-page="explorar"] #filtros.q-filtros-visibles { display: grid; }
/* También se aplica antes de que llegue la respuesta de la API. */
html[data-explorar-vista="list"] body[data-page="explorar"] #perfiles {
    grid-template-columns: minmax(0, 1fr);
}
html[data-explorar-vista="two"] body[data-page="explorar"] #perfiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
html[data-explorar-vista="three"] body[data-page="explorar"] #perfiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* El texto se recorta; el marcador conserva su tamaño y la ubicación completa su título. */
body[data-page="explorar"] #perfiles .q-member-place {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
body[data-page="explorar"] #perfiles .q-member-place :is(svg, i) {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin: 0;
}
body[data-page="explorar"] #perfiles .q-member-place-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body[data-page="explorar"] #perfiles .q-member-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 600px) {
    body[data-page="explorar"] .q-explore-titlebar { gap: 8px; }
    body[data-page="explorar"] .q-explore-controls { gap: 6px; }
    body[data-page="explorar"] .q-explore-tool { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    body[data-page="explorar"] .q-explore-tool { transition: none; }
}
