/*
 * Single de Insights / Noticias (single.php + template-parts/content/article-section.php).
 * Medidas tomadas de los PSD 05-Vinson-INSIGHTS-Single(-Estudios) y 08-Vinson-NOTICIAS-Single (1857px).
 * Todo va acotado a .article-page para no afectar otros templates que usan el armador.
 */

/* Variables tambien en .content-builder: el armador se usa ademas en Casos de exito. */
.article-page,
.content-builder {
    --a-accent: var(--color-blue);
    --a-accent-text: #b9d9ff;
    --a-soft: #e1eeff;
    --a-panel-soft: #eaf2ff;
    --a-cyan: #00f4eb; /* Etiqueta del panel "La hipotesis central" (PSD 06-Casos-Single). */
}

.article-page {
    background: var(--color-surface);
    color: var(--color-text);
}

:where(.article-page) p {
    margin: 0;
}

/* ------------------------------------------------------------------ Retorno + hero */
.article-top {
    padding-top: 41px;
}

.article-back {
    display: inline-flex;
    height: 30px;
    align-items: center;
    gap: 9px;
    padding: 0 15px 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease;
}

.article-back:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.article-hero {
    margin-top: 45px;
}

.article-hero__media {
    height: 550px;
    overflow: hidden;
    background: var(--color-ink);
}

.article-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero__card {
    position: relative;
    width: 650px;
    max-width: 100%;
    min-height: 450px;
    margin-top: -310px;
    padding: 46px 40px 40px;
    background: var(--color-paper);
}

.article-eyebrow {
    margin: 0 0 15px;
    color: var(--color-blue);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
}

.article-hero__title {
    max-width: 440px;
    margin: 0 0 37px;
    color: var(--color-text);
    font-size: 54px;
    font-weight: 300;
    line-height: 60px;
    letter-spacing: -0.005em;
}

.article-hero__title em {
    color: var(--color-blue);
    font-family: var(--font-serif);
    font-size: 1.2em;
    font-style: italic;
    font-weight: 400;
    line-height: 0;
    letter-spacing: -0.02em;
}

.article-hero__lead {
    max-width: 570px;
    color: var(--color-text);
    font-size: 25px;
    font-weight: 300;
    line-height: 34px;
    letter-spacing: -0.01em;
}

.article-doc-button {
    display: inline-flex;
    height: 50px;
    align-items: center;
    gap: 10px;
    padding: 0 23px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-paper);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: border-color 180ms ease;
}

.article-sidebar .article-doc-button {
    padding: 0 21px;
}

.article-doc-button svg {
    flex: none;
    color: var(--color-blue);
}

.article-doc-button:hover {
    border-color: var(--color-blue);
}

.article-hero__card .article-doc-button {
    margin-top: 45px;
}

/* ------------------------------------------------------------------ Cuerpo */
.article-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 976px);
    justify-content: space-between;
    align-items: start;
    padding-block: 96px 150px;
}

.article-sidebar__group {
    margin-bottom: 55px;
}

