.page-about,
.page-team-member {
    background: #f7f5f3;
    padding-bottom: 80px;
}

.page-about > .container,
.about-hero > .container,
.about-section > .container,
.team-member-section > .container {
    width: 100%;
    max-width: 1500px;
}

/* HERO SOMOS */
.about-hero {
    padding: 80px 0 40px;
    background: #f7f5f3;
}

.about-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-hero__eyebrow,
.section-heading__eyebrow,
.about-video-header__eyebrow,
.methodology-section__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c13946;
    margin-bottom: 14px;
}

.about-hero__title {
    margin: 0 0 14px;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 700;
    color: #222;
}

.about-hero__excerpt {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.68;
    color: #555;
}

/* SECCIONES */
.about-section,
.team-member-section {
    padding: 18px 0;
    background: #f7f5f3;
}

.about-card,
.team-member-card,
.team-member-sidebar-card {
    background: #fff;
    border: 1px solid #ece6e1;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.about-card {
    padding: 60px 80px;
}

.about-card--content,
.about-card--download {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* HEADINGS */
.section-heading {
    margin-bottom: 22px;
    text-align: center;
}

.section-heading--left {
    text-align: left;
}

.section-heading--center {
    text-align: center;
}

.section-heading__title,
.about-video-header__title,
.methodology-section__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;
    color: #222;
}

/* EDITORIAL */
.about-editorial,
.methodology-editorial,
.team-member-card__editorial {
    font-size: 17px;
    line-height: 1.75;
    color: #4b4b4b;
}

.about-editorial p:last-child,
.methodology-editorial p:last-child,
.team-member-card__editorial p:last-child {
    margin-bottom: 0;
}

.about-editorial h2,
.about-editorial h3 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #222;
    padding-bottom: 20px;
}

/* INTRO SOMOS */
.about-intro-editorial {
    max-width: 1500px;
}

.about-intro-editorial .about-video-header,
.about-intro-editorial .about-video-header__eyebrow,
.about-intro-editorial .about-video-header__title {
    text-align: left;
    margin-bottom: 18px;
}

/* VIDEO */
.about-video-header {
    margin: 0;
    text-align: center;
}

.about-video-header__title {
    line-height: 1.3;
}

.about-video--inline {
    margin-top: 0;
    max-width: none;
}

.about-video--inline iframe,
.about-video--inline video {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    overflow: hidden;
    background: #000;
}

.about-ambits-video {
    max-width: 1000px;
    margin: 0 auto 32px;
    text-align: center;
}

.about-ambits-video .about-video-header {
    margin-bottom: 14px;
}

/* ÁMBITOS / TEMAS */
.methodology-section__header,
.about-section--ambits .methodology-section__header,
.about-section--topics .methodology-section__header {
    margin: 0 0 20px;
    text-align: center;
}

.methodology-section__title {
    margin-bottom: 20px;
}

.methodology-section__intro,
.about-section--topics .methodology-section__intro {
    max-width: 1000px;
    margin: 10px auto 0;
    font-size: 17px;
    line-height: 1.65;
    color: #4b4b4b;
    text-align: center;
}

.about-ambits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-ambit {
    width: 100%;
}

.about-section--ambits .methodology-editorial p {
    margin: 0 0 18px;
}

.about-section--ambits .methodology-editorial h2,
.about-section--ambits .methodology-editorial h3 {
    color: #222;
    font-weight: 700;
    line-height: 1.2;
    margin: 30px 0 14px;
}

.about-section--ambits .methodology-editorial h2 {
    font-size: 30px;
}

.about-section--ambits .methodology-editorial h3 {
    font-size: 24px;
}

.about-section--ambits .methodology-editorial h4 {
    font-size: 20px;
    margin: 0;
}

.about-section--ambits .methodology-editorial ul,
.about-section--ambits .methodology-editorial ol {
    margin: 0 0 20px 22px;
    padding: 0;
}

