/* Kimelfe – Perfiles de persona · alineado con browse Personas/Organizaciones */

body.kimelfe-person-profile {
    background: #f4f7fa;
}

body.kimelfe-person-profile #wrapper-content {
    max-width: 1120px;
    margin: 0 auto 2.5rem;
    padding: 15px;
    background: transparent;
}

body.kimelfe-person-profile #individual-admin {
    display: none;
}

/* —— Tarjeta hero (foto + nombre + posiciones) —— */
body.kimelfe-person-profile section#individual-intro.person:first-of-type {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

body.kimelfe-person-profile section#individual-intro.person:first-of-type > .row.row-eq-height {
    margin: 0;
    background: transparent;
}

body.kimelfe-person-profile .photo-wrapper {
    background: #f8fafc !important;
    padding: 1.25rem !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-right: 1px solid #eef2f6;
}

body.kimelfe-person-profile .photo-wrapper .individual-photo {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(19, 41, 75, 0.06);
}

body.kimelfe-person-profile .person-details {
    padding: 0;
}

body.kimelfe-person-profile .person-details > .row.title {
    background: linear-gradient(135deg, #13294b 0%, #167093 100%) !important;
    padding: 1.25rem 1.5rem 1rem !important;
    margin: 0;
    border: none;
}

body.kimelfe-person-profile .person-details > .row.title span,
body.kimelfe-person-profile .person-details > .row.title h1,
body.kimelfe-person-profile .person-details > .row.title .display-title {
    color: #fff !important;
}

body.kimelfe-person-profile h1.foaf-person {
    margin: 0 0 0.35rem !important;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body.kimelfe-person-profile .display-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.92;
    margin-top: 0.15rem;
}

body.kimelfe-person-profile #iconControlsRightSide {
    float: right;
    margin-top: 0.15rem;
    opacity: 0.65;
    transition: opacity 0.15s ease;
}

body.kimelfe-person-profile #iconControlsRightSide:hover {
    opacity: 1;
}

body.kimelfe-person-profile #uriIcon,
body.kimelfe-person-profile #qrIcon {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

body.kimelfe-person-profile .person-details > .row.person-details {
    padding: 1rem 1.5rem 1.25rem;
    margin: 0;
    background: #fff;
}

body.kimelfe-person-profile h2.mainPropGroup {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 1rem 0 0.625rem;
    padding: 0;
    border: none;
}

body.kimelfe-person-profile h2.mainPropGroup:first-of-type {
    margin-top: 0;
}

body.kimelfe-person-profile #researchAreaIcon {
    display: none;
}

body.kimelfe-person-profile #individual-personInPosition {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.kimelfe-person-profile #individual-personInPosition li {
    padding: 0.625rem 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.45;
}

body.kimelfe-person-profile #individual-personInPosition li:last-child {
    border-bottom: none;
}

body.kimelfe-person-profile #individual-personInPosition a {
    color: #0055b7;
    font-weight: 600;
    text-decoration: none;
}

body.kimelfe-person-profile #individual-personInPosition a:hover,
body.kimelfe-person-profile #individual-personInPosition a:focus {
    color: #167093;
    text-decoration: underline;
}

body.kimelfe-person-profile #individual-hasResearchArea {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.kimelfe-person-profile #individual-hasResearchArea li {
    margin: 0;
}

body.kimelfe-person-profile #individual-hasResearchArea a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #13294b;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.kimelfe-person-profile #individual-hasResearchArea a:hover,
body.kimelfe-person-profile #individual-hasResearchArea a:focus {
    background: #13294b;
    border-color: #13294b;
    color: #fff;
}

body.kimelfe-person-profile section#individual-intro.person + section#individual-intro.person {
    display: none;
}

/* —— ORCID —— */
.kimelfe-orcid-block {
    margin-top: 0.5rem;
}

