/* Quimika · Perfil público. Los bloques vacíos permanecen ocultos. */
.pv-page {
    --pv-accent: #8a4da2;
    --pv-soft: #f6edf8;
    --pv-rose: #a94d70;
    --pv-text: var(--text, #292033);
    --pv-muted: var(--muted, #716a80);
    --pv-panel: var(--panel, #fff);
    --pv-border: var(--stroke, #e6dfea);
}

html[data-theme="dark"] .pv-page {
    --pv-accent: #deb0ee;
    --pv-soft: #302039;
    --pv-rose: #efacc7;
}

.pv-page [hidden] {
    display: none !important;
}

.pv-page .pv-main {
    max-width: 1260px;
    padding-top: 28px;
}

.pv-main :is(h1, h2, p, dl, dd) {
    margin: 0;
}

.pv-main :is(a, button) {
    -webkit-tap-highlight-color: transparent;
}

.pv-main a {
    text-decoration: none;
}

.pv-main :is(a, button):focus-visible, .pv-lightbox button:focus-visible {
    outline: 3px solid var(--pv-accent);
    outline-offset: 4px;
}

.pv-main svg, .pv-lightbox svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    stroke-width: 1.7;
}

.pv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.pv-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--pv-muted);
    font-size: 12px;
}

.pv-back:hover {
    color: var(--pv-accent);
}

.pv-wordmark {
    color: var(--pv-text);
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.06em;
}

.pv-wordmark > span {
    color: var(--pv-rose);
    padding-left: 3px;
}

.pv-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    font-size: 13px;
    color: var(--pv-muted);
}

.pv-loader {
    width: 20px;
    height: 20px;
    border: 2px solid var(--pv-border);
    border-top-color: var(--pv-accent);
    border-radius: 50%;
    animation: pv-spin .9s linear infinite;
}

@keyframes pv-spin {
    to {
        transform: rotate(360deg);
    }
}

.pv-profile {
    display: grid;
    grid-template-columns: minmax(0, .83fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.pv-profile[data-sin-fotos="true"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
    margin-inline: auto;
}

.pv-photos {
    min-width: 0;
    align-self: stretch;
}

.pv-photo-sticky {
    position: sticky;
    top: 24px;
}

.pv-photo-frame {
    position: relative;
    isolation: isolate;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 24px;
    background: var(--surface);
}

.pv-photo-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.pv-photo-open img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

@media (hover: hover) {
    .pv-photo-open:hover img {
        transform: scale(1.025);
    }
}

.pv-photo-arrow {
    position: absolute;
    top: 46%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 42px;
    border: 1px solid #ffffff4d;
    border-radius: 12px;
    background: #23172b50;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.pv-photo-arrow:hover {
    background: #23172b99;
}

.pv-photo-prev {
    left: 12px;
}

.pv-photo-next {
    right: 12px;
}

.pv-photo-count {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 7px 12px;
    border-radius: 20px;
    background: #23172b80;
    color: #fff;
    font-size: 11px;
    letter-spacing: .05em;
    backdrop-filter: blur(8px);
}

.pv-photo-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 20px;
    background: #23172b70;
    color: white;
    font-size: 10px;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.pv-photo-hint svg {
    width: 13px;
    height: 13px;
}

.pv-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

.pv-gallery .q-thumb {
    width: calc((100% - 36px) / 5);
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    opacity: .64;
    transition: opacity .15s, border-color .15s;
}

.pv-gallery .q-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pv-gallery .q-thumb.seleccionada, .pv-gallery .q-thumb:hover {
    opacity: 1;
    border-color: var(--pv-accent);
}

.pv-story {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pv-identity, .pv-section {
    background: var(--pv-panel);
    border: 1px solid var(--pv-border);
    border-radius: 20px;
    padding: 27px;
    min-width: 0;
}

.pv-identity {
    padding-top: 30px;
    background: linear-gradient(130deg, var(--pv-soft), transparent 72%), var(--pv-panel);
}

.pv-eyebrow {
    color: var(--pv-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.6;
    margin-bottom: 14px !important;
}

.pv-page #encabezado_miembro {
    column-gap: 12px;
    margin-bottom: 14px;
}

.pv-page #nombre_perfil {
    color: var(--pv-text);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.pv-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--pv-muted);
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    margin-top: 7px !important;
}

.pv-meta svg {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    color: var(--pv-accent);
}

.pv-search {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-top: 1px solid var(--pv-border);
    color: var(--pv-rose);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 18px !important;
    padding-top: 17px;
    overflow-wrap: anywhere;
}

.pv-search svg {
    width: 15px;
    height: 15px;
    margin-top: 4px;
}

.pv-page #acciones_perfil {
    width: 100%;
    margin-top: 21px;
    background: var(--pv-panel);
    border-color: var(--pv-border);
    box-shadow: none;
}

.pv-page #acciones_perfil .q-profile-action {
    min-height: 46px;
}

.pv-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
}

.pv-section-title h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.4;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--pv-text);
}

.pv-section-icon {
    display: grid;
    place-items: center;
    color: var(--pv-accent);
}

.pv-section-icon svg {
    width: 17px;
    height: 17px;
}

.pv-about {
    border-color: transparent;
    background: var(--pv-soft);
}

.pv-biography {
    font-size: 14px;
    line-height: 1.95;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: var(--pv-text);
}