.about-section--ambits .methodology-editorial li {
    margin-bottom: 10px;
}

/* PANELES */
.about-section--ambits .methodology-editorial .germina-taxonomy-panel,
.about-section--ambits .methodology-editorial .taxonomy-panel,
.about-section--ambits .methodology-editorial .panel,
.about-section--ambits .methodology-editorial .accordion,
.about-section--ambits .methodology-editorial .shortcode-panel {
    margin-top: 28px;
    border-radius: 15px;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.about-section--ambits .methodology-editorial .panel-heading,
.about-section--ambits .methodology-editorial .accordion-header,
.about-section--ambits .methodology-editorial .taxonomy-panel-header,
.about-section--ambits .methodology-editorial .shortcode-panel-header {
    background: #fff;
    color: #c13946;
    border: 1px solid #c13946;
    border-radius: 15px;
    min-height: 66px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.about-section--ambits .methodology-editorial .panel-heading a,
.about-section--ambits .methodology-editorial .accordion-header a,
.about-section--ambits .methodology-editorial .taxonomy-panel-header a,
.about-section--ambits .methodology-editorial .shortcode-panel-header a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 66px;
    color: inherit;
    text-decoration: none;
}

.about-section--ambits .methodology-editorial .panel-body,
.about-section--ambits .methodology-editorial .accordion-body,
.about-section--ambits .methodology-editorial .taxonomy-panel-body,
.about-section--ambits .methodology-editorial .shortcode-panel-body {
    background: #fff;
    padding: 28px 22px;
    border: 1px solid #c13946;
    border-top: none;
    border-radius: 0 0 15px 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 12px;
    text-align: center;
}

/* TAGS */
.ambitos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.ambito-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #c13946;
    border-radius: 999px;
    color: #c13946;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ambito-item:hover,
.ambito-item:focus {
    background: #c13946;
    color: #fff;
    border-color: #c13946;
    text-decoration: none;
}

/* EQUIPO / COLABORAN - VISTA SOMOS */
.team-intro {
    max-width: 1000px;
    margin: 0 auto 26px;
    text-align: center;
}

.team-intro p,
.about-collaborators-intro p {
    font-size: 15px;
    line-height: 1.65;
    color: #4b4b4b;
    margin: 0;
}

.about-collaborators-intro {
    max-width: 620px;
    margin: 0 auto 24px;
    text-align: center;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 34px 28px;
    margin: 0;
}

.team-grid .equipo-item-column {
    float: none;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

/* Equipo Somos */
.page-about .about-section--team .integrante {
    width: 220px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    margin: 0 auto;
    color: inherit;
}

.page-about .about-section--team .integrante .imgwrap,
.page-about .about-section--team .integrante .imgwrap img {
    width: 200px;
    height: 200px;
    border-radius: 9999px;
}

.page-about .about-section--team .integrante .imgwrap {
    margin: 0 auto 12px;
    overflow: hidden;
}

.page-about .about-section--team .integrante .imgwrap img {
    object-fit: cover;
    display: block;
}

/* Colaboran Somos */
.about-section--collaborators .team-grid--collaborators {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 34px 28px;
    justify-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

.about-section--collaborators .equipo-item-column {
    width: auto;
    margin-bottom: 0;
}

.page-about .about-section--collaborators .integrante {
    width: 170px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    margin: 0 auto;
    color: inherit;
}

.page-about .about-section--collaborators .integrante .imgwrap,
.page-about .about-section--collaborators .integrante .imgwrap img {
    width: 150px;
    height: 150px;
    border-radius: 9999px;
}

.page-about .about-section--collaborators .integrante .imgwrap {
    margin: 0 auto 12px;
    overflow: hidden;
}

.page-about .about-section--collaborators .integrante .imgwrap img {
    object-fit: cover;
    display: block;
}

.page-about .integrante h4 {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
}

.page-about .about-section--collaborators .integrante h4 {
    font-size: 13px;
}

.page-about .integrante:hover,
.page-about .integrante:focus {
    text-decoration: none;
    color: inherit;
}

/* DETALLE INTEGRANTE */
.team-member-section > .container {
    padding-left: 32px;
    padding-right: 32px;
}

.team-member-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.team-member-main,
.team-member-sidebar {
    min-width: 0;
}

.team-member-card {
    padding: 60px 80px;
    min-height: 910px;
}

.team-member-card__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.team-member-card__heading {
    margin-bottom: 24px;
}

.team-member-card__heading .section-heading__title {
    font-size: 48px;
}

.team-member-card__top {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.team-member-card__aside {
    display: flex;
    justify-content: center;
}

.team-member-card__media {
    margin: 0;
}

.team-member-card__media img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 9999px;
    display: block;
}

.team-member-card__summary {
    min-width: 0;
}

.team-member-card__editorial p {
    padding-bottom: 20px;
}

.team-member-card__links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.team-member-link-group__label {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

.team-member-link,
.team-member-link a,
.team-member-card .eqcorreo,
.team-member-card .linklinkedin,
.team-member-card .adjuntos a {
    color: #c13946 !important;
    font-weight: 600;
    text-decoration: none;
}

.team-member-link:hover,
.team-member-link a:hover,
.team-member-card .eqcorreo:hover,
.team-member-card .linklinkedin:hover,
.team-member-card .adjuntos a:hover {
    color: #a92f3a !important;
    text-decoration: none;
}

/* SIDEBAR DETALLE: UNA SOLA CARD */
/* SIDEBAR DETALLE: UNA SOLA CARD */
.team-member-sidebar {
    min-width: 0;
}

.team-member-sidebar-card--directory {
    background: #fff;
    border: 1px solid #ece6e1;
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    min-height: 910px;
}

.team-member-sideblock {
    margin-bottom: 40px;
}

.team-member-sideblock:last-child {
    margin-bottom: 0;
}

.team-member-sideblock__title {
    margin: 0 0 28px;
    padding-left: 0;
    text-align: center;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    color: #222;
}

.team-member-sideblock__title::before {
    display: none;
}

.team-member-side-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 12px;
}

.team-member-side-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;

    color: #222;
    text-decoration: none;
}

.team-member-side-item:hover,
.team-member-side-item:focus {
    color: #c13946;
    text-decoration: none;
}

.team-member-side-item.is-active {
    color: #c13946;
}

.team-member-side-item__image {
    width: 78px;
    height: 78px;
    margin: 0 auto 9px;
    border-radius: 9999px;
    overflow: hidden;
    display: block;
}

.team-member-side-item__image img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    display: block;
    border-radius: 9999px;
}

.team-member-side-item__name {
    display: block;
    max-width: 92px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 700;
    color: inherit;
}

/* DOCUMENTO INSTITUCIONAL */
.about-card--download .section-heading {
    margin-bottom: 12px;
    text-align: left;
}

.about-download__text {
    font-size: 15px;
    line-height: 1.68;
    color: #4b4b4b;
    margin: 0 0 18px;
    max-width: 1000px;
}

.about-download__actions {
    display: flex;
    justify-content: flex-start;
}

/* ÁMBITOS NUEVO LAYOUT */
.about-ambits-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 56px;
    align-items: start;
    margin-top: 36px;
}

