/* ============================================================
   Artículo — misma línea gráfica del header y el pie
   ============================================================ */

.art {
    --art-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --art-serif: Georgia, "Iowan Old Style", "Times New Roman", "Liberation Serif", Times, serif;
    padding: 22px 0 0;
    font-family: var(--art-sans);
}

.art-col {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Miga de pan */
.art-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--fx-muted);
    font-size: .76rem;
}

.art-crumbs a {
    color: inherit;
    text-decoration: none;
}

.art-crumbs a:hover {
    color: var(--fx-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.art-crumbs span {
    opacity: .5;
}

/* Cabecera */
.art-head {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--fx-border);
}

.art-kicker {
    margin: 0 0 12px;
    font-size: .71rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fx-accent);
}

.art-kicker a {
    color: inherit;
    text-decoration: none;
}

.art-kicker a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.art-title {
    margin: 0;
    font-family: var(--art-serif);
    font-size: clamp(2rem, 4.6vw, 3.15rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.025em;
    color: var(--fx-text);
    text-wrap: balance;
}

.art-dek {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--fx-muted);
    font-size: clamp(1.02rem, 1.6vw, 1.16rem);
    line-height: 1.62;
}

/* Autor, fecha y compartir */
.art-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--fx-border);
}

.art-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fx-text);
}

.art-author__avatar {
    position: relative;
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--fx-accent);
}

.art-author__avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.art-author__initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.art-author__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.art-author__text small {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fx-muted);
}

.art-author__text strong {
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.2;
}

.art-author:hover strong {
    color: var(--fx-accent);
}

.art-meta__sep {
    width: 1px;
    height: 26px;
    background: var(--fx-border);
}

.art-meta__data {
    margin: 0;
    color: var(--fx-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.art-meta__data time {
    color: var(--fx-text);
    font-weight: 650;
}

.art-meta__dot {
    margin: 0 5px;
    opacity: .6;
}

.art-sharebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--fx-border);
}

.art-sharebar__label {
    color: var(--fx-muted);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.art-share {
    display: flex;
    align-items: center;
    gap: 6px;
}

.art-share a,
.art-share button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    background: var(--fx-surface);
    color: var(--fx-text);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.art-share a svg,
.art-share button svg {
    width: 15px;
    height: 15px;
    display: block;
}

.art-share a:hover,
.art-share button:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}

.art-share button.copied {
    border-color: var(--fx-accent);
    background: var(--fx-accent);
    color: #fff;
}

.art-share .art-share__google {
    width: auto;
    gap: 6px;
    padding: 0 12px;
    font-size: .72rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.art-share__google svg {
    width: 14px;
    height: 14px;
}

.fx-copy-link {
    position: relative;
}

.fx-copy-link::after {
    content: attr(data-copied-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.fx-copy-link.copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Imagen principal */
.art-figure {
    margin: 26px 0 0;
}

.art-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: var(--fx-surface-2);
}

.art-figure figcaption {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid var(--fx-border);
    color: var(--fx-muted);
    font-size: .76rem;
    line-height: 1.5;
}

/* Cuerpo */
.art-body {
    margin-top: 28px;
    font-family: var(--art-sans);
    font-size: 1.06rem;
    line-height: 1.78;
    color: var(--fx-text);
}

.art-body > p {
    margin: 0 0 1.3em;
}

.art-body > p:first-of-type {
    font-size: 1.13rem;
    line-height: 1.7;
    color: var(--fx-text);
}

.art-body h2,
.art-body h3 {
    font-family: var(--art-serif);
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--fx-text);
    text-wrap: balance;
}

.art-body h2 {
    margin: 1.9em 0 .55em;
    font-size: clamp(1.35rem, 2.6vw, 1.62rem);
    line-height: 1.18;
}

.art-body h3 {
    margin: 1.6em 0 .45em;
    font-size: clamp(1.15rem, 2vw, 1.28rem);
    line-height: 1.25;
}

.art-body a {
    color: var(--fx-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.art-body a:hover {
    text-decoration-thickness: 2px;
}

.art-body strong {
    font-weight: 800;
}

.art-body ul,
.art-body ol {
    margin: 0 0 1.3em;
    padding-left: 1.2em;
}

.art-body li {
    margin-bottom: .45em;
}

.art-body li::marker {
    color: var(--fx-accent);
}

.art-body blockquote {
    margin: 1.8em 0;
    padding: 18px 0;
    border-top: 1px solid var(--fx-border);
    border-bottom: 1px solid var(--fx-border);
    font-family: var(--art-serif);
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--fx-text);
}

.art-body blockquote p:last-child {
    margin-bottom: 0;
}

.art-body figure {
    margin: 1.7em 0;
}

.art-body figure img,
.art-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.art-body figcaption {
    margin-top: 8px;
    color: var(--fx-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.art-body hr {
    margin: 2.1em 0;
    border: 0;
    border-top: 1px solid var(--fx-border);
}

.art-body table {
    display: block;
    width: 100%;
    margin: 1.4em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: .92rem;
}

.art-body th,
.art-body td {
    padding: 8px 10px;
    border: 1px solid var(--fx-border);
    text-align: left;
}

.art-body th {
    background: var(--fx-surface-2);
    font-weight: 800;
}

.art-body .ifx-adsterra-slot {
    margin: 1.8em 0;
}

/* Temas */
.art-tags {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--fx-border);
}

.art-tags__label {
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fx-muted);
}

.art-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.art-tags__list a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    color: var(--fx-text);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 650;
    transition: border-color .15s ease, color .15s ease;
}

.art-tags__list a:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}