.article-sidebar__label {
    margin: 0 0 16px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.article-share {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-share a {
    display: block;
    width: 25px;
    height: 25px;
    color: #000;
    transition: color 180ms ease;
}

.article-share a:hover {
    color: var(--color-blue);
}

.article-share svg {
    display: block;
}

.article-resource .article-sidebar__label {
    margin-bottom: 19px;
}

.article-resource .article-eyebrow {
    margin-bottom: 8px;
}

.article-resource__title {
    margin: 0 0 22px !important;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
}

.article-sidebar__divider {
    height: 1px;
    margin: 0 0 48px;
    border: 0;
    background: var(--color-border);
}

.article-sidebar__group.article-resource {
    margin-bottom: 50px;
}

.article-team .article-eyebrow {
    margin-bottom: 11px;
}

.article-team__title {
    margin: 0 0 21px !important;
    color: var(--color-text);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 20px;
}

.article-team__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-team__card {
    min-height: 195px;
    padding: 30px 19px 24px;
    background: var(--color-paper);
}

.article-team__photo {
    width: 62px;
    height: 62px;
    margin-bottom: 23px;
    border-radius: 50%;
    object-fit: cover;
}

.article-team__name {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

.article-team__name a:hover {
    color: var(--color-blue);
}

.article-team__role {
    margin-top: 2px !important;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 17px;
}

.article-team__email {
    display: inline-block;
    margin-top: 8px;
    color: var(--color-blue);
    font-size: 13px;
    line-height: 17px;
    overflow-wrap: anywhere;
}

.article-team__email:hover {
    text-decoration: underline;
}

/* Intro de la columna */
.article-main {
    min-width: 0;
    padding-top: 9px;
}

.article-hero__card .article-eyebrow {
    margin-bottom: 17px;
}

.article-intro__kicker {
    margin-bottom: 13px !important;
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.article-intro__title {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 30px;
    font-weight: 500;
    line-height: 37px;
    letter-spacing: -0.01em;
}

.article-intro__title.has-strong {
    font-weight: 400;
}

.article-intro__title strong {
    font-weight: 600;
}

.article-intro__copy,
.a-text,
.article-content {
    letter-spacing: -0.005em;
}

.article-intro__copy {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19.5px;
}

.article-intro + .article-builder {
    margin-top: 37px;
}

.article-intro + .article-content {
    margin-top: 18px;
}

/* Contenido clasico (editor de bloques) */
.article-content {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19.5px;
}

.article-content > * {
    margin: 0 0 19px;
}

.article-content > *:last-child {
    margin-bottom: 0;
}

.article-content strong,
.article-content b {
    color: var(--color-text);
    font-weight: 500;
}

.article-content a {
    color: var(--color-blue);
    text-decoration: underline;
}

.article-content h2,
.article-content h3 {
    margin: 40px 0 20px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
}

.article-content ul,
.a-text ul {
    padding: 0;
    list-style: none;
}

.article-content ul {
    margin-top: 22px;
}

.article-content li,
.a-text li {
    position: relative;
    padding-left: 15px;
    color: var(--color-text);
    font-weight: 500;
    line-height: 30px;
}

.article-content li::before,
.a-text li::before {
    position: absolute;
    top: 13px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-blue);
    content: "";
}

.article-content blockquote {
    margin: 30px 0;
    padding: 15px 18px;
    border-left: 4px solid var(--color-blue);
    background: var(--color-paper);
    color: var(--color-text);
    font-size: 18px;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ Formulario Estudios */
.estudio-lead {
    margin-top: 44px;
    padding: 40px;
    background: var(--color-ink);
    color: var(--color-paper);
    scroll-margin-top: 110px;
}

.estudio-lead__title {
    margin: 0 0 16px;
    color: var(--color-paper);
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.estudio-lead__copy {
    max-width: 900px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19.5px;
}

.estudio-lead__copy strong {
    color: var(--color-paper);
    font-weight: 600;
}

.estudio-lead__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.estudio-lead__form {
    position: relative;
    display: block;
    margin-top: 32px;
}

.estudio-lead__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
}

.estudio-lead__row {
    display: grid;
    gap: 9px;
}

.estudio-lead__row label {
    color: var(--color-paper);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.estudio-lead__row input {
    width: 100%;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #fbfbfb;
    color: var(--color-text);
    font-size: 14px;
}

.estudio-lead__row input::placeholder {
    color: #c3c3c3;
    opacity: 1;
}

.estudio-lead__row input:focus {
    border-color: var(--color-blue);
    outline: 2px solid color-mix(in srgb, var(--color-blue) 45%, transparent);
    outline-offset: 1px;
}

.estudio-lead__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
}

.estudio-lead__terms {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c3c3c3;
    font-size: 12px;
    line-height: 1.3;
}

.estudio-lead__terms input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #9f9f9f;
    border-radius: 3px;
    background: var(--color-paper);
    appearance: none;
    cursor: pointer;
}

.estudio-lead__terms input:checked {
    border-color: var(--color-blue);
    background: var(--color-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.estudio-lead__terms input:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

.estudio-lead__terms a {
    color: var(--color-blue);
}

.estudio-lead__terms a:hover {
    text-decoration: underline;
}

.estudio-lead__footer .button {
    flex: none;
    min-width: 218px;
    gap: 10px;
    padding-inline: 14px;
    font-size: 17px;
}

.estudio-lead__footer .button > .icon-arrow {
    font-size: 12px;
}

.estudio-lead__status {
    margin-top: 16px !important;
    color: var(--color-paper);
    font-size: 14px;
}

.estudio-lead__status:empty {
    display: none;
}

.estudio-lead__form.has-error .estudio-lead__status {
    color: #ff9d9d;
}

.estudio-lead__form.is-sending {
    opacity: 0.7;
}

/* ------------------------------------------------------------------ Secciones del armador */
.article-builder > .builder-section {
    padding-block: 40px;
}

.article-builder > .builder-section .site-shell,
.article-builder > .builder-section.builder-image {
    width: 100%;
}

.a-divider {
    height: 1px;
    margin: 80px 0;
    border: 0;
    background: var(--color-border);
}

.a-divider--nav {
    margin-bottom: 32px;
}

.a-section + .a-section,
.a-section + .a-tabs {
    margin-top: 60px;
}

.a-section:first-child,
.a-tabs + .a-section,
.a-divider + .a-section {
    margin-top: 0 !important;
}

.a-section {
    display: flow-root;
}

.a-section--dark {
    padding: 40px 30px 30px;
    background: var(--color-ink);
    color: var(--color-paper);
}

.a-section--dark:has(> .a-cards--overlap) {
    margin-bottom: 110px;
    padding: 30px 40px 0;
}

.a-section--soft {
    padding: 50px 30px 40px;
    background: var(--a-panel-soft);
}

/* Pestanas */
.a-tabs {
    margin-bottom: 52px;
    overflow-x: auto;
    scrollbar-width: none;
}

.a-tabs::-webkit-scrollbar {
    display: none;
}

.a-tabs--dark {
    background: var(--color-ink);
}

.a-tabs--blue {
    background: var(--color-blue);
}

.a-tabs ul {
    display: flex;
    min-width: max-content;
    justify-content: space-around;
    margin: 0;
    padding: 0 6px;
    list-style: none;
}

.a-tabs a {
    position: relative;
    display: flex;
    height: 65px;
    align-items: center;
    padding: 0 26px;
    color: #8f9294;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 180ms ease;
}

.a-tabs--blue a {
    color: #b9cdea;
}

.a-tabs a:hover,
.a-tabs a.is-active {
    color: var(--color-paper);
}

.a-tabs a.is-active {
    font-size: 14px;
    font-weight: 600;
}

.a-tabs a.is-active::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 3px;
    background: var(--a-accent);
    content: "";
}

.a-tabs + .a-section:not(.a-section--dark) {
    padding-top: 0;
}

.a-section[id] {
    scroll-margin-top: 110px;
}

/* Pildora / etiqueta */
.a-pill {
    display: inline-flex;
    height: 30px;
    align-items: center;
    margin: 0 0 29px !important;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.a-pill--solid {
    background: var(--color-blue);
    color: var(--color-paper);
}

.a-pill--soft {
    background: var(--a-soft);
    color: var(--color-blue);
    font-weight: 600;
}

.a-pill--plain {
    height: auto;
    margin-bottom: 36px !important;
    padding: 0;
    color: var(--color-blue);
    font-size: 10px;
    font-weight: 700;
}

.a-pill--accent {
    background: var(--a-accent);
    color: var(--color-paper);
    font-weight: 600;
}

.a-section--dark .a-pill--plain {
    color: var(--a-accent-text);
}

.a-title {
    margin: 0 0 22px;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.005em;
}

.a-title strong {
    font-weight: 600;
}

.a-section--dark .a-title {
    color: var(--color-paper);
}

.a-text {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19.5px;
}

.a-text > * {
    margin: 0 0 19px !important;
}

.a-text > *:last-child {
    margin-bottom: 0 !important;
}

.a-text strong {
    color: var(--color-text);
    font-weight: 500;
}

.a-text sup {
    font-size: 0.6em;
    line-height: 0;
}

.a-text a {
    color: var(--color-blue);
    text-decoration: underline;
}

.a-section--dark .a-text {
    color: #c9d1d8;
}

.a-section--dark .a-text strong {
    color: var(--color-paper);
}

/* Listas del texto enriquecido sobre fondo oscuro (la base usa texto negro y vineta azul). */
.a-section--dark .a-text li {
    color: var(--color-paper);
}

.a-section--dark .a-text li::before {
    background: var(--a-accent-text);
}

.a-section--dark .a-intro {
    color: var(--color-muted);
}

.a-section--dark .a-title + .a-intro,
.a-section--soft .a-intro {
    color: var(--color-muted);
}

.a-block {
    margin-top: 30px;
}

.a-intro + .a-block,
.a-title + .a-block {
    margin-top: 30px;
}

.a-subheading {
    margin: 0 0 20px;
    color: var(--color-blue);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.a-section > .a-subheading:first-child {
    margin-top: 0;
}

/* Subtitulo despues de otro bloque: separa del contenido anterior. */
.a-block + .a-block.a-subheading {
    margin-top: 45px;
}

.a-note {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.3;
}

.a-note sup {
    font-size: 0.7em;
}

.a-block.a-note {
    margin-top: 16px;
}

/* Destacados */
.a-callout {
    padding: 22px 30px;
    font-size: 16.5px;
    line-height: 19.5px;
}

.a-callout p {
    margin: 0 0 12px;
}

.a-callout p:last-child {
    margin-bottom: 0;
}

.a-callout__label {
    margin-bottom: 20px !important;
    color: var(--color-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.a-callout--definition {
    padding: 30px 30px 32px 21px;
    border-left: 4px solid var(--color-blue);
    background: var(--color-paper);
    color: var(--color-text);
    font-size: 16px;
    line-height: 19.5px;
}

.a-callout--definition strong {
    font-weight: 600;
}

.a-callout--quote,
.a-callout--highlight,
.a-callout--quote_inset {
    border-left: 4px solid var(--a-accent);
    background: var(--color-ink);
    color: var(--color-paper);
    font-weight: 500;
}

.a-callout--quote,
.a-callout--quote_inset {
    font-style: italic;
}

.a-callout--highlight strong {
    color: var(--a-accent);
    font-weight: 600;
}

.a-section--dark .a-callout--highlight strong {
    color: var(--a-accent-text);
}

.a-callout--quote_inset {
    padding: 22px 20px 22px 26px;
    background: #323940;
}

.a-callout--quote_light {
    width: min(715px, 100%);
    padding: 18px 18px 17px;
    border-left: 4px solid var(--color-blue);
    background: var(--color-paper);
    color: var(--color-text);
    font-size: 16px;
    font-style: italic;
    line-height: 19.5px;
}

/* Panel oscuro con etiqueta cian ("La hipotesis central", PSD 06-Casos-Single). */
.a-callout--panel {
    padding: 34px 30px 36px 20px;
    background: var(--color-ink);
    color: var(--color-paper);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

.a-callout--panel .a-callout__label {
    margin-bottom: 6px !important;
    color: var(--a-cyan);
    font-size: 14px;
    line-height: 1.2;
}

.a-callout--panel strong {
    font-weight: 700;
}

.a-section--dark .a-callout--panel {
    background: var(--color-ink-soft);
}

/* Cita con autor: figure > blockquote + figcaption. */
figure.a-callout {
    margin-inline: 0;
    margin-bottom: 0;
}

.a-callout--cited blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}

.a-callout__cite {
    margin-top: 14px;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
}

.a-callout__cite cite {
    font-style: normal;
    font-weight: 600;
}

.a-callout__role {
    opacity: 0.72;
}

/* Tarjetas */
.a-cards {
    display: grid;
    grid-template-columns: repeat(var(--a-columns, 3), minmax(0, 1fr));
    gap: 20px;
}

.a-cards--overlap {
    margin: 30px -20px -62px;
    margin-top: 18px !important;
    gap: 15px;
}

.a-card {
    min-width: 0;
    padding: 28px 30px 30px;
    background: var(--color-paper);
}

.a-card__tag {
    display: inline-flex;
    height: 24px;
    align-items: center;
    margin-bottom: 18px !important;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.a-card__tag--soft {
    background: var(--a-soft);
    color: var(--color-blue);
}

.a-card__tag--solid {
    background: var(--color-blue);
    color: var(--color-paper);
}

.a-card__number {
    margin-bottom: 18px !important;
    color: var(--color-blue);
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}

.a-card__kicker {
    margin-bottom: 10px !important;
    color: var(--color-blue);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.a-card__title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
}

.a-card__index {
    flex: none;
    color: var(--color-blue);
    font-size: 12px;
    font-weight: 600;
}

.a-card__text {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 16.7px;
    letter-spacing: -0.005em;
}

.a-card__text p,
.a-card__text ul {
    margin: 0 0 10px;
}

.a-card__text > *:last-child {
    margin-bottom: 0;
}

.a-card__text strong {
    color: var(--color-text);
    font-weight: 600;
}

.a-cards--dark .a-card {
    background: var(--color-ink);
}

.a-cards--dark .a-card__title {
    color: var(--color-paper);
}

.a-cards--dark .a-card__index,
.a-cards--dark .a-card__number {
    color: var(--a-accent-text);
}

.a-cards--dark .a-card__title {
    font-weight: 600;
}

.a-cards--dark .a-card__text {
    color: var(--color-muted);
}

.a-cards--dark.a-cards--num-inline .a-card {
    min-height: 124px;
    padding: 26px 18px 26px 24px;
}

.a-cards--dark.a-cards--num-inline .a-card__title {
    margin-bottom: 14px;
}

.a-cards--num-big.a-cards--dark .a-card {
    min-height: 245px;
    padding: 24px 12px 26px 21px;
}

.a-cards--num-big .a-card__number {
    margin-bottom: 22px !important;
    font-size: 50px;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.a-cards--num-big.a-cards--dark .a-card__title {
    margin-bottom: 14px;
}

.a-cards--blue .a-card {
    min-height: 285px;
    padding: 26px 21px 30px;
    background: var(--color-blue);
}

.a-cards--blue .a-card__kicker {
    color: var(--a-accent-text);
}

.a-cards--blue .a-card__title {
    margin-bottom: 20px;
    color: var(--color-paper);
    font-weight: 600;
}

.a-cards--blue .a-card__text {
    color: #c2d0e9;
    font-size: 14px;
    line-height: 16px;
}

.a-cards--blue .a-card__text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.a-cards--blue .a-card__text li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 10px;
    color: inherit;
    font-weight: 400;
    line-height: 16px;
}

.a-card__text ul {
    padding: 0;
    list-style: none;
}

.a-card__text li {
    position: relative;
    padding-left: 10px;
}

.a-card__text li::before {
    position: absolute;
    left: 0;
    border-radius: 50%;
    content: "";
}

/* Vineta por defecto (las tarjetas azules la redefinen en blanco). */
.a-card__text li::before {
    top: 6px;
    width: 4px;
    height: 4px;
    background: var(--color-blue);
}

.a-cards--dark .a-card__text li::before {
    background: var(--a-accent-text);
}

.a-cards--blue .a-card__text li::before {
    top: 6px;
    width: 4px;
    height: 4px;
    background: var(--color-paper);
}

.a-cards--num-badge {
    gap: 5px;
}

.a-cards--num-badge .a-card {
    min-height: 200px;
    padding: 30px 21px 30px;
}

.a-cards--num-badge .a-card__title {
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 25px;
}

.a-cards--num-badge .a-card__text {
    line-height: 20px;
}

.a-cards--num-badge .a-card__index {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 6px;
    background: var(--color-blue);
    color: var(--color-paper);
    font-size: 15px;
}

.a-cards--num-inline.a-cards--white .a-card {
    min-height: 195px;
    padding: 28px 12px 28px 24px;
}

.a-cards--num-inline.a-cards--white .a-card__title {
    margin-bottom: 13px;
}

.a-cards--num-none.a-cards--white .a-card {
    padding: 28px 24px 30px;
}

.a-cards--num-none .a-card__kicker {
    margin-bottom: 20px !important;
}

.a-cards--num-none.a-cards--white .a-card__title {
    margin-bottom: 4px;
    font-weight: 600;
}

.a-cards--bordered .a-card {
    border-top: 3px solid var(--color-blue);
}

.a-cards.a-cards--overlap .a-card {
    min-height: 175px;
    padding: 20px 16px 22px 30px;
}

.a-cards.a-cards--overlap .a-card__title {
    margin-bottom: 13px;
    font-weight: 500;
}

/* No es / Si es */
.a-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 43px;
    padding: 10px 0 0;
}

.a-compare__card {
    padding: 30px 27px 34px;
    border-top: 5px solid var(--color-blue);
    background: var(--color-paper);
}

.a-compare__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 26px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.a-compare__title svg {
    color: var(--color-blue);
}

.a-compare ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.a-compare li {
    padding: 22px 0 21px;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 14px;
    line-height: 17px;
}

.a-compare li:last-child {
    border-bottom: 1px solid var(--color-line);
}

.a-compare li strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Tabla */
.a-table {
    margin-top: 34px;
    font-size: 14px;
    line-height: 17px;
}

.a-table__row {
    display: grid;
    grid-template-columns: 18.5% 33% 19.5% 29%;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #2e3d49;
}

.a-table__row > span {
    padding: 27px 20px 27px 0;
    color: #b3bac0;
}

.a-table__row--head {
    background: #233d58;
    border-bottom-color: #3b5775;
}

.a-table__row--head > span {
    padding-block: 24px;
    color: #c7d2dc;
    font-size: 14px;
}

.a-table__name strong {
    display: block;
    color: var(--color-paper);
    font-weight: 600;
}

.a-table__name small {
    display: block;
    color: #c7d2dc;
    font-size: 10px;
}

.a-table__value {
    font-weight: 600;
}

.a-table__row > .a-table__value--cyan { color: var(--a-accent-text); }
.a-table__row > .a-table__value--light { color: #bcd4f6; }
.a-table__row > .a-table__value--orange { color: #ff8b17; }

/* Cifras */
.a-stats {
    display: grid;
    grid-template-columns: repeat(var(--a-columns, 2), minmax(0, 1fr));
    gap: 20px;
}

.a-stats--dark .a-stat {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-ink);
    text-align: center;
}

.a-stats--dark .a-stat__value {
    color: var(--a-accent-text);
    font-size: 72px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
}

.a-stats--dark .a-stat__value sup {
    top: -0.2em;
    margin-right: 2px;
    font-size: 0.45em;
    vertical-align: top;
}

.a-stats--dark .a-stat__label {
    margin-top: 12px !important;
    color: var(--color-paper);
    font-size: 16px;
    font-weight: 600;
}

.a-stats--white {
    gap: 16px;
}

.a-stats--white .a-stat {
    min-height: 196px;
    padding: 24px 40px 24px 20px;
    border-top: 3px solid var(--color-blue);
    background: var(--color-paper);
}

.a-stats--white .a-stat__value {
    margin-bottom: 24px !important;
    color: var(--color-blue);
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
}

.a-stats--white .a-stat__text {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 16.5px;
}

/* La tarjeta blanca no hereda el color claro de .a-section--dark. */
.a-stats--white .a-stat__label {
    color: var(--color-text);
}

/* Titulo y fuente del grupo de cifras: ocupan todo el ancho de la grilla. */
.a-stats__title,
.a-stats__source {
    grid-column: 1 / -1;
}

/* 3 columnas con fila final incompleta (ej. 5 cifras): la ultima fila se centra.
 * Grilla de 6 pistas con cifras de 2; la primera de una fila de 2 parte en la pista 2
 * y una cifra sola, en la 3. */
@media (min-width: 768px) {
    .a-stats[style*="--a-columns:3"] {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .a-stats[style*="--a-columns:3"] > .a-stat {
        grid-column: span 2;
    }

    .a-stats[style*="--a-columns:3"] > .a-stat:nth-child(3n + 1 of .a-stat):nth-last-child(2 of .a-stat) {
        grid-column: 2 / span 2;
    }

    .a-stats[style*="--a-columns:3"] > .a-stat:nth-child(3n + 1 of .a-stat):nth-last-child(1 of .a-stat) {
        grid-column: 3 / span 2;
    }
}

.a-stats__title {
    margin: 0;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.a-stats__source,
.a-table-free__source {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.35;
    white-space: pre-line;
}

.a-section--dark .a-stats__title {
    color: var(--color-paper);
}

/* KPI: tarjetas blancas con numero azul grande ("+22 Semanas", PSD 06-Casos-Single). */
.a-stats--kpi .a-stat {
    display: flex;
    min-height: 165px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 28px 30px;
    background: var(--color-paper);
}

.a-stats--kpi .a-stat__value {
    color: var(--color-blue);
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.a-stats--kpi .a-stat__label {
    margin-top: 4px !important;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.a-stats--kpi .a-stat__text {
    margin-top: 8px !important;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 16.5px;
}

/* Pasos */
.a-steps {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.a-step {
    padding: 18px 20px 20px 25px;
    border-left: 4px solid var(--color-blue);
    background: var(--color-paper);
}

.a-step h3 {
    margin: 0 0 6px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.a-step p {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 20px;
}

.a-step.is-highlight {
    border-left-color: var(--color-ink);
    background: var(--a-soft);
}

.a-step.is-highlight h3 {
    color: var(--color-blue);
}

/* Checklist */
.a-checklist ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
}

.a-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 0 18px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19.5px;
}

.a-checklist li svg {
    flex: none;
    color: var(--color-blue);
}

.a-checklist li strong {
    color: var(--color-text);
    font-weight: 600;
}

.a-checklist__note {
    margin-top: 25px !important;
    color: var(--color-muted);
    font-size: 13px;
    font-style: italic;
    line-height: 15px;
}

.a-checklist__title {
    margin: 0 0 16px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.a-section--dark .a-checklist__title {
    color: var(--color-paper);
}

/* Panel azul ("Resultados al cierre de la Etapa 1", PSD 06-Casos-Single). */
.a-checklist--panel {
    padding: 30px 30px 38px 20px;
    background: var(--color-blue);
    color: var(--color-paper);
}

.a-checklist--panel .a-checklist__title {
    margin-bottom: 18px;
    color: var(--color-paper);
}

.a-checklist--panel ul {
    margin-left: 10px;
    border-top-color: rgb(255 255 255 / 28%);
}

.a-checklist--panel li {
    padding: 14px 0 15px;
    border-bottom-color: rgb(255 255 255 / 28%);
    color: var(--color-paper);
    font-size: 15px;
    font-weight: 600;
}

.a-checklist--panel li svg,
.a-checklist--panel li strong {
    color: var(--color-paper);
}

.a-checklist--panel li strong {
    font-weight: 700;
}

.a-checklist--panel .a-checklist__note {
    color: rgb(255 255 255 / 80%);
}

/* Etiquetas */
.a-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.a-chips li {
    display: inline-flex;
    height: 30px;
    align-items: center;
    padding: 0 19px;
    border: 1px solid var(--color-blue);
    border-radius: 5px;
    background: var(--a-soft);
    color: var(--color-blue);
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.a-block.a-chips {
    margin-top: 20px;
}

/* Logos */
.a-logos ul {
    display: grid;
    grid-template-columns: repeat(7, 130px);
    justify-content: space-between;
    gap: 10px 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.a-logos li {
    height: 72px;
    background: var(--color-paper);
}

.a-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.a-block.a-logos {
    margin-top: 44px;
}

.a-logos + .a-cards {
    margin-top: 50px;
}

/* Figura */
.a-figure {
    margin-inline: 0;
    text-align: center;
}

.a-figure img {
    margin-inline: auto;
}

.a-figure figcaption {
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 12px;
}

.a-figure__label {
    color: var(--color-text);
    font-weight: 600;
}

.a-figure__source {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    white-space: pre-line;
}

.a-section--dark .a-figure__label {
    color: var(--color-paper);
}

.a-figure + .a-callout {
    margin-top: 30px;
}

/* FAQ */
.a-faq {
    display: grid;
    gap: 20px;
}

.a-faq details {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #f7f7f7;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.a-faq details[open] {
    border-color: var(--color-blue);
    background: var(--color-paper);
}

.a-faq summary {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 18px 12px 28px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
}

.a-faq summary::-webkit-details-marker {
    display: none;
}

.a-faq summary svg {
    flex: none;
    transition: transform 180ms ease;
}

.a-faq details[open] summary {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 8px;
    color: var(--color-blue);
}

.a-faq details[open] summary svg {
    transform: rotate(180deg);
}

.a-faq__answer {
    max-width: 850px;
    padding: 0 60px 34px 28px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 19.5px;
}

.a-faq__answer p {
    margin: 0 0 12px;
}

.a-faq__answer p:last-child {
    margin-bottom: 0;
}

/* Casos */
.a-cases__viewport,
.article-related__viewport {
    overflow: hidden;
}

.a-cases__track,
.article-related__track {
    display: grid;
    grid-auto-columns: calc((100% - var(--gap)) / var(--visible));
    grid-auto-flow: column;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.a-cases__track::-webkit-scrollbar,
.article-related__track::-webkit-scrollbar {
    display: none;
}

.a-cases__track > *,
.article-related__track > * {
    scroll-snap-align: start;
}

.a-cases__track {
    --gap: 20px;
    --visible: 2;
    grid-auto-columns: calc((100% - var(--gap)) / 2);
}

.a-case {
    padding: 25px 20px 30px;
    border-top: 5px solid var(--color-ink);
    background: var(--color-paper);
}

.a-case .a-card__tag {
    margin-bottom: 20px !important;
}

.a-case__title {
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
}

.a-case__text {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 15px;
    line-height: 20px;
}

.a-case__label {
    margin: 20px 0 14px !important;
    color: var(--color-blue);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.a-case__results {
    margin: 0;
    padding: 0;
    list-style: none;
}

.a-case__results li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 10px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 20px;
}

.a-case__results li::before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-blue);
    content: "";
}

/* Flechas de carrusel */
.article-carousel-nav {
    display: flex;
    gap: 18px;
    margin-top: 22px;
}

.article-carousel-nav__button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-blue);
    cursor: pointer;
}

.article-carousel-nav__button:disabled {
    color: var(--color-border);
    cursor: default;
}

.article-carousel-nav[hidden] {
    display: none;
}

/* Bloques nuevos: datos */

/* Tabla libre (template-parts/content/blocks/table_free.php). Clara por defecto;
   en .a-section--dark usa la gama de .a-table (tabla PMO, PSD 08-Noticias-Single). */
.a-table-free__title {
    margin: 0 0 16px;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.a-table-free__scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.a-table-free__scroll:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

.a-table-free__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-paper);
    font-size: 14px;
    line-height: 18px;
    text-align: left;
}

.a-table-free__table th,
.a-table-free__table td {
    min-width: 110px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
    font-weight: 400;
    vertical-align: top;
}

.a-table-free__table thead th {
    padding-block: 16px;
    border-bottom: 0;
    background: var(--a-soft);
    color: var(--color-blue);
    font-weight: 600;
}

.a-table-free__table tbody tr:last-child > * {
    border-bottom: 0;
}

.a-table-free__table strong {
    color: var(--color-text);
    font-weight: 600;
}

.a-table-free__table a {
    color: var(--color-blue);
    text-decoration: underline;
}

.a-table-free--first tbody th {
    color: var(--color-text);
    font-weight: 600;
}

.a-table-free__table tr.is-total > * {
    border-top: 2px solid var(--color-blue);
    background: var(--a-panel-soft);
    color: var(--color-text);
    font-weight: 600;
}

.a-table-free__source {
    margin-top: 12px !important;
}

.a-section--dark .a-table-free__title {
    color: var(--color-paper);
}

.a-section--dark .a-table-free__table {
    background: transparent;
}

.a-section--dark .a-table-free__table th,
.a-section--dark .a-table-free__table td {
    border-bottom-color: #2e3d49;
    color: #b3bac0;
}

.a-section--dark .a-table-free__table thead th {
    background: #233d58;
    color: #c7d2dc;
    font-weight: 500;
}

.a-section--dark .a-table-free__table strong,
.a-section--dark .a-table-free--first tbody th {
    color: var(--color-paper);
}

.a-section--dark .a-table-free__table a {
    color: var(--a-accent-text);
}

.a-section--dark .a-table-free__table tr.is-total > * {
    border-top-color: #3b5775;
    background: rgb(255 255 255 / 5%);
    color: var(--color-paper);
}

/* Filas con etiqueta ("Diagnostico", PSD 06-Casos-Single). */
.a-label-rows,
.a-results-rows {
    display: grid;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.a-label-rows {
    gap: 3px;
}

.a-label-rows__item {
    padding: 22px 30px 20px 20px;
    background: var(--color-paper);
}

.a-label-rows__label {
    margin-bottom: 4px !important;
    color: var(--color-muted);
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.a-label-rows__text {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.a-label-rows__text strong {
    font-weight: 700;
}

/* Filas de resultados ("Impacto y resultados", PSD 06-Casos-Single). */
.a-results-rows {
    gap: 2px;
}

.a-results-rows__item {
    padding: 18px 30px 18px 20px;
    background: var(--color-paper);
    color: var(--color-muted);
    font-size: 16px;
    line-height: 20px;
}

.a-results-rows__item strong {
    color: var(--color-text);
    font-weight: 600;
}

.a-section--dark .a-label-rows__item,
.a-section--dark .a-results-rows__item {
    background: var(--color-ink-soft);
}

.a-section--dark .a-label-rows__label {
    color: #9fb0bf;
}

.a-section--dark .a-label-rows__text,
.a-section--dark .a-results-rows__item strong {
    color: var(--color-paper);
}

.a-section--dark .a-results-rows__item {
    color: #b3bac0;
}

@media (max-width: 767px) {
    .a-stats.a-stats--kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .a-stats--kpi .a-stat {
        min-height: 128px;
        padding: 20px 18px 22px;
    }

    /* Una sola cifra: ocupa la fila completa en vez de media columna. */
    .a-stats--kpi .a-stat:only-child {
        grid-column: 1 / -1;
    }

    .a-stats--kpi .a-stat__value {
        font-size: 44px;
    }

    .a-callout--panel {
        padding: 26px 20px 28px;
        font-size: 17px;
        line-height: 23px;
    }

    .a-checklist--panel {
        padding: 26px 20px 30px;
    }

    .a-checklist--panel ul {
        margin-left: 0;
    }

    .a-table-free__table th,
    .a-table-free__table td {
        min-width: 76px;
        padding: 14px 12px;
    }

    .a-label-rows__item,
    .a-results-rows__item {
        padding: 18px 18px 16px;
    }
}

/* ------------------------------------------------------------------ Relacionados */
.article-related {
    padding-block: 150px 150px;
    background: var(--color-paper);
}

.article-related__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 49px;
}

.article-related__header h2 {
    margin: 0;
    color: var(--color-text);
    font-size: 36px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.article-related__header h2 em {
    color: var(--color-blue);
    font-family: var(--font-serif);
    font-size: 1.185em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.article-related__header .button {
    flex: none;
    min-width: 227px;
}

.article-related__track {
    --gap: 30px;
    --visible: 3;
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
}

.article-card__link {
    position: relative;
    display: block;
    height: 100%;
    color: var(--color-text);
}

.article-card__media {
    display: block;
    overflow: hidden;
    background: #334755;
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.article-card__link:hover .article-card__media img {
    transform: scale(1.03);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
}

.article-card__eyebrow {
    margin-bottom: 12px;
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.article-card__title {
    color: var(--color-text);
    font-weight: 500;
}

.article-card__excerpt {
    margin-top: 8px;
    font-size: 16px;
    line-height: 19.5px;
}

.article-card__more {
    margin-top: auto;
    padding-top: 20px;
    color: var(--color-blue);
    font-size: 16px;
    line-height: 1.2;
}

.article-card__more span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Insights: tarjeta con cuerpo superpuesto a la imagen (425x455). */
.article-page--insight .article-card__link {
    height: 455px;
}

.article-page--insight .article-card__media {
    position: absolute;
    inset: 0;
}

.article-page--insight .article-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    min-height: 231px;
    max-height: calc(100% - 40px);
    padding: 24px 30px 22px;
}

.article-page--insight .article-card__title {
    font-size: 26px;
    line-height: 29px;
}

/* Titulo y extracto acotados: "+ Leer mas" siempre queda visible abajo. */
.article-card__title,
.article-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.article-card__excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Noticias: 4 tarjetas de 310x460 con cuerpo bajo la imagen. */
.article-page--noticia .article-related__track {
    --gap: 31px;
    --visible: 4;
    grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
}

.article-page--noticia .article-card__link {
    display: flex;
    height: 460px;
    flex-direction: column;
}

.article-page--noticia .article-card__media {
    height: 200px;
    flex: none;
}

.article-page--noticia .article-card__body {
    flex: 1;
    padding: 26px 30px 28px;
}

.article-page--noticia .article-card__title {
    font-size: 20px;
    line-height: 24px;
}

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1400px) {
    .article-body {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 50px;
    }

    .article-sidebar__divider {
        width: 100%;
    }

    .a-logos ul {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 1100px) {
    .article-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-block: 60px 90px;
    }

    /* Compartir y recurso arriba; el equipo de contacto pasa al final del articulo. */
    .article-body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .article-sidebar {
        display: contents;
    }

    .article-sidebar__group {
        margin-bottom: 30px !important;
    }

    .article-sidebar__divider {
        display: none;
    }

    .article-main {
        order: 3;
        margin-top: 10px;
    }

    .article-team {
        order: 4;
        margin: 60px 0 0 !important;
    }

    .article-team__list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .a-cards[style*="--a-columns:4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-related__track,
    .article-page--noticia .article-related__track {
        --visible: 2;
        grid-auto-columns: calc((100% - var(--gap)) / 2);
    }
}

@media (max-width: 767px) {
    .article-top {
        padding-top: 24px;
    }

    .article-hero {
        margin-top: 24px;
    }

    .article-hero__media {
        height: 240px;
    }

    .article-hero__card {
        width: auto;
        min-height: 0;
        margin: -40px 12px 0;
        padding: 28px 22px 30px;
    }

    .article-hero__title {
        max-width: none;
        margin-bottom: 22px;
        font-size: 36px;
        line-height: 42px;
    }

    .article-hero__lead {
        font-size: 20px;
        line-height: 28px;
    }

    .article-hero__card .article-doc-button {
        margin-top: 28px;
    }

    .article-doc-button {
        height: auto;
        min-height: 50px;
        padding-block: 10px;
        white-space: normal;
    }

    .article-intro__title {
        font-size: 24px;
        line-height: 30px;
    }

    .a-divider {
        margin-block: 50px;
    }

    .a-divider--nav {
        margin-bottom: 24px;
    }

    .a-tabs {
        margin-bottom: 32px;
    }

    .a-tabs a {
        height: 54px;
        padding: 0 16px;
        font-size: 13px;
    }

    .a-section--dark,
    .a-section--soft {
        padding: 30px 20px;
    }

    .a-section--dark:has(> .a-cards--overlap) {
        padding: 30px 20px 0;
    }

    .a-cards--overlap {
        margin-inline: -8px;
    }

    .a-cards,
    .a-cards[style*="--a-columns:4"],
    .a-stats,
    .a-compare,
    .estudio-lead__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .estudio-lead__fields {
        gap: 20px;
    }

    .a-compare {
        gap: 20px;
    }

    .a-table__row--head {
        display: none;
    }

    .a-table__row {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 0;
    }

    .a-table__row > span {
        padding: 4px 0;
    }

    .a-logos ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .a-cases__track {
        --visible: 1;
        grid-auto-columns: 88%;
    }

    .estudio-lead {
        padding: 30px 20px;
    }

    .estudio-lead__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .estudio-lead__footer .button {
        width: 100%;
        min-width: 0;
    }

    .article-related {
        padding-block: 80px;
    }

    .article-related__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 32px;
    }

    .article-related__header h2 {
        font-size: 30px;
    }

    .article-related__track,
    .article-page--noticia .article-related__track {
        --visible: 1;
        grid-auto-columns: 85%;
        gap: 16px;
    }

    .article-page--insight .article-card__body {
        width: calc(100% - 24px);
        height: auto;
        min-height: 200px;
        padding: 20px;
    }

    .article-page--insight .article-card__title {
        font-size: 22px;
        line-height: 26px;
    }
}

/* Neutraliza reglas antiguas de main.css para los mismos selectores. */
.article-page .article-share a,
.article-page .article-share a:hover {
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 0;
}

/* Carruseles de relacionados/casos: arrastre con mouse (assets/js/pages/article.js). */
.a-cases__track.is-draggable,
.article-related__track.is-draggable {
    cursor: grab;
}

.a-cases__track.is-dragging,
.article-related__track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* ------------------------------------------------------------------ Ajustes moviles y tablet */
@media (max-width: 1100px) {
    /* Texto minimo 12px. */
    .a-card__tag,
    .a-pill,
    .a-pill--plain,
    .a-callout__label,
    .a-table__name small,
    .a-card__text small,
    .a-chips li,
    .a-figure__source,
    .a-case__label,
    .a-label-rows__label,
    .a-text sup {
        font-size: 12px;
    }

    /* Pestanas: degradado del color de la barra a la derecha mientras quede
       contenido por ver (la clase la pone assets/js/pages/article.js). */
    .a-tabs {
        --a-tabs-bg: var(--color-ink);
        display: flex;
    }

    .a-tabs--blue {
        --a-tabs-bg: var(--color-blue);
    }

    .a-tabs ul {
        flex: 1 0 auto;
    }

    .a-tabs::after {
        position: sticky;
        right: 0;
        flex: 0 0 48px;
        margin-left: -48px;
        background: linear-gradient(to right, transparent, var(--a-tabs-bg) 85%);
        content: "";
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .a-tabs.has-more-end::after {
        opacity: 1;
    }

    /* Tablas libres: el borde derecho se desvanece mientras quede tabla por ver. */
    .a-table-free__scroll.has-more-end {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
    }

    /* Areas tactiles de al menos 40px sin cambiar el dibujo. */
    .article-back,
    .article-share a {
        position: relative;
        z-index: 1;
    }

    .article-back::after,
    .article-share a::after {
        position: absolute;
        inset: -6px -1px; /* borde de 1px + 6px: 40px de alto */
        content: "";
    }

    .article-share {
        gap: 16px;
    }

    .article-share a::after {
        inset: -8px;
    }

    /* Nombre y correo del equipo lateral: area tactil de 40px sin mover el texto. */
    .article-team__name a,
    .article-team__email {
        position: relative;
    }

    .article-team__name a::after,
    .article-team__email::after {
        position: absolute;
        inset: -8px 0;
        content: "";
    }

    .article-team__email::after {
        inset: -12px 0;
    }

    .article-carousel-nav {
        gap: 12px;
    }

    .article-carousel-nav__button {
        width: 40px;
        height: 40px;
    }

    .estudio-lead__terms input {
        width: 22px;
        height: 22px;
    }

    .estudio-lead__terms label {
        padding-block: 6px;
        cursor: pointer;
    }
}

@media (max-width: 767px) {
    /* Sin los altos minimos de escritorio: en una columna dejaban huecos. */
    .a-cards--blue .a-card,
    .a-stats--white .a-stat,
    .a-cards--num-big.a-cards--dark .a-card,
    .a-cards--num-inline.a-cards--white .a-card {
        min-height: 0;
    }

    /* Columnas legibles: scroll horizontal real en vez de apretar la ultima. */
    .a-table-free__table th,
    .a-table-free__table td {
        min-width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .a-tabs::after {
        transition: none;
    }
}