.pv-height {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 19px 24px;
    border: 1px solid var(--pv-border);
    background: var(--pv-panel);
    border-radius: 17px;
}

.pv-height-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 44px;
    border-radius: 12px;
    background: var(--pv-soft);
    color: var(--pv-accent);
}

.pv-label {
    display: block;
    font-size: 10px;
    color: var(--pv-muted);
    line-height: 1.7;
}

.pv-height p {
    font-size: 16px;
    font-weight: 600;
    color: var(--pv-text);
    line-height: 1.6;
}

.pv-height-label {
    margin-left: auto;
    border-radius: 20px;
    background: var(--pv-soft);
    color: var(--pv-accent);
    padding: 7px 10px;
    font-size: 10px;
    line-height: 1.5;
}

.pv-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
}

.pv-fact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.pv-fact > svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--pv-accent);
}

.pv-fact > div {
    min-width: 0;
}

.pv-fact dt {
    color: var(--pv-muted);
    font-size: 10px;
    line-height: 1.7;
}

.pv-fact dd {
    color: var(--pv-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.pv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.pv-page :is(#intereses_perfil .q-interest, .pv-chip) {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--pv-border);
    border-radius: 10px;
    background: transparent;
    color: var(--pv-text);
    font-size: 11px;
    line-height: 1.5;
    white-space: normal;
    box-sizing: border-box;
}

.pv-page #intereses_perfil .q-interest > :is(i, svg), .pv-chip svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--pv-accent);
}

.pv-page #intereses_perfil .q-interest > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pv-intentions .pv-chip {
    color: var(--pv-rose);
    background: var(--pv-soft);
    border-color: transparent;
}

.pv-interest-total {
    margin-left: auto;
    display: grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 3px 6px;
    color: var(--pv-accent);
    background: var(--pv-soft);
    border-radius: 8px;
    font-size: 11px;
}

.pv-show-more {
    margin-top: 15px;
    padding: 5px 0;
    min-height: 44px;
    background: transparent;
    border: none;
    color: var(--pv-accent);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.pv-show-more:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pv-main .q-profile-restricted {
    padding: 28px;
    border-radius: 20px;
}

.pv-main .q-profile-restricted p {
    margin: 14px 0;
}

.pv-lightbox {
    width: min(1100px, 100vw - 24px);
    height: min(920px, 100dvh - 24px);
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 24px);
    padding: 54px 15px 65px;
    border: 1px solid #ffffff25;
    border-radius: 20px;
    background: #160f1e;
    color: #fff;
    overflow: hidden;
}

.pv-lightbox::backdrop {
    background: #0e0915ed;
    backdrop-filter: blur(12px);
}

.pv-lightbox:not([open]) {
    display: none;
}

.pv-lightbox > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pv-lightbox button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    background: #ffffff10;
    color: white;
    cursor: pointer;
}

.pv-lightbox-close {
    position: absolute;
    right: 12px;
    top: 9px;
}

.pv-lightbox-footer {
    position: absolute;
    left: 0;
    bottom: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-size: 12px;
}

.pv-skip {
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 3000;
    transform: translateY(-160%);
    background: var(--pv-panel);
    color: var(--pv-text);
    padding: 12px;
    border-radius: 8px;
}

.pv-skip:focus {
    transform: translateY(0);
}

@media (min-width: 901px) and (max-width: 1150px) {
    .pv-page .pv-main {
        padding-left: 25px;
        padding-right: 25px;
    }
    .pv-profile {
        gap: 19px;
        grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
    }
    .pv-identity, .pv-section {
        padding: 22px;
    }
    .pv-facts {
        grid-template-columns: minmax(0, 1fr);
    }
    .pv-height-label {
        margin-left: 52px;
    }
}

@media (max-width: 700px) {
    .pv-page .pv-main {
        padding: 16px 18px calc(100px + env(safe-area-inset-bottom));
    }
    .pv-topbar {
        margin-bottom: 17px;
    }
    .pv-wordmark {
        font-size: 22px;
    }
    .pv-profile {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    .pv-photo-sticky {
        position: static;
    }
    .pv-photo-frame {
        border-radius: 22px;
    }
    .pv-gallery .q-thumb {
        border-radius: 10px;
    }
    .pv-story {
        gap: 15px;
    }
    .pv-identity, .pv-section {
        padding: 24px;
        border-radius: 18px;
    }
    .pv-page #nombre_perfil {
        font-size: 35px;
    }
    .pv-section-title h2 {
        font-size: 17px;
    }
    .pv-meta, .pv-search {
        font-size: 13px;
    }
    .pv-biography {
        font-size: 14px;
    }
    .pv-fact dt {
        font-size: 11px;
    }
    .pv-fact dd {
        font-size: 13px;
    }
    .pv-page :is(#intereses_perfil .q-interest, .pv-chip) {
        font-size: 12px;
    }
    .pv-height {
        padding: 19px;
    }
    .pv-height-label {
        font-size: 10px;
    }
}

@media (max-width: 369px) {
    .pv-page .pv-main {
        padding-left: 12px;
        padding-right: 12px;
    }
    .pv-identity, .pv-section {
        padding: 20px;
    }
    .pv-page #nombre_perfil {
        font-size: 30px;
    }
    .pv-height-label {
        margin-left: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pv-page * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