/* Banda de la app */
.art-app {
    margin-top: 48px;
    background: #203473;
    color: #ffffff;
}

.art-app__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    padding-block: 24px;
}

.art-app__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    flex: 0 0 auto;
}

.art-app__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.art-app__text strong {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.art-app__text span {
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
}

.art-app__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin-left: auto;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #203473;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: background .15s ease;
}

.art-app__cta:hover {
    background: #eef1fb;
    color: #203473;
}

/* Bandas anchas */
.art-more,
.art-context {
    padding-block: 44px;
}

.art-more {
    margin-top: 0;
    background: var(--fx-surface);
    border-top: 1px solid var(--fx-border);
}

.art-context {
    padding-top: 8px;
}

.art-section {
    margin-bottom: 22px;
}

.art-section__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--fx-accent);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.art-section__kicker::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--fx-border);
}

.art-section__title {
    margin: 0;
    font-family: var(--art-serif);
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--fx-text);
}

/* Tarjetas de recomendados */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
    gap: 26px 24px;
}

.art-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.art-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background: var(--fx-surface-2);
}

.art-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.art-card:hover .art-card__media img {
    transform: scale(1.04);
}

.art-card__media--blank {
    display: grid;
    place-items: center;
    background: var(--fx-surface-2);
}

.art-card__media--blank span {
    font-family: var(--art-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--fx-accent);
    opacity: .22;
}

.art-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-top: 12px;
}

.art-card__kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--fx-accent);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.art-card__title {
    display: block;
    font-family: var(--art-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.01em;
    color: var(--fx-text);
    text-wrap: balance;
}

.art-card:hover .art-card__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.art-card__meta {
    display: block;
    margin-top: auto;
    padding-top: 8px;
    color: var(--fx-muted);
    font-size: .72rem;
}

/* Contexto */
.art-ctx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px 30px;
}

.art-ctx__group h3 {
    margin: 0 0 10px;
    color: var(--fx-muted);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.art-ctx__group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.art-ctx__group li {
    border-top: 1px solid var(--fx-border);
}

.art-ctx__group a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.art-ctx__title {
    display: block;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--fx-text);
}

.art-ctx__group a:hover .art-ctx__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.art-ctx__meta {
    display: block;
    margin-top: 4px;
    color: var(--fx-muted);
    font-size: .75rem;
}

/* ============================================================
   Tarjeta "Te puede interesar" dentro del artículo
   ============================================================ */
.ifx-inline-hrect {
    margin: 2.2em 0;
    min-width: 0;
}

.ifx-inline-hrect__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--fx-accent);
    font-family: var(--art-sans, ui-sans-serif, system-ui, sans-serif);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ifx-inline-hrect__header::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--fx-border);
}

a.ifx-inline-hrect__card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--fx-border);
    border-radius: 6px;
    background: var(--fx-surface);
    text-decoration: none;
    color: inherit;
    transition: border-color .16s ease, background .16s ease;
}

a.ifx-inline-hrect__card:hover {
    border-color: var(--fx-accent);
}

a.ifx-inline-hrect__card.is-text {
    grid-template-columns: minmax(0, 1fr);
}

.ifx-inline-hrect__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    background: var(--fx-surface-2);
}

.ifx-inline-hrect__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

a.ifx-inline-hrect__card:hover .ifx-inline-hrect__thumb img {
    transform: scale(1.04);
}

.ifx-inline-hrect__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ifx-inline-hrect__kicker {
    color: var(--fx-accent);
    font-family: var(--art-sans, ui-sans-serif, system-ui, sans-serif);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ifx-inline-hrect__title {
    font-family: var(--art-serif, Georgia, serif);
    font-size: clamp(1.02rem, 2vw, 1.24rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--fx-text);
    text-wrap: balance;
}

.ifx-inline-hrect__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--fx-muted);
    font-size: .85rem;
    line-height: 1.5;
}

.ifx-inline-hrect__more {
    margin-top: 2px;
    color: var(--fx-accent);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
}

[data-theme="dark"] a.ifx-inline-hrect__card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}

[data-theme="dark"] .ifx-inline-hrect__title {
    color: #f4f7fb;
}

[data-theme="dark"] .ifx-inline-hrect__kicker,
[data-theme="dark"] .ifx-inline-hrect__more,
[data-theme="dark"] .ifx-inline-hrect__header {
    color: #9db2ff;
}

/* Responsive */
@media (max-width: 720px) {
    .art-meta__sep {
        display: none;
    }

    .art-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }
}

@media (max-width: 560px) {
    .art-title {
        font-size: clamp(1.85rem, 8.6vw, 2.4rem);
    }

    .art-dek {
        font-size: 1rem;
    }

    .art-share__google span {
        display: none;
    }

    .art-app__inner {
        padding-block: 20px;
    }

    .art-app__cta {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .art-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* En una sola columna no hace falta el bloque de relleno. */
    .art-card__media--blank {
        display: none;
    }

    a.ifx-inline-hrect__card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .ifx-inline-hrect__excerpt {
        display: none;
    }

    .ifx-inline-hrect__title {
        font-size: 1rem;
    }

    .art-more,
    .art-context {
        padding-block: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .art-card__media img,
    a.ifx-inline-hrect__card,
    .ifx-inline-hrect__thumb img {
        transition: none;
    }
}