.about-ambits-content {
    min-width: 0;
}

/* ÁMBITOS NUEVO LAYOUT */
/*.about-ambits-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 64px;
    align-items: center;
    margin-top: 42px;
}

.about-ambits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-ambits-list li {
    position: relative;
    margin: 0 0 18px;
    padding-left: 24px;
    font-size: 17px;
    line-height: 1.62;
    color: #4b4b4b;
}

.about-ambits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c13946;
}

.about-ambits-tags {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-ambits-tags .ambitos-list {
    margin-top: 0;
    justify-content: center;
    gap: 16px 14px;
}*/
/* ÁMBITOS - LISTADO EN 2 COLUMNAS */
.about-ambits-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.about-ambits-content {
    column-count: 2;
    column-gap: 48px;
}

.about-ambits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-ambits-list li {
    position: relative;
    margin: 0 0 16px;
    padding-left: 22px;
    font-size: 17px;
    line-height: 1.62;
    color: #4b4b4b;
    break-inside: avoid;
}

.about-ambits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c13946;
}

/* TAGS ABAJO FULL WIDTH */
.about-ambits-tags {
    width: 100%;
    margin-top: 10px;
}

.about-ambits-tags .ambitos-list {
    justify-content: center;
    gap: 16px 14px;
    margin-top: 0;
}