.kimelfe-orcid-link,
a.kimelfe-orcid-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f97316 !important;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.kimelfe-orcid-link::before,
a.kimelfe-orcid-link::before {
    content: "ORCID";
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.kimelfe-orcid-link:hover,
a.kimelfe-orcid-link:hover,
.kimelfe-orcid-link:focus,
a.kimelfe-orcid-link:focus {
    color: #fdba74 !important;
    text-decoration: underline;
}

#property-group-tabs .kimelfe-orcid-link,
#individual-info .kimelfe-orcid-link {
    color: #f97316 !important;
}

#property-group-tabs .kimelfe-orcid-link::before,
#individual-info .kimelfe-orcid-link::before {
    background: #fff7ed;
    color: #ea580c;
}

/* —— Pestañas de propiedades —— */
body.kimelfe-person-profile #property-tabs {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.25rem 0.5rem;
    margin-bottom: 1.25rem;
}

body.kimelfe-person-profile #property-tabs > .row:first-child {
    margin-bottom: 0;
}

body.kimelfe-person-profile #property-tabs .nav-tabs {
    border-bottom: 2px solid #e8edf2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0;
}

body.kimelfe-person-profile #property-tabs .nav-tabs > li {
    margin-bottom: -2px;
    float: none;
}

body.kimelfe-person-profile #property-tabs .nav-tabs > li > a {
    margin: 0;
    padding: 0.5rem 0.875rem;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    transition: color 0.15s ease, background 0.15s ease;
}

body.kimelfe-person-profile #property-tabs .nav-tabs > li > a:hover,
body.kimelfe-person-profile #property-tabs .nav-tabs > li > a:focus {
    color: #13294b;
    background: #f8fafc;
    border-color: transparent;
}

body.kimelfe-person-profile #property-tabs .nav-tabs > li.active > a,
body.kimelfe-person-profile #property-tabs .nav-tabs > li.active > a:hover,
body.kimelfe-person-profile #property-tabs .nav-tabs > li.active > a:focus {
    color: #fff;
    background: #13294b;
    border-color: #13294b;
}

body.kimelfe-person-profile #property-tabs .tab-content {
    padding: 1rem 0 0.5rem;
}

body.kimelfe-person-profile #property-tabs article.property {
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f6;
    margin: 0;
}

body.kimelfe-person-profile #property-tabs article.property:last-child {
    border-bottom: none;
}

body.kimelfe-person-profile #property-tabs article.property h3 {
    color: #13294b;
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.625rem;
}

body.kimelfe-person-profile #property-tabs .property-list {
    margin: 0;
    padding-left: 1.125rem;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.5;
}

body.kimelfe-person-profile #property-tabs .property-list a {
    color: #0055b7;
    font-weight: 500;
}

body.kimelfe-person-profile #property-tabs .property-list a:hover,
body.kimelfe-person-profile #property-tabs .property-list a:focus {
    color: #167093;
}

body.kimelfe-person-profile #property-tabs .listDateTime {
    color: #64748b;
    font-size: 0.875rem;
}

body.kimelfe-person-profile #property-tabs li.subclass > h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 1rem 0 0.5rem;
}

/* —— Sidebar —— */
body.kimelfe-person-profile .col-md-4 {
    padding-left: 1rem;
}

body.kimelfe-person-profile .kimelfe-profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
}

body.kimelfe-person-profile .kimelfe-profile-card-title {
    display: block;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #13294b;
    letter-spacing: -0.01em;
}

body.kimelfe-person-profile #publicationsHeading {
    display: none;
}

body.kimelfe-person-profile .kimelfe-publications-widget {
    position: relative;
    margin-top: 0.25rem;
}

body.kimelfe-person-profile .kimelfe-pub-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

body.kimelfe-person-profile .kimelfe-pub-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0.5rem 0.375rem;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    text-align: center;
}

body.kimelfe-person-profile .kimelfe-pub-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #13294b;
    line-height: 1.1;
}

body.kimelfe-person-profile .kimelfe-pub-stat-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

body.kimelfe-person-profile .kimelfe-pub-empty {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

body.kimelfe-person-profile .kimelfe-profile-chart-card #publicationsChart {
    display: block;
    width: 100%;
    margin: 0;
    overflow: visible;
}

body.kimelfe-person-profile .kimelfe-pub-axis path,
body.kimelfe-person-profile .kimelfe-pub-axis line {
    stroke: #e2e8f0;
}

body.kimelfe-person-profile .kimelfe-pub-axis text {
    fill: #64748b;
    font-size: 10px;
    font-weight: 500;
}

body.kimelfe-person-profile .kimelfe-pub-bar {
    transition: opacity 0.15s ease;
}

body.kimelfe-person-profile .kimelfe-pub-series:hover .kimelfe-pub-bar {
    opacity: 0.78;
}

body.kimelfe-person-profile .kimelfe-pub-series:hover .kimelfe-pub-bar:hover {
    opacity: 1;
}

body.kimelfe-person-profile .kimelfe-pub-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid #eef2f6;
}

body.kimelfe-person-profile .kimelfe-pub-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

body.kimelfe-person-profile .kimelfe-pub-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

body.kimelfe-person-profile .kimelfe-pub-tooltip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    background: #13294b;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.45;
    box-shadow: 0 4px 12px rgba(19, 41, 75, 0.25);
    transition: opacity 0.12s ease;
    white-space: nowrap;
}

body.kimelfe-person-profile .kimelfe-pub-tooltip-total {
    opacity: 0.85;
}

body.kimelfe-person-profile .visualization-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.kimelfe-person-profile .collaboratorship-link-container {
    margin: 0;
}

body.kimelfe-person-profile .visualization-buttons .btn-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #13294b;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.kimelfe-person-profile .visualization-buttons .btn-info:hover,
body.kimelfe-person-profile .visualization-buttons .btn-info:focus {
    background: #13294b;
    border-color: #13294b;
    color: #fff;
}

body.kimelfe-person-profile .kimelfe-profile-contact-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.kimelfe-person-profile .kimelfe-profile-contact-card ul.individual-emails,
body.kimelfe-person-profile .kimelfe-profile-contact-card ul.individual-urls {
    list-style: none;
    margin-left: 0;
}

body.kimelfe-person-profile .kimelfe-profile-contact-card ul.individual-emails li,
body.kimelfe-person-profile .kimelfe-profile-contact-card ul.individual-urls li {
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    line-height: 1.45;
}

body.kimelfe-person-profile .kimelfe-profile-contact-card a {
    color: #0055b7;
    font-weight: 500;
    word-break: break-word;
}

body.kimelfe-person-profile .kimelfe-profile-contact-card a:hover,
body.kimelfe-person-profile .kimelfe-profile-contact-card a:focus {
    color: #167093;
}

body.kimelfe-person-profile .kimelfe-profile-contact-card .kimelfe-profile-subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f6;
}

body.kimelfe-person-profile .kimelfe-profile-contact-card .kimelfe-profile-subsection:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* —— Responsive —— */
@media (max-width: 991px) {
    body.kimelfe-person-profile .col-md-4 {
        padding-left: 15px;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767px) {
    body.kimelfe-person-profile section#individual-intro.person:first-of-type > .row.row-eq-height {
        display: block;
    }

    body.kimelfe-person-profile .photo-wrapper {
        border-right: none;
        border-bottom: 1px solid #eef2f6;
        padding: 1rem !important;
    }

    body.kimelfe-person-profile .person-details > .row.title {
        padding: 1rem !important;
    }

    body.kimelfe-person-profile .person-details > .row.person-details {
        padding: 1rem !important;
    }

    body.kimelfe-person-profile h1.foaf-person {
        font-size: 1.375rem;
    }

    body.kimelfe-person-profile #property-tabs .nav-tabs > li > a {
        padding: 0.45rem 0.625rem;
        font-size: 0.8125rem;
    }
}