/* TABLET */
@media (max-width: 991px) {
    .about-section > .container {
        padding: 20px 40px;
    }

    .about-card {
        padding: 40px 30px;
    }

    .about-hero {
        padding: 60px 40px 20px;
    }

    .about-section {
        padding: 0;
    }

    .about-hero__title {
        font-size: 34px;
    }

    .about-hero__excerpt {
        font-size: 17px;
    }

    .section-heading__title,
    .about-video-header__title,
    .methodology-section__title {
        font-size: 34px;
    }

    .about-video--inline iframe,
    .about-video--inline video {
        height: 320px;
    }

    .about-section--collaborators .team-grid--collaborators {
        grid-template-columns: repeat(3, 1fr);
        max-width: 720px;
        justify-items: center; /* 👈 centra cada item */
    }

    /* 🔴 NUEVO: imágenes equipo */
    .page-about .about-section--team .integrante .imgwrap,
    .page-about .about-section--team .integrante .imgwrap img {
        width: 150px;
        height: 150px;
    }

    /* 🔴 NUEVO: imágenes colaboradores */
    .page-about .about-section--collaborators .integrante .imgwrap,
    .page-about .about-section--collaborators .integrante .imgwrap img {
        width: 150px;
        height: 150px;
    }

    /* 🔴 NUEVO: centrar items */
    .team-grid,
    .team-grid--team,
    .team-grid--collaborators {
        justify-content: center;
    }

    .equipo-item-column {
        display: flex;
        justify-content: center;
    }

    /* -------- detalle integrante -------- */

    .team-member-layout {
        display: block;
    }

    .team-member-card,
    .team-member-sidebar-card--directory {
        min-height: auto;
    }

    .team-member-card {
        padding: 40px 32px;
    }

    .team-member-sidebar {
        margin-top: 28px;
    }

    .team-member-card__heading,
    .team-member-card__heading.section-heading--left,
    .section-heading--left {
        text-align: center;
    }

    .team-member-card__heading .section-heading__title {
        font-size: 42px;
    }

    .team-member-card__top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .team-member-card__media img {
        width: 240px;
        height: 240px;
    }

    .team-member-card__summary {
        width: 100%;
        text-align: left;
    }

    .team-member-card__links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px 28px;
    }

    .team-member-link-group {
        flex: 1 1 180px;
        max-width: 260px;
        text-align: center;
    }

    .team-member-side-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    /* Sidebar detalle: imágenes más grandes en tablet */
    .team-member-side-item__image,
    .team-member-side-item__image img {
        width: 150px;
        height: 150px;
    }

    .team-member-side-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: center;
        gap: 34px 24px;
    }

    .team-member-side-item {
        align-items: center;
        justify-content: center;
    }

    .team-member-side-item__name {
        max-width: 150px;
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
    }
    /* EQUIPO - tablet en 3 columnas */
    .about-section--team .team-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 34px 20px;
        justify-items: center;
    }

    .about-section--team .equipo-item-column {
        width: auto;
        display: flex;
        justify-content: center;
    }

    .page-about .about-section--team .integrante {
        width: 180px;
    }

    .page-about .about-section--team .integrante .imgwrap,
    .page-about .about-section--team .integrante .imgwrap img {
        width: 140px;
        height: 140px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .about-hero {
        padding: 40px 40px 20px;
    }

    .about-section > .container {
        padding: 20px;
    }

    .about-card {
        padding: 32px 22px;
    }

    .about-section--collaborators .team-grid--collaborators {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
        max-width: 360px;
    }

    .page-about .about-section--team .integrante,
    .page-about .about-section--collaborators .integrante {
        width: 140px;
    }

    .page-about .about-section--team .integrante .imgwrap,
    .page-about .about-section--team .integrante .imgwrap img {
        width: 120px;
        height: 120px;
    }

    .page-about .about-section--collaborators .integrante .imgwrap,
    .page-about .about-section--collaborators .integrante .imgwrap img {
        width: 105px;
        height: 105px;
    }

    .page-about .integrante h4 {
        font-size: 12px;
        line-height: 1.25;
    }

    .about-video--inline iframe,
    .about-video--inline video {
        height: 240px;
    }

    .team-member-card {
        padding: 28px 24px;
    }

    .team-member-card__heading .section-heading__title {
        font-size: 34px;
    }

    .team-member-card__media img {
        width: 220px;
        height: 220px;
    }

    .team-member-card__summary,
    .team-member-card__content--full,
    .team-member-card__editorial,
    .team-member-link-group {
        text-align: center;
    }

    /* SIDEBAR CARD */
    .team-member-sidebar-card--directory {
        padding: 32px 22px;
    }

    /* 🔴 EQUIPO → 1 columna centrada */
    .team-member-sideblock:first-child .team-member-side-list {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
    }

    .team-member-sideblock:first-child .team-member-side-item__image,
    .team-member-sideblock:first-child .team-member-side-item__image img {
        width: 170px;
        height: 170px;
    }

    /* 🔴 COLABORAN → 2 columnas */
    .team-member-sideblock:last-child .team-member-side-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        gap: 26px 14px;
    }

    .team-member-sideblock:last-child .team-member-side-item__image,
    .team-member-sideblock:last-child .team-member-side-item__image img {
        width: 130px;
        height: 130px;
    }

    /* 🔴 ITEM */
    .team-member-side-item {
        align-items: center;
        justify-content: center;
    }

    .team-member-side-item__name {
        max-width: 140px;
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
    }

    .section-heading__title,
    .section-heading__eyebrow,
    .about-download__text,
    .about-card--download .section-heading {
        text-align: center;
    }

    .about-download__actions {
        justify-content: center;
    }

    body.page article.type-page {
        margin: 14px 0;
    }
    /* ÁMBITOS - 1 columna solo en mobile */
    .about-ambits-content {
        column-count: 1;
        column-gap: 0;
    }
    /* Centrar tags en mobile */
    .about-ambits-tags .ambitos-list {
        justify-content: center;
        text-align: center;
    }

    .about-ambits-tags .ambito-item {
        text-align: center;
    }
    .about-section--ambits .about-ambits-content {
        column-count: 1;
        column-gap: 0;
        max-width: 100%;
    }

    .about-section--ambits .about-ambits-list li {
        padding-left: 22px;
        margin-bottom: 18px;
    }

    .about-section--ambits .about-ambits-tags .ambitos-list {
        justify-content: center;
        text-align: center;
    }

    .about-section--ambits .about-ambits-tags .ambito-item {
        text-align: center;
    }
    /* EQUIPO - mobile en 1 columna */
    .about-section--team .team-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-section--team .equipo-item-column {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    /* Imagen más grande */
    .page-about .about-section--team .integrante .imgwrap,
    .page-about .about-section--team .integrante .imgwrap img {
        width: 220px;
        height: 220px;
    }

    /* Ajustar contenedor al nuevo tamaño */
    .page-about .about-section--team .integrante {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}