/* ============================================================
   Infolenca Front v2 — Sistema de diseño (claro minimalista + oscuro)
   Cubre: header global, footer global, hero consulta, citas,
   grid de noticias (cards texto/foto) y resultados del insight.
   ============================================================ */

:root {
    --fx-bg: #fafaf8;
    --fx-surface: #ffffff;
    --fx-surface-2: #f1f2f5;
    --fx-text: #0a0e13;
    --fx-muted: #525b66;
    --fx-accent: #203473;
    --fx-accent-soft: #eef1fb;
    --fx-border: #d8dbe2;
    --fx-card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .07);
    --fx-num-stroke: rgba(15, 23, 42, .26);
    --fx-hero: #f4f7ff;
    --fx-hero-2: #e8eefb;
    --fx-hero-text: #101418;
    --fx-hero-muted: #5c6570;
    --fx-ask-bg: rgba(255, 255, 255, .55);
    --fx-ask-bg-hover: rgba(255, 255, 255, .8);
    --fx-ask-border: rgba(15, 23, 42, .16);
    --fx-ask-ring: rgba(32, 52, 115, .14);
    --fx-chip-fg: #525b66;
    --fx-chip-border: rgba(15, 23, 42, .22);
    --fx-chip-hover-bg: rgba(15, 23, 42, .05);
    --fx-chip-hover-border: rgba(15, 23, 42, .5);
    --fx-chip-hover-fg: #0a0e13;
    --fx-btn-bg: #0f172a;
    --fx-btn-fg: #f4f6fb;
    --fx-ok: #0b7a46;
    --fx-danger: #b42318;
    --fx-shadow: 0 18px 44px rgba(15, 23, 42, .12);
    --fx-radius: 18px;
}

[data-theme="dark"] {
    --fx-bg: #0d1117;
    --fx-surface: #1a2130;
    --fx-surface-2: #222b3c;
    --fx-text: #f4f7fb;
    --fx-muted: #9aa5b8;
    --fx-accent: #7d99f8;
    --fx-accent-soft: #1d2740;
    --fx-border: #333d52;
    --fx-card-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .4);
    --fx-num-stroke: rgba(244, 247, 251, .32);
    --fx-hero: #0b0f16;
    --fx-hero-2: #12192a;
    --fx-hero-text: #f4f6fb;
    --fx-hero-muted: #9aa6bd;
    --fx-ask-bg: rgba(244, 246, 251, .07);
    --fx-ask-bg-hover: rgba(244, 246, 251, .1);
    --fx-ask-border: rgba(244, 246, 251, .24);
    --fx-ask-ring: rgba(111, 142, 247, .16);
    --fx-chip-fg: #aab3c8;
    --fx-chip-border: rgba(244, 246, 251, .18);
    --fx-chip-hover-bg: rgba(244, 246, 251, .10);
    --fx-chip-hover-border: rgba(244, 246, 251, .45);
    --fx-chip-hover-fg: #f4f6fb;
    --fx-btn-bg: #f4f6fb;
    --fx-btn-fg: #0f172a;
    --fx-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --fx-bg: #0d1117;
        --fx-surface: #1a2130;
        --fx-surface-2: #222b3c;
        --fx-text: #f4f7fb;
        --fx-muted: #9aa5b8;
        --fx-accent: #7d99f8;
        --fx-accent-soft: #1d2740;
        --fx-border: #333d52;
        --fx-card-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .4);
        --fx-num-stroke: rgba(244, 247, 251, .32);
        --fx-hero: #0b0f16;
        --fx-hero-2: #12192a;
        --fx-hero-text: #f4f6fb;
        --fx-hero-muted: #9aa6bd;
        --fx-ask-bg: rgba(244, 246, 251, .07);
        --fx-ask-bg-hover: rgba(244, 246, 251, .1);
        --fx-ask-border: rgba(244, 246, 251, .24);
        --fx-ask-ring: rgba(111, 142, 247, .16);
        --fx-chip-fg: #aab3c8;
        --fx-chip-border: rgba(244, 246, 251, .18);
        --fx-chip-hover-bg: rgba(244, 246, 251, .10);
        --fx-chip-hover-border: rgba(244, 246, 251, .45);
        --fx-chip-hover-fg: #f4f6fb;
        --fx-btn-bg: #f4f6fb;
        --fx-btn-fg: #0f172a;
        --fx-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    }
}

html.fx-html {
    scroll-behavior: smooth;
}

body {
    background: var(--fx-bg);
    color: var(--fx-text);
}

.fx-container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
}

.fx-hidden {
    display: none !important;
}

/* ------------------------------------------------------------
   Header global
   ------------------------------------------------------------ */
.fx-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #ffffff;
    border-bottom: 1px solid #e7e5df;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* El header permanece siempre claro, sin importar el tema */
    --fx-text: #101418;
    --fx-muted: #5c6570;
    --fx-accent: #203473;
    --fx-accent-soft: #eef1fb;
    --fx-border: #e7e5df;
    --fx-surface: #ffffff;
    --fx-surface-2: #f4f3ef;
    --fx-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.fx-header__row {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
}

.fx-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fx-text);
    font-weight: 950;
    font-size: 1.12rem;
    letter-spacing: -.02em;
}

.fx-logo img {
    height: 30px;
    width: auto;
    display: block;
}

.fx-logo__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--fx-accent);
    display: inline-block;
}

.fx-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.fx-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--fx-muted);
    text-decoration: none;
    font-weight: 650;
    font-size: .92rem;
    transition: color .16s ease, background .16s ease;
}

.fx-nav a:hover {
    color: var(--fx-text);
    background: var(--fx-surface-2);
}

.fx-nav a.fx-active {
    color: #fff;
    background: var(--fx-accent);
}

.fx-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fx-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    background: var(--fx-surface);
    overflow: hidden;
}

.fx-search input {
    border: 0;
    background: transparent;
    padding: 8px 14px;
    width: 160px;
    color: var(--fx-text);
    outline: none;
    font-size: .9rem;
}

.fx-search input::placeholder {
    color: var(--fx-muted);
}

.fx-search button {
    border: 0;
    background: transparent;
    color: var(--fx-muted);
    padding: 8px 12px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.fx-search button:hover {
    color: var(--fx-accent);
}

.fx-theme-toggle,
.fx-burger {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease;
}

.fx-theme-toggle:hover,
.fx-burger:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}

.fx-burger {
    display: none;
}

@media (max-width: 920px) {
    .fx-burger {
        display: grid;
    }
    .fx-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 16px;
        background: var(--fx-surface);
        border-bottom: 1px solid var(--fx-border);
        box-shadow: var(--fx-shadow);
    }
    .fx-nav.fx-is-open {
        display: flex;
    }
    .fx-search input {
        width: 96px;
    }
}

/* ------------------------------------------------------------
    Hero consulta (portada) — fullscreen
    ------------------------------------------------------------ */
.fx-hero-ask {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(111, 142, 247, .28), transparent 60%),
        radial-gradient(700px 380px at 92% 0%, rgba(56, 189, 248, .14), transparent 55%),
        linear-gradient(160deg, var(--fx-hero) 0%, var(--fx-hero-2) 100%);
    color: var(--fx-hero-text);
    text-align: center;
    padding: 96px 24px 110px;
}

.fx-hero-ask__inner {
    width: 100%;
    max-width: 880px;
    margin-inline: auto;
}

.fx-hero-ask__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fx-hero-muted);
    margin-bottom: 18px;
}

.fx-hero-ask__title {
    margin: 0 auto 12px;
    max-width: 760px;
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.06;
}

.fx-hero-ask__sub {
    margin: 0 auto 34px;
    max-width: 620px;
    color: var(--fx-hero-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.fx-scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--fx-hero-muted);
    text-decoration: none;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .18s ease, transform .18s ease;
}

.fx-scroll-hint:hover {
    color: var(--fx-hero-text);
    transform: translateX(-50%) translateY(3px);
}

.fx-scroll-hint svg {
    animation: fx-bob 1.8s ease-in-out infinite;
}

@keyframes fx-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.fx-ask-form {
    max-width: 760px;
    margin: 0 auto;
}

.fx-ask-panel {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--fx-ask-border);
    background: var(--fx-ask-bg);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.fx-ask-panel:focus-within {
    background: var(--fx-ask-bg-hover);
    border-color: var(--fx-accent);
    box-shadow: 0 0 0 3px var(--fx-ask-ring);
}

.fx-ask-input {
    display: block;
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--fx-hero-text);
    padding: 18px 20px;
    font-size: clamp(1.05rem, 2.1vw, 1.3rem);
    line-height: 1.6;
    font-family: inherit;
    font-weight: 550;
    outline: none;
    text-align: left;
    transition: opacity .25s ease;
}

.fx-ask-input.fx-ph-swap {
    opacity: 0;
}

.fx-ask-input::placeholder {
    color: var(--fx-hero-muted);
    transition: opacity .25s ease;
}

.fx-ask-input:focus {
    border-bottom-color: rgba(111, 142, 247, .95);
}

.fx-ask-form__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.fx-ask-submit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: var(--fx-btn-bg);
    color: var(--fx-btn-fg);
    font-weight: 850;
    font-size: .95rem;
    padding: 13px 26px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.fx-ask-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.fx-ask-submit:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

.fx-ask-hint {
    color: var(--fx-hero-muted);
    font-size: .8rem;
}

.fx-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
}

.fx-chip {
    border: 1px solid var(--fx-chip-border);
    background: transparent;
    color: var(--fx-chip-fg);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: .86rem;
    font-weight: 650;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    animation: fx-chip-in .45s ease forwards;
    animation-delay: calc(var(--i, 0) * 60ms + .1s);
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.fx-chip:hover {
    background: var(--fx-chip-hover-bg);
    border-color: var(--fx-chip-hover-border);
    color: var(--fx-chip-hover-fg);
    transform: translateY(-2px);
}

@keyframes fx-chip-in {
    to { opacity: .85; transform: translateY(0); }
}

.fx-chips-refresh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    border: 1px dashed var(--fx-chip-border);
    background: transparent;
    color: var(--fx-chip-fg);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, transform .16s ease;
}

.fx-chips-refresh:hover {
    border-color: var(--fx-chip-hover-border);
    color: var(--fx-chip-hover-fg);
    transform: translateY(-2px);
}

.fx-chips-refresh svg {
    transition: transform .5s ease;
}

.fx-chips-refresh.fx-is-spinning svg {
    animation: fx-rot 1s linear infinite;
}

@keyframes fx-rot {
    to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   Escenario de respuesta del insight
   ------------------------------------------------------------ */
.fx-insight-stage {
    max-width: 880px;
    margin: 54px auto 10px;
    text-align: left;
    animation: fx-stage-in .45s ease both;
}

@keyframes fx-stage-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fx-insight-stage__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.fx-insight-stage__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fx-accent);
}

.fx-insight-stage__query {
    display: block;
    margin-top: 10px;
    font-size: .95rem;
    color: var(--fx-muted);
    font-style: italic;
}

.fx-stage-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fx-stage-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease;
}

.fx-stage-btn:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}

.fx-insight-card {
    border: 1px solid var(--fx-border);
    border-radius: 22px;
    background: var(--fx-surface);
    color: var(--fx-text);
    padding: 28px 30px;
    box-shadow: var(--fx-shadow);
    animation: fx-card-in .4s ease both;
}

@keyframes fx-card-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.fx-ask-answer {
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--fx-text);
    max-width: 68ch;
}

.fx-ask-answer p {
    margin: 0 0 18px;
    color: var(--fx-text);
}

.fx-ask-answer p:last-child {
    margin-bottom: 0;
}

.fx-ask-answer p + p {
    padding-top: 18px;
    border-top: 1px solid var(--fx-border);
}

.fx-ask-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--fx-border);
    font-size: .78rem;
    color: var(--fx-muted);
}

/* Datos y fuentes: cards dinámicas con datos relevantes */
.fx-data-section {
    margin-top: 34px;
}

.fx-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    width: 100%;
}

.fx-data-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    padding: 16px 17px;
    opacity: 0;
    transform: translateY(10px);
    animation: fx-card-in .45s ease forwards;
    animation-delay: calc(var(--i, 0) * 70ms + .1s);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fx-data-card:first-child {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .fx-data-card:first-child {
        grid-column: span 1;
    }
}

.fx-data-card:hover {
    border-color: var(--fx-accent);
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow);
}

.fx-data-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fx-data-card__kind {
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fx-accent);
}

.fx-data-card__date {
    font-size: .78rem;
    font-weight: 700;
    color: var(--fx-muted);
}

.fx-data-card__title {
    font-weight: 850;
    font-size: .98rem;
    line-height: 1.35;
    color: var(--fx-text);
    text-decoration: none;
}

.fx-data-card__title:hover {
    color: var(--fx-accent);
}

.fx-data-card__meta {
    font-size: .82rem;
    font-weight: 700;
    color: var(--fx-muted);
}

.fx-data-card__datos {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fx-data-card__datos li {
    position: relative;
    padding-left: 14px;
    font-size: .85rem;
    color: var(--fx-muted);
    line-height: 1.5;
}

.fx-data-card__datos li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .52em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fx-accent);
    opacity: .75;
}

@media (max-width: 620px) {
    .fx-data-grid {
        grid-template-columns: 1fr;
    }
}

/* Noticias relacionadas: grid dinámico full-width */
.fx-sources-wrap {
    margin-top: 34px;
}

.fx-sources-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.fx-sources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
}

.fx-source-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--fx-text);
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    opacity: 0;
    transform: translateY(12px);
    animation: fx-card-in .45s ease forwards;
    animation-delay: calc(var(--i, 0) * 80ms + .1s);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fx-source-card:hover {
    border-color: var(--fx-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .14);
}

[data-theme="dark"] .fx-source-card:hover {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .5);
}

.fx-source-card:first-child {
    grid-column: span 2;
}

@media (max-width: 720px) {
    .fx-source-card:first-child {
        grid-column: span 1;
    }
}

/* Variante texto (sin imagen): card tipográfica */
.fx-source-card--text {
    padding: 18px;
    gap: 8px;
}

.fx-source-card--text .fx-source-card__title {
    font-size: 1rem;
}

/* Variante foto: imagen de fondo con overlay + filtro negro */
.fx-source-card--photo {
    min-height: 220px;
    justify-content: flex-end;
    color: #fff;
    border: 0;
}

.fx-source-card--photo .fx-source-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fx-source-card--photo .fx-source-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
    filter: brightness(.62) saturate(.92);
    transition: transform .4s ease, filter .3s ease;
}

.fx-source-card--photo:hover .fx-source-media img {
    transform: scale(1.05);
    filter: brightness(.5) saturate(.9);
}

.fx-source-card--photo .fx-source-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 11, 20, .18) 28%, rgba(8, 11, 20, .94) 100%);
}

.fx-source-card--photo .fx-source-card__body {
    position: relative;
    z-index: 2;
    padding: 18px;
}

.fx-source-card--photo .fx-source-card__kind {
    color: #cfe0ff;
}

.fx-source-card--photo .fx-source-card__title {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.fx-source-card--photo .fx-source-card__excerpt {
    color: rgba(255, 255, 255, .84);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.fx-source-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-source-card__kind {
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fx-accent);
}

.fx-source-card__title {
    font-weight: 800;
    font-size: .96rem;
    line-height: 1.35;
}

.fx-source-card__excerpt {
    font-size: .83rem;
    color: var(--fx-muted);
    line-height: 1.55;
}

/* Skeleton escalonado */
.fx-skeleton {
    border-radius: 12px;
    background: linear-gradient(90deg, var(--fx-surface-2) 25%, var(--fx-border) 50%, var(--fx-surface-2) 75%);
    background-size: 200% 100%;
    animation: fx-shimmer 1.3s ease-in-out infinite;
}

.fx-skeleton:nth-child(2) { animation-delay: .15s; }
.fx-skeleton:nth-child(3) { animation-delay: .3s; }
.fx-skeleton:nth-child(4) { animation-delay: .45s; }

@keyframes fx-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ------------------------------------------------------------
   Cintas de citas
   ------------------------------------------------------------ */
.fx-quotes-section {
    margin-top: 54px;
}

.fx-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fx-section-head__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -.03em;
}

.fx-section-head__sub {
    margin: 4px 0 0;
    color: var(--fx-muted);
    font-size: .92rem;
}

.fx-slider-nav {
    display: flex;
    gap: 8px;
}

.fx-slider-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease;
}

.fx-slider-btn:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}

.fx-quotes {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(330px, 84vw);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.fx-quotes::-webkit-scrollbar {
    display: none;
}

.fx-quote-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    background: var(--fx-surface);
    padding: 22px;
    position: relative;
}

.fx-quote-card::before {
    content: '“';
    position: absolute;
    top: 6px;
    right: 18px;
    font-size: 4.4rem;
    line-height: 1;
    color: var(--fx-accent-soft);
    font-weight: 900;
}

[data-theme="dark"] .fx-quote-card::before {
    color: var(--fx-surface-2);
}

.fx-quote-card__text {
    font-size: 1.02rem;
    line-height: 1.65;
    font-weight: 550;
}

.fx-quote-card__person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.fx-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: var(--fx-accent);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
}

.fx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fx-quote-card__name {
    font-weight: 850;
    font-size: .95rem;
}

.fx-quote-card__cargo {
    font-size: .8rem;
    color: var(--fx-muted);
}

.fx-quote-card__source {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--fx-accent);
    text-decoration: none;
}

.fx-quote-card__source:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Grid de noticias (cards texto + foto)
   ------------------------------------------------------------ */
.fx-news-section {
    position: relative;
    margin-top: 54px;
    padding: 28px 0 8px;
}

/* Fondo difuminado minimalista detrás del grid */
.fx-news-section::before {
    content: '';
    position: absolute;
    inset: -30px -14px -10px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(520px 320px at 8% 18%, rgba(32, 52, 115, .16), transparent 62%),
        radial-gradient(480px 300px at 92% 32%, rgba(56, 189, 248, .14), transparent 62%),
        radial-gradient(420px 260px at 30% 88%, rgba(111, 142, 247, .12), transparent 60%);
    filter: blur(52px);
}

[data-theme="dark"] .fx-news-section::before {
    background:
        radial-gradient(520px 320px at 8% 18%, rgba(111, 142, 247, .14), transparent 62%),
        radial-gradient(480px 300px at 92% 32%, rgba(56, 189, 248, .1), transparent 62%),
        radial-gradient(420px 260px at 30% 88%, rgba(111, 142, 247, .1), transparent 60%);
}

@media (prefers-color-scheme: dark) {
    .fx-news-section::before {
        background:
            radial-gradient(520px 320px at 8% 18%, rgba(111, 142, 247, .14), transparent 62%),
            radial-gradient(480px 300px at 92% 32%, rgba(56, 189, 248, .1), transparent 62%),
            radial-gradient(420px 260px at 30% 88%, rgba(111, 142, 247, .1), transparent 60%);
    }
}

.fx-news-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.fx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--fx-text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fx-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow);
    border-color: color-mix(in srgb, var(--fx-accent) 45%, var(--fx-border));
}

.fx-card--feature { grid-column: span 7; }
.fx-card--wide { grid-column: span 5; }
.fx-card--half { grid-column: span 6; }
.fx-card--third { grid-column: span 4; }

@media (max-width: 980px) {
    .fx-card--feature,
    .fx-card--wide,
    .fx-card--half { grid-column: span 12; }
    .fx-card--third { grid-column: span 6; }
}

@media (max-width: 620px) {
    .fx-card--third { grid-column: span 12; }
}

/* Variante texto (sin imagen) */
.fx-card--text {
    padding: 26px;
}

.fx-card--text .fx-card__num {
    font-size: 3rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1.6px var(--fx-num-stroke);
    margin-bottom: 16px;
}

.fx-card__kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fx-accent);
    margin-bottom: 10px;
}

.fx-card__title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.22;
}

.fx-card--text .fx-card__title {
    font-size: 1.42rem;
}

.fx-card--feature .fx-card__title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.fx-card__excerpt {
    margin: 12px 0 0;
    color: var(--fx-muted);
    font-size: .94rem;
    line-height: 1.6;
}

.fx-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    font-size: .78rem;
    color: var(--fx-muted);
}

.fx-card--text .fx-card__meta {
    padding-top: 22px;
}

.fx-card__meta time {
    font-weight: 650;
}

/* Variante foto (imagen de fondo con opacidad) */
.fx-card--photo {
    min-height: 340px;
    justify-content: flex-end;
    color: #fff;
    border: 0;
}

.fx-card--feature.fx-card--photo {
    min-height: 420px;
}

.fx-card--photo .fx-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fx-card--photo .fx-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .82;
    filter: brightness(.6) saturate(.92);
    transition: transform .4s ease, filter .3s ease;
}

.fx-card--photo:hover .fx-card__media img {
    transform: scale(1.04);
    filter: brightness(.5) saturate(.9);
}

.fx-card--photo .fx-card__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 11, 20, .16) 26%, rgba(8, 11, 20, .92) 100%);
}

.fx-card--photo .fx-card__body {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.fx-card--photo .fx-card__kicker {
    color: #cfe0ff;
}

.fx-card--photo .fx-card__title {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.fx-card--photo .fx-card__excerpt {
    color: rgba(255, 255, 255, .84);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.fx-card--photo .fx-card__meta {
    color: rgba(255, 255, 255, .72);
}

.fx-load-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.fx-load-more button {
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    border-radius: 999px;
    padding: 13px 30px;
    font-weight: 800;
    font-size: .92rem;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease;
}

.fx-load-more button:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}

.fx-empty {
    text-align: center;
    padding: 46px 20px;
    color: var(--fx-muted);
    font-size: 1.02rem;
}

/* ------------------------------------------------------------
   Footer global
   ------------------------------------------------------------ */
.fx-footer {
    margin-top: 72px;
    border-top: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
}

.fx-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0 34px;
}

.fx-footer__brand p {
    margin: 12px 0 0;
    color: var(--fx-muted);
    font-size: .92rem;
    line-height: 1.65;
    max-width: 340px;
}

.fx-footer__col h2 {
    margin: 0 0 14px;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fx-muted);
}

.fx-footer__col nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.fx-footer__col a {
    color: var(--fx-text);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
}

.fx-footer__col a:hover {
    color: var(--fx-accent);
}

.fx-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--fx-border);
    padding: 18px 0 26px;
    font-size: .82rem;
    color: var(--fx-muted);
}

@media (max-width: 860px) {
    .fx-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .fx-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
   Página pública de entrevista
   ------------------------------------------------------------ */
.fx-interview-page {
    max-width: 780px;
    margin: 40px auto;
    padding-inline: 20px;
}

.fx-interview-hero {
    margin-bottom: 30px;
}

.fx-interview-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 950;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.fx-interview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--fx-muted);
    font-size: .9rem;
}

.fx-interview-block {
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    background: var(--fx-surface);
    padding: 20px 22px;
    margin-bottom: 14px;
}

.fx-interview-block__speaker {
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fx-accent);
}

.fx-interview-block__question {
    margin: 10px 0 6px;
    font-weight: 850;
    font-size: 1.05rem;
}

.fx-interview-block__answer {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--fx-text);
}

/* Ajustes para páginas heredadas en modo oscuro */
[data-theme="dark"] .ifx-mag-page,
[data-theme="dark"] .ifx-mag-header,
[data-theme="dark"] .ifx-mag-footer {
    background: transparent;
}

/* Dropdown "Más" del header */
.fx-more {
    position: relative;
}

.fx-more summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--fx-muted);
    font-weight: 650;
    font-size: .92rem;
    transition: color .16s ease, background .16s ease;
}

.fx-more summary::-webkit-details-marker {
    display: none;
}

.fx-more summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.fx-more summary:hover {
    color: var(--fx-text);
    background: var(--fx-surface-2);
}

.fx-more[open] summary {
    color: var(--fx-text);
    background: var(--fx-surface-2);
}

.fx-more__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--fx-border);
    border-radius: 14px;
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow);
}

.fx-more__menu a {
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--fx-text);
    text-decoration: none;
    font-weight: 650;
    font-size: .9rem;
}

.fx-more__menu a:hover {
    background: var(--fx-surface-2);
}

@media (max-width: 920px) {
    .fx-more__menu {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 12px;
    }
}

/* Toggle de tema: sol / luna */
.fx-icon-moon {
    display: none;
}

[data-theme="dark"] .fx-icon-sun {
    display: none;
}

[data-theme="dark"] .fx-icon-moon {
    display: block;
}

/* Ajuste del buscador heredado (sugerencias en vivo de public.js) */
.fx-search {
    position: relative;
}

.fx-search .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: 90vw;
    z-index: 70;
}

/* Ajustes de scroll del escenario de respuesta */
#fx-insight-result {
    scroll-margin-top: 84px;
}

@media (max-width: 560px) {
    .fx-hero-ask {
        padding: 80px 18px 100px;
    }
    .fx-insight-stage {
        margin-top: 40px;
    }
}

/* ------------------------------------------------------------
   Página de noticia v2 (plantilla artículo)
   ------------------------------------------------------------ */
.fx-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.fx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    font-size: .82rem;
    color: var(--fx-muted);
}

.fx-breadcrumb a {
    color: var(--fx-muted);
    text-decoration: none;
    font-weight: 650;
}

.fx-breadcrumb a:hover {
    color: var(--fx-accent);
}

.fx-article__header {
    margin-bottom: 30px;
}

.fx-article__header .fx-card__kicker {
    margin-bottom: 14px;
}

.fx-article__title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.1;
    color: var(--fx-text);
}

.fx-article__dek {
    margin: 0 0 22px;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.65;
    color: var(--fx-muted);
    font-weight: 550;
}

.fx-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding-top: 16px;
    border-top: 1px solid var(--fx-border);
    font-size: .88rem;
    color: var(--fx-muted);
}

.fx-article__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fx-text);
    text-decoration: none;
    font-weight: 800;
}

.fx-article__author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.fx-article__author:hover {
    color: var(--fx-accent);
}

.fx-article__meta time {
    font-weight: 700;
}

.fx-article__google {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--fx-text);
    text-decoration: none;
}

.fx-article__google:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}

.fx-article__share {
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}

.fx-article__share a,
.fx-article__share button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.fx-article__share a svg,
.fx-article__share button svg { fill: currentColor; width: 16px; height: 16px; display: block; }

.fx-article__share a:hover,
.fx-article__share button:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
}
.fx-article__share button.copied, .fx-article__share a.copied, .fx-copy-link.copied {
    border-color: var(--fx-accent); background: var(--fx-accent); color: #fff;
}
[data-theme="dark"] .fx-article__share a,
[data-theme="dark"] .fx-article__share button {
    background: var(--fx-surface-2, #222b3c); border-color: #3e4a64; color: var(--fx-text, #f4f7fb);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
[data-theme="dark"] .fx-article__share a:hover,
[data-theme="dark"] .fx-article__share button:hover {
    background: rgba(125,153,248,.12); border-color: var(--fx-accent); color: var(--fx-accent);
}
[data-theme="dark"] .fx-article__share button.copied,
[data-theme="dark"] .fx-article__share a.copied { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; }
.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: 8px;
    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); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .fx-article__share a,
    :root:not([data-theme="light"]) .fx-article__share button { background: #222b3c; border-color: #3e4a64; color: #f4f7fb; }
}

/* ------------------------------------------------------------
   Byline del artículo — autor destacado + fecha ordenada
   ------------------------------------------------------------ */
.fx-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
}

.fx-byline__author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fx-text);
    padding-right: 20px;
    border-right: 1px solid var(--fx-border);
}

.fx-byline__author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 3px var(--fx-accent-soft), 0 0 0 4px var(--fx-border);
}

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

.fx-byline__kicker {
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fx-muted);
}

.fx-byline__author strong {
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.2;
    transition: color .16s ease;
}

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

.fx-byline__data {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .8rem;
    color: var(--fx-muted);
}

.fx-byline__data time {
    font-weight: 800;
    color: var(--fx-text);
}

.fx-byline .fx-article__google {
    margin-left: auto;
}

/* Barra de compartir centrada */
.fx-article__sharebar {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.fx-article__sharebar .fx-article__share {
    margin-left: 0;
}

@media (max-width: 640px) {
    .fx-byline { padding: 12px 14px; }
    .fx-byline__author {
        width: 100%;
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--fx-border);
    }
    .fx-byline .fx-article__google { margin-left: 0; }
}

.fx-article__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.fx-article__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 750;
    border-radius: 999px;
    padding: 5px 11px;
    background: var(--fx-accent-soft);
    color: var(--fx-accent);
}

.fx-article__figure {
    margin: 0 0 30px;
}

.fx-article__figure img {
    width: 100%;
    height: auto;
    border-radius: var(--fx-radius);
    display: block;
}

.fx-article__figure figcaption {
    margin-top: 8px;
    font-size: .82rem;
    color: var(--fx-muted);
    text-align: center;
}

.fx-article__content {
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--fx-text);
}

.fx-article__content > * {
    margin-bottom: 1.15em;
}

.fx-article__content h2 {
    margin-top: 1.6em;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.fx-article__content h3 {
    margin-top: 1.4em;
    font-size: 1.22rem;
    font-weight: 850;
    line-height: 1.3;
}

.fx-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.fx-article__content figure {
    margin: 1.4em 0;
}

.fx-article__content figure img {
    margin: 0;
}

.fx-article__content figcaption {
    font-size: .82rem;
    color: var(--fx-muted);
    text-align: center;
    margin-top: 8px;
}

.fx-article__content blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    border-left: 4px solid var(--fx-accent);
    background: var(--fx-surface-2);
    border-radius: 0 14px 14px 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--fx-text);
}

.fx-article__content a {
    color: var(--fx-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fx-article__content ul,
.fx-article__content ol {
    padding-left: 1.4em;
}

.fx-article__content ul li,
.fx-article__content ol li {
    margin-bottom: .5em;
}

.fx-article__content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .94rem;
}

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

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

.fx-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 34px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--fx-border);
}

.fx-article__tags strong {
    font-size: .84rem;
    color: var(--fx-muted);
}

.fx-article__tags a {
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--fx-text);
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease;
}

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

/* Widget de consulta de la nota */
.fx-article-ask {
    margin-top: 48px;
    padding: 26px;
    border: 1px solid var(--fx-border);
    border-radius: 22px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
}

.fx-article-ask .fx-ask-form {
    max-width: none;
}

.fx-ask-form--compact .fx-ask-input {
    min-height: 64px;
    padding: 12px 16px;
    font-size: 1rem;
}

.fx-ask-form--compact .fx-ask-form__row {
    justify-content: flex-start;
}

/* Entrevistas relacionadas en la nota */
.fx-article-interviews {
    margin-top: 48px;
}

.fx-interview-link {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    padding: 15px 17px;
    text-decoration: none;
    color: var(--fx-text);
    margin-bottom: 12px;
    transition: border-color .18s ease, transform .18s ease;
}

.fx-interview-link:hover {
    border-color: var(--fx-accent);
    transform: translateY(-2px);
}

.fx-interview-link .fx-avatar {
    width: 44px;
    height: 44px;
    font-size: .9rem;
}

.fx-interview-link__info {
    flex: 1;
    min-width: 0;
}

.fx-interview-link__title {
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fx-interview-link__person {
    font-size: .8rem;
    color: var(--fx-muted);
}

.fx-article-related {
    margin-top: 48px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.fx-article-related .fx-news-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fx-article-related .fx-card--feature,
.fx-article-related .fx-card--wide,
.fx-article-related .fx-card--half,
.fx-article-related .fx-card--third {
    grid-column: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.fx-article-related .fx-card,
.fx-article-related .fx-card__body,
.fx-article-related .fx-card__title {
    min-width: 0;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.fx-article-related .fx-card--photo .fx-card__media img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}
@media (max-width: 820px) {
    .fx-article-related .fx-news-grid { gap: 14px; }
}
@media (max-width: 640px) {
    .fx-article-related .fx-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
    .fx-article { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 620px) {
    .fx-article {
        padding: 28px 16px 0;
    }
    .fx-article__share {
        margin-left: 0;
    }
}

/* ------------------------------------------------------------
   Stories de citas (estilo Instagram, parte superior)
   ------------------------------------------------------------ */
.fx-stories {
    max-width: 1180px;
    margin: 14px auto 0;
    padding-inline: 20px;
}

.fx-stories__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: safe center;
}

.fx-stories__track::-webkit-scrollbar {
    display: none;
}

.fx-story {
    flex: 0 0 auto;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
}

.fx-story__ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 210deg, #f9ce34 0%, #ee2a7b 40%, #6228d7 75%, #f9ce34 100%);
    display: block;
    transition: transform .18s ease;
}

.fx-story:hover .fx-story__ring {
    transform: scale(1.06);
}

.fx-story__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--fx-surface);
    border: 2px solid var(--fx-bg);
}

.fx-story__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fx-story__mono {
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--fx-accent);
}

.fx-story__name {
    max-width: 80px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--fx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-story__cargo {
    max-width: 80px;
    font-size: .64rem;
    font-weight: 600;
    color: var(--fx-muted);
    opacity: .75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: -4px;
}

/* Viewer de historias */
.fx-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    background: rgba(8, 11, 18, .94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f4f6fb;
}

.fx-story-viewer.is-open {
    display: block;
}

.fx-story-viewer__progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 5px;
    padding: 14px 16px;
    z-index: 3;
}

.fx-story-viewer__bar {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(244, 246, 251, .25);
    overflow: hidden;
}

.fx-story-viewer__bar.is-active::before {
    content: '';
    display: block;
    height: 100%;
    background: #f4f6fb;
    border-radius: 999px;
    animation: fx-story-fill 5s linear forwards;
}

@keyframes fx-story-fill {
    from { width: 0; }
    to { width: 100%; }
}

.fx-story-viewer__close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: rgba(244, 246, 251, .12);
    color: #f4f6fb;
    font-size: 1.15rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .16s ease;
}

.fx-story-viewer__close:hover {
    background: rgba(244, 246, 251, .24);
}

.fx-story-viewer__stage {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 24px 40px;
    max-width: 640px;
    margin: 0 auto;
}

.fx-story-viewer__media {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(244, 246, 251, .12);
    border: 3px solid rgba(244, 246, 251, .35);
    margin-bottom: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

.fx-story-viewer__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fx-story-viewer__mono {
    font-size: 2.6rem;
    font-weight: 950;
    color: #f4f6fb;
}

.fx-story-viewer__quote {
    margin: 0 0 18px;
    font-size: clamp(1.2rem, 3.4vw, 1.7rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.01em;
}

.fx-story-viewer__person {
    font-size: .98rem;
    font-weight: 850;
    margin-bottom: 4px;
}

.fx-story-viewer__cargo {
    font-size: .86rem;
    color: rgba(244, 246, 251, .7);
    margin-bottom: 20px;
}

.fx-story-viewer__source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #f4f6fb;
    color: #0f172a;
    font-weight: 850;
    font-size: .9rem;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.fx-story-viewer__source:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.fx-story-viewer__hit {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34%;
    z-index: 2;
    cursor: pointer;
}

.fx-story-viewer__hit-left { left: 0; }
.fx-story-viewer__hit-right { right: 0; }

@media (max-width: 560px) {
    .fx-story-viewer__quote {
        font-size: 1.15rem;
    }
}

/* ------------------------------------------------------------
   Contraste forzado de la página de noticia (claro y oscuro)
   ------------------------------------------------------------ */
body.ifx-bootstrap-magazine {
    background: var(--fx-bg);
    color: var(--fx-text);
}

.fx-article__dek,
.fx-article__meta,
.fx-breadcrumb {
    color: var(--fx-dek, var(--fx-muted));
}

.fx-article__dek {
    color: var(--fx-dek, var(--fx-muted));
}

[data-theme="dark"] .fx-article__dek,
[data-theme="dark"] .fx-article__meta,
[data-theme="dark"] .fx-breadcrumb {
    color: #c3cddd;
}

.fx-article__content,
.fx-article__content p,
.fx-article__content h1,
.fx-article__content h2,
.fx-article__content h3,
.fx-article__content h4,
.fx-article__content li {
    color: var(--fx-text);
}

/* Neutralizar wrappers legacy del CSS anterior dentro del artículo */
.fx-article .public-article,
.fx-article .article-content,
.fx-article .article-meta-header,
.fx-article .article-meta-author,
.fx-article .article-summary,
.fx-article .article-tags {
    color: var(--fx-text);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.fx-article .article-content {
    font-size: 1.06rem;
    line-height: 1.85;
}

/* Imagen destacada y captions */
.fx-article .public-featured-figure,
.fx-article figure.public-featured-figure {
    margin: 0 0 30px;
}

.fx-article .public-featured-figure img,
.fx-article figure.public-featured-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--fx-radius);
    display: block;
    margin: 0;
}

.fx-article .public-featured-figure figcaption,
.fx-article figcaption.public-featured-caption,
.fx-article .public-image-caption,
.fx-article__figure figcaption {
    margin-top: 8px;
    font-size: .82rem;
    line-height: 1.5;
    text-align: center;
    color: var(--fx-muted);
}

.fx-quote-card__count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: .72rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 3px 9px;
    background: var(--fx-accent-soft);
    color: var(--fx-accent);
}

/* Transcripción completa de la entrevista */
.fx-interview-transcript {
    margin-top: 34px;
}

.fx-interview-transcript__body {
    margin-top: 18px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--fx-text);
}

.fx-interview-transcript__body p {
    margin: 0 0 1.15em;
}

.fx-interview-transcript__body p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   Página de declaraciones por persona
   ------------------------------------------------------------ */
.fx-person-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 0 8px;
    margin-bottom: 30px;
}

.fx-person-avatar {
    width: 86px;
    height: 86px;
    font-size: 1.7rem;
}

.fx-person-head h1 {
    margin: 0 0 4px;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 950;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--fx-text);
}

.fx-person-cargo {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fx-muted);
}

.fx-person-stats {
    margin: 0;
    font-size: .82rem;
    color: var(--fx-muted);
}

.fx-person-quotes {
    margin-top: 40px;
}

.fx-person-interviews {
    margin-top: 48px;
}

.fx-person-interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.fx-person-interviews-grid .fx-interview-link {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .fx-person-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ------------------------------------------------------------
   Perfil de declarante (estilo Twitter)
   ------------------------------------------------------------ */
.fx-profile {
    margin-bottom: 34px;
}

.fx-profile__cover {
    height: 160px;
    border-radius: 20px 20px 0 0;
    background:
        radial-gradient(600px 220px at 18% 0%, rgba(111, 142, 247, .5), transparent 60%),
        radial-gradient(520px 200px at 85% 10%, rgba(56, 189, 248, .35), transparent 55%),
        linear-gradient(150deg, var(--fx-hero) 0%, var(--fx-hero-2) 100%);
}

.fx-profile__main {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 24px 22px;
    border: 1px solid var(--fx-border);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: var(--fx-surface);
}

.fx-profile__avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--fx-accent);
    color: #fff;
    font-weight: 950;
    font-size: 2.1rem;
    border: 4px solid var(--fx-surface);
    margin-top: -54px;
    flex: 0 0 auto;
    box-shadow: var(--fx-card-shadow);
}

.fx-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fx-profile__info {
    flex: 1;
    padding: 12px 0 4px;
}

.fx-profile__info h1 {
    margin: 0 0 2px;
    font-size: clamp(1.4rem, 3.2vw, 1.9rem);
    font-weight: 950;
    letter-spacing: -.03em;
    color: var(--fx-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fx-profile__badge {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fx-accent);
    color: #fff;
    font-size: .8rem;
}

.fx-profile__cargo {
    margin: 0 0 8px;
    font-size: .98rem;
    font-weight: 700;
    color: var(--fx-muted);
}

.fx-profile__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: .86rem;
    color: var(--fx-muted);
}

.fx-profile__stats strong {
    color: var(--fx-text);
    font-weight: 900;
}

.fx-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fx-profile__actions a,
.fx-profile__actions button {
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease;
}

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

/* Cards grandes de declaraciones completas */
.fx-big-decls {
    display: grid;
    gap: 16px;
}

/* Variante grid responsivo (home) */
.fx-big-decls--grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fx-big-decls--grid .fx-big-decl {
    flex-direction: column;
    gap: 0;
}

.fx-big-decls--grid .fx-big-decl__media {
    width: 100%;
    height: 150px;
    min-height: 0;
}

.fx-big-decls--grid .fx-big-decl__body {
    padding: 16px 18px 18px;
}

.fx-big-decl__person {
    font-size: .82rem;
    color: var(--fx-muted);
    line-height: 1.4;
}

.fx-big-decl__person strong {
    color: var(--fx-text);
    font-weight: 850;
}

.fx-big-decl {
    display: flex;
    align-items: stretch;
    gap: 18px;
    border: 1px solid var(--fx-border);
    border-radius: 18px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--fx-text);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fx-big-decl:hover {
    border-color: var(--fx-accent);
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow);
}

.fx-big-decl__media {
    width: 168px;
    min-height: 150px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--fx-accent-soft);
}

.fx-big-decl__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fx-big-decl__media--mono {
    font-size: 2.6rem;
    font-weight: 950;
    color: var(--fx-accent);
}

.fx-big-decl__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 20px 0;
    justify-content: center;
}

.fx-big-decl__title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: var(--fx-text);
}

.fx-big-decl__context {
    margin: 0;
    font-size: .9rem;
    color: var(--fx-muted);
    line-height: 1.55;
}

.fx-big-decl__cta {
    align-self: flex-start;
    margin-top: 4px;
    font-size: .86rem;
    font-weight: 850;
    color: var(--fx-accent);
}

@media (max-width: 620px) {
    .fx-profile__main {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 18px 18px;
    }
    .fx-profile__avatar {
        margin-top: -48px;
    }
    .fx-big-decl {
        flex-direction: column;
    }
    .fx-big-decl__media {
        width: 100%;
        height: 130px;
        min-height: 0;
    }
    .fx-big-decl__body {
        padding: 0 18px 18px;
    }
}

/* Contexto de la declaración (detalle) */
.fx-interview-context__body {
    margin-top: 12px;
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fx-interview-context__summary {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--fx-text);
}

.fx-interview-context__note {
    margin: 0;
    font-size: .92rem;
    color: var(--fx-muted);
    line-height: 1.6;
    font-style: italic;
}

/* Lugar en el viewer de stories */
.fx-story-viewer__lugar {
    font-size: .84rem;
    color: rgba(244, 246, 251, .72);
    margin-bottom: 20px;
}

/* ------------------------------------------------------------
   Predictor de carga del insight (palabras vivas)
   ------------------------------------------------------------ */
.fx-predict-card {
    min-height: 120px;
}

.fx-predict-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    min-height: 44px;
    margin-bottom: 18px;
}

.fx-predict-word {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--fx-muted);
    letter-spacing: -.01em;
    animation: fx-word-in .3s ease both;
}

@keyframes fx-word-in {
    from { opacity: 0; filter: blur(6px); transform: translateY(4px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.fx-predict-step {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .92rem;
    font-weight: 750;
    color: var(--fx-accent);
    animation: fx-step-in .35s ease both;
}

.fx-predict-step::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fx-accent);
    animation: fx-pulse 1.1s ease-in-out infinite;
}

@keyframes fx-step-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fx-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: .45; }
}

.fx-predict-skeleton {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fx-surface-2) 25%, var(--fx-border) 50%, var(--fx-surface-2) 75%);
    background-size: 200% 100%;
    animation: fx-shimmer 1.4s ease-in-out infinite;
    width: 64%;
}

/* ------------------------------------------------------------
   Cover tipográfico del perfil (palabras de sus declaraciones)
   ------------------------------------------------------------ */
.fx-profile__cover {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(520px 200px at 12% 0%, rgba(32, 52, 115, .10), transparent 60%),
        radial-gradient(480px 200px at 90% 15%, rgba(14, 116, 144, .08), transparent 55%),
        linear-gradient(160deg, #ffffff 0%, #f2f5fa 100%);
}

[data-theme="dark"] .fx-profile__cover {
    background:
        radial-gradient(520px 200px at 12% 0%, rgba(125, 153, 248, .14), transparent 60%),
        radial-gradient(480px 200px at 90% 15%, rgba(56, 189, 248, .10), transparent 55%),
        linear-gradient(160deg, #f6f8fc 0%, #e9eef6 100%);
}

.fx-cover-word {
    position: absolute;
    white-space: nowrap;
    font-weight: 900;
    letter-spacing: -.015em;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    color: #0a0e13;
    opacity: 0;
    animation: fx-cover-word-in .7s ease forwards;
    text-shadow:
        1px 0 0 #ffffff,
        -1px 0 0 #ffffff,
        0 1px 0 #ffffff,
        0 -1px 0 #ffffff,
        0 0 5px rgba(255, 255, 255, .7);
}

@keyframes fx-cover-word-in {
    from { opacity: 0; transform: translateY(8px) scale(.86); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.fx-profile:hover .fx-cover-word {
    opacity: .9;
}

.fx-cover-vec {
    position: absolute;
    color: rgba(32, 52, 115, .22);
    pointer-events: none;
    z-index: -1;
}

.fx-cover-vec--ring {
    width: 150px;
    height: 150px;
    top: -30px;
    right: 20px;
}

.fx-cover-vec--line {
    width: 260px;
    height: 50px;
    bottom: 6px;
    left: 18%;
}

/* Alineación de la foto con nombre y cargo */
.fx-person-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 0 8px;
    margin-bottom: 30px;
}

.fx-person-head .fx-person-cargo {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 750;
    color: var(--fx-muted);
}

.fx-person-head h1 {
    margin: 0;
}

.fx-profile__main {
    align-items: center;
}

/* ------------------------------------------------------------
   Cinta "En vivo" (frontend) — badges de tipo por contenido
   ------------------------------------------------------------ */
.fx-flash {
    max-width: 1180px;
    margin: 14px auto 0;
    padding-inline: 20px;
}

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

.fx-flash__label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    animation: fx-pulse 1.2s ease-in-out infinite;
}

.fx-flash__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 6px 4px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

.fx-flash__track::-webkit-scrollbar {
    display: none;
}

.fx-flash__item {
    flex: 0 0 auto;
    width: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: 0;
    animation: fx-flash-in .5s ease forwards;
    font-family: inherit;
    transition: transform .18s ease;
}

.fx-flash__item:hover {
    transform: translateY(-3px);
}

.fx-flash__story-ring {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 3px;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.fx-flash__story-ring--live {
    background: linear-gradient(45deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
    animation: fx-pulse 1.5s ease-in-out infinite;
}

.fx-flash__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--fx-surface);
    color: var(--fx-accent);
    font-weight: 900;
    font-size: .95rem;
    display: grid;
    place-items: center;
    border: 2px solid var(--fx-surface);
}

.fx-flash__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fx-flash__live-tag {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 1px 6px;
    border-radius: 999px;
    border: 2px solid var(--fx-surface);
    text-transform: uppercase;
}

.fx-flash__meta {
    width: 100%;
}

.fx-flash__title {
    font-weight: 750;
    font-size: .74rem;
    line-height: 1.25;
    color: var(--fx-text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

@keyframes fx-flash-in {
    from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Modal de la cinta */
.fx-flash-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(8, 11, 18, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fx-flash-modal.is-open {
    display: block;
}

.fx-flash-modal__card {
    position: relative;
    max-width: 560px;
    margin: 6vh auto;
    background: var(--fx-surface);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    max-height: 88vh;
    overflow-y: auto;
}

.fx-flash-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--fx-surface-2);
    color: var(--fx-text);
    cursor: pointer;
    font-size: 1.05rem;
}

.fx-flash-modal__body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fx-flash-modal__media {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--fx-accent-soft);
    color: var(--fx-accent);
    font-weight: 950;
    font-size: 1.4rem;
}

.fx-flash-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fx-flash-modal__quote {
    font-size: 1.28rem;
    font-weight: 750;
    line-height: 1.5;
    color: var(--fx-text);
}

.fx-flash-modal__body h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--fx-text);
}

.fx-flash-modal__body p {
    margin: 0;
    color: var(--fx-muted);
    line-height: 1.6;
}

.fx-flash-modal__person {
    font-weight: 850;
    font-size: .95rem;
    color: var(--fx-text);
}

.fx-flash-modal__src {
    font-size: .82rem;
    color: var(--fx-muted);
}

.fx-flash-modal__link {
    align-self: flex-start;
    margin-top: 6px;
    font-weight: 850;
    font-size: .88rem;
    color: var(--fx-accent);
    text-decoration: none;
}

.fx-flash-modal__link:hover {
    text-decoration: underline;
}

.fx-flash-modal__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.fx-flash-modal__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 620px) {
    .fx-flash__track {
        justify-content: flex-start;
    }
}

/* Embeds en la página pública En vivo */
.fx-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.fx-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fx-embed-link a {
    color: var(--fx-accent);
    font-weight: 800;
}

/* Página pública En vivo */
.fx-live-card {
    border: 1px solid var(--fx-border);
    border-radius: 18px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    overflow: hidden;
}

.fx-live-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fx-live-card__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--fx-text);
}

.fx-live-card__body-txt {
    margin: 0;
    color: var(--fx-muted);
    line-height: 1.6;
}

.fx-live-card__person {
    font-size: .82rem;
    font-weight: 750;
    color: var(--fx-muted);
}

.fx-envivo-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fx-envivo-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    border-radius: 16px;
    padding: 16px 18px;
}

.fx-envivo-row .fx-flash__badge {
    flex: 0 0 auto;
    margin-top: 2px;
}

.fx-envivo-row__content {
    flex: 1;
    min-width: 0;
}

.fx-envivo-row__content h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 850;
    color: var(--fx-text);
}

.fx-envivo-row__content p {
    margin: 0 0 6px;
    color: var(--fx-text);
    line-height: 1.65;
}

.fx-envivo-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: .78rem;
    color: var(--fx-muted);
}

.fx-envivo-row__meta a {
    color: var(--fx-accent);
    font-weight: 750;
    text-decoration: none;
}

/* ------------------------------------------------------------
   Citas — grid cuadrado (home + /citas)
   ------------------------------------------------------------ */
.fx-quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 14px;
}

.fx-quote-tile {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    border-radius: 18px;
    padding: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fx-quote-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow);
    border-color: var(--fx-accent);
}

.fx-quote-tile__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fx-quote-tile__text {
    font-size: .92rem;
    line-height: 1.55;
    color: var(--fx-text);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.fx-quote-tile__foot {
    margin-top: 8px;
}

.fx-quote-tile__name {
    font-weight: 850;
    font-size: .84rem;
    color: var(--fx-text);
}

.fx-quote-tile__cargo {
    font-size: .72rem;
    color: var(--fx-muted);
    margin-bottom: 6px;
}

.fx-quote-tile__open {
    border: 0;
    background: none;
    color: var(--fx-accent);
    font-weight: 800;
    font-size: .76rem;
    padding: 0;
    cursor: pointer;
}

.fx-link-all {
    color: var(--fx-accent);
    font-weight: 800;
    font-size: .84rem;
    text-decoration: none;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   En vivo / En desarrollo — home
   ------------------------------------------------------------ */
.fx-envivo-home {
    margin-top: 54px;
}

.fx-envivo-home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.fx-envivo-home__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--fx-border);
    border-left-width: 4px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    border-radius: 18px;
    padding: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.fx-envivo-home__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow);
}

.fx-envivo-home__title {
    font-weight: 900;
    font-size: .98rem;
    color: var(--fx-text);
    line-height: 1.3;
}

.fx-envivo-home__body {
    font-size: .86rem;
    color: var(--fx-muted);
    line-height: 1.55;
}

.fx-envivo-home__person {
    font-size: .76rem;
    font-weight: 750;
    color: var(--fx-muted);
}

.fx-envivo-home__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fx-react {
    display: flex;
    gap: 6px;
}

.fx-react__btn {
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-text);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 750;
    padding: 4px 8px;
    cursor: pointer;
}

.fx-react__btn.is-liked {
    background: var(--fx-accent-soft);
    border-color: var(--fx-accent);
}

.fx-share {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.fx-share__btn {
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-muted);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 850;
    padding: 4px 7px;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease;
}

.fx-share__btn:hover {
    color: var(--fx-accent);
    border-color: var(--fx-accent);
}

.fx-envivo-home__open {
    font-weight: 850;
    font-size: .78rem;
    color: var(--fx-accent);
    text-decoration: none;
}

/* Modal de cita */
.fx-quote-modal__quote {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--fx-text);
    white-space: pre-wrap;
}

/* Mapa de sismos */
.fx-sismos-map {
    height: 460px;
    border-radius: 18px;
    border: 1px solid var(--fx-border);
    overflow: hidden;
    margin-bottom: 34px;
    background: #eef2f7;
}

/* ------------------------------------------------------------
   Pizarrón — En vivo y en desarrollo (home)
   ------------------------------------------------------------ */
/* Live Wire: card principal + lista lateral */
.fx-wire {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.fx-wire__main {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--fx-border);
    border-top: 4px solid var(--fx-border);
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    border-radius: 20px;
    padding: 18px;
    opacity: 0;
    animation: fx-board-in .5s ease forwards;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fx-wire__main:hover {
    transform: translateY(-3px);
    box-shadow: var(--fx-shadow);
}

@keyframes fx-board-in {
    from { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Color de identidad por tipo */
.fx-wire__main--envivo { border-top-color: #dc2626; }
.fx-wire__main--sismo { border-top-color: #f97316; }
.fx-wire__main--desarrollo { border-top-color: #d97706; }
.fx-wire__main--social { border-top-color: #0891b2; }
.fx-wire__main--nota { border-top-color: #64748b; }

/* En vivo activo: brillo propio */
.fx-wire__main.is-live {
    border-color: rgba(220, 38, 38, .55);
    background: linear-gradient(165deg, var(--fx-surface) 55%, rgba(220, 38, 38, .07));
    box-shadow: 0 0 0 1px rgba(220, 38, 38, .30), 0 14px 36px rgba(220, 38, 38, .16);
}

.fx-wire__mainhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fx-wire__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fx-wire__badge svg { width: 13px; height: 13px; }

.fx-wire__badge--envivo { background: #fee2e2; color: #b91c1c; }
.fx-wire__badge--sismo { background: #ffedd5; color: #9a3412; }
.fx-wire__badge--desarrollo { background: #fef3c7; color: #92400e; }
.fx-wire__badge--social { background: #cffafe; color: #155e75; }
.fx-wire__badge--nota { background: #e2e8f0; color: #334155; }

.fx-wire__livedot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    animation: fx-pulse 1.1s ease-in-out infinite;
    display: inline-block;
}

.fx-wire__time {
    font-size: .72rem;
    font-weight: 700;
    color: var(--fx-muted);
}

.fx-wire__title {
    margin: 0;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.28;
    letter-spacing: -.015em;
    color: var(--fx-text);
}

.fx-wire__body {
    margin: 0;
    font-size: .9rem;
    color: var(--fx-muted);
    line-height: 1.55;
}

.fx-wire__person {
    margin: 0;
    font-size: .78rem;
    font-weight: 750;
    color: var(--fx-muted);
}

.fx-wire__embed {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
}

.fx-wire__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Sismo destacado: magnitud hero + onda */
.fx-wire__sismo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.fx-wire__mag {
    font-size: 3.4rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.04em;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--fx-surface-2);
    border: 3px solid currentColor;
}

.fx-wire__sismotext {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-wire__wave {
    width: 100%;
    height: 44px;
    color: #f97316;
    opacity: .85;
}

/* Lista lateral (wire) */
.fx-wire__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fx-wire__row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    border-radius: 16px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--fx-text);
    opacity: 0;
    animation: fx-board-in .45s ease forwards;
    animation-delay: calc(var(--i, 1) * 70ms);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.fx-wire__row:hover {
    transform: translateX(4px);
    border-color: var(--fx-accent);
    box-shadow: var(--fx-shadow);
}

.fx-wire__row.is-live {
    border-color: rgba(220, 38, 38, .5);
    background: linear-gradient(150deg, var(--fx-surface) 60%, rgba(220, 38, 38, .06));
}

.fx-wire__ico {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.fx-wire__ico svg { width: 19px; height: 19px; }

.fx-wire__ico--envivo { background: #fee2e2; color: #b91c1c; }
.fx-wire__ico--sismo { background: #ffedd5; color: #9a3412; }
.fx-wire__ico--desarrollo { background: #fef3c7; color: #92400e; }
.fx-wire__ico--social { background: #cffafe; color: #155e75; }
.fx-wire__ico--nota { background: #e2e8f0; color: #334155; }

.fx-wire__rowbody {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fx-wire__rowtop {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fx-wire__rowlabel {
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fx-muted);
}

.fx-wire__rowmag {
    font-size: .66rem;
    font-weight: 900;
    color: #f97316;
    background: #ffedd5;
    border-radius: 999px;
    padding: 1px 7px;
}

.fx-wire__rowtime {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    color: var(--fx-muted);
    white-space: nowrap;
}

.fx-wire__rowtitle {
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fx-wire__chev {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--fx-muted);
    transition: transform .16s ease, color .16s ease;
}

.fx-wire__row:hover .fx-wire__chev {
    transform: translateX(3px);
    color: var(--fx-accent);
}

/* Pie de la card principal: reacciones + CTA */
.fx-wire__mainfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--fx-border);
}

.fx-react--board {
    display: flex;
    gap: 8px;
}

.fx-react__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: color .16s ease, border-color .16s ease, transform .16s ease, background .16s ease;
}

.fx-react__circle svg { width: 16px; height: 16px; }

.fx-react__circle span { font-size: .68rem; font-weight: 800; }

.fx-react__circle:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
    transform: translateY(-2px);
}

.fx-react__circle.is-liked {
    background: var(--fx-accent-soft);
    border-color: var(--fx-accent);
    color: var(--fx-accent);
    animation: fx-pop .4s ease;
}

@keyframes fx-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* CTA de la card principal */
.fx-wire__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--fx-accent);
    color: #fff;
    font-size: .84rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.fx-wire__cta svg { width: 15px; height: 15px; }

.fx-wire__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(32, 52, 115, .28);
    opacity: .95;
}

.fx-wire__main.is-live .fx-wire__cta {
    background: #dc2626;
}

@media (max-width: 1024px) {
    .fx-wire { grid-template-columns: 1fr; }
    .fx-wire__list { flex-direction: row; flex-wrap: wrap; }
    .fx-wire__row { flex: 1 1 calc(50% - 5px); }
}

@media (max-width: 620px) {
    .fx-wire__list { flex-direction: column; }
    .fx-wire__row { flex: 1 1 auto; }
}

/* ------------------------------------------------------------
   Búsqueda — hero, estadísticas, gráficos y resultados
   ------------------------------------------------------------ */
main.fx-buscar {
    display: block;
}

.fx-search__hero {
    text-align: center;
    padding: 36px 0 8px;
}

.fx-search__kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fx-accent);
    margin-bottom: 10px;
}

.fx-search__hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 950;
    letter-spacing: -.03em;
    line-height: 1.12;
    color: var(--fx-text);
}

.fx-search__hero p {
    margin: 10px auto 0;
    max-width: 620px;
    color: var(--fx-muted);
    font-size: .98rem;
    line-height: 1.55;
}

.fx-search__form {
    display: flex;
    gap: 8px;
    max-width: 620px;
    margin: 20px auto 0;
}

.fx-search__form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    padding: 13px 22px;
    background: var(--fx-surface);
    color: var(--fx-text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.fx-search__form input:focus {
    border-color: var(--fx-accent);
    box-shadow: 0 0 0 4px rgba(32, 52, 115, .12);
}

.fx-search__form button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    background: var(--fx-accent);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.fx-search__form button svg { width: 15px; height: 15px; }

.fx-search__form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(32, 52, 115, .28);
}

.fx-search__examples {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: .82rem;
    color: var(--fx-muted);
}

.fx-search__examples a {
    padding: 5px 14px;
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--fx-text);
    font-weight: 700;
    transition: border-color .16s ease, color .16s ease, transform .16s ease;
}

.fx-search__examples a:hover {
    border-color: var(--fx-accent);
    color: var(--fx-accent);
    transform: translateY(-2px);
}

/* Estadísticas */
.fx-search__stats {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-search__statrow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.fx-search__stat {
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    animation: fx-board-in .45s ease forwards;
    animation-delay: calc(var(--i, 0) * 60ms);
}

.fx-search__stat strong {
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--fx-text);
}

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

.fx-search__charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fx-search__card {
    border: 1px solid var(--fx-border);
    border-radius: 18px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    padding: 18px;
    opacity: 0;
    animation: fx-board-in .5s ease forwards;
    animation-delay: calc(var(--i, 5) * 60ms);
}

.fx-search__card h3 {
    margin: 0 0 14px;
    font-size: .92rem;
    font-weight: 900;
    color: var(--fx-text);
}

/* Donut */
.fx-donutwrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.fx-donut {
    position: relative;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.fx-donut::after {
    content: '';
    position: absolute;
    inset: 21%;
    border-radius: 50%;
    background: var(--fx-surface);
}

.fx-donut__total {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 950;
    color: var(--fx-text);
}

.fx-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.fx-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--fx-text);
}

.fx-legend li i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.fx-legend li span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-legend li strong { font-weight: 850; }

/* Barras mensuales */
.fx-bars {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 132px;
    min-width: 0;
    max-width: 100%;
}

.fx-bars__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.fx-bars__n {
    font-size: .7rem;
    font-weight: 850;
    color: var(--fx-text);
    min-height: 14px;
}

.fx-bars__bar {
    width: 100%;
    max-width: 34px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--fx-accent), rgba(32, 52, 115, .55));
    min-height: 4px;
    transform-origin: bottom;
    animation: fx-bar-grow .6s cubic-bezier(.22, .68, .4, 1) backwards;
    animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes fx-bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.fx-bars__m {
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fx-muted);
}

/* Temas frecuentes */
.fx-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fx-topic {
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--fx-surface-2);
    color: var(--fx-text);
    font-size: .78rem;
    font-weight: 750;
}

.fx-topic b {
    color: var(--fx-accent);
    font-weight: 900;
    margin-left: 3px;
}

/* Filtros por tipo */
.fx-search__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 26px 0 18px;
}

.fx-search__filters a {
    padding: 8px 18px;
    border: 1px solid var(--fx-border);
    border-radius: 999px;
    background: var(--fx-surface);
    color: var(--fx-text);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .16s ease;
}

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

.fx-search__filters a.is-active {
    background: var(--fx-accent);
    border-color: var(--fx-accent);
    color: #fff;
}

/* Tarjetas de resultado */
.fx-search__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
    width: 100%;
}

.fx-scard {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fx-border);
    border-radius: 18px;
    background: var(--fx-surface);
    box-shadow: var(--fx-card-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fx-scard:hover {
    transform: translateY(-4px);
    box-shadow: var(--fx-shadow);
    border-color: var(--fx-accent);
}

.fx-scard__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--fx-surface-2);
}

.fx-scard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.fx-scard:hover .fx-scard__media img { transform: scale(1.04); }

/* Placeholder cuando el resultado no tiene imagen */
.fx-scard__ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(340px 200px at 20% 0%, rgba(32, 52, 115, .08), transparent 65%),
        var(--fx-surface-2);
    color: var(--fx-muted);
}

.fx-scard__ph svg {
    width: 42px;
    height: 42px;
    opacity: .55;
}

/* Variante tipográfica — resultados sin imagen */
.fx-scard--text {
    position: relative;
    overflow: hidden;
}

.fx-scard--text[data-kind="noticia"] { border-top: 4px solid #2563eb; }
.fx-scard--text[data-kind="entrevista"] { border-top: 4px solid #7c3aed; }
.fx-scard--text[data-kind="informe"] { border-top: 4px solid #d97706; }
.fx-scard--text[data-kind="envivo"] { border-top: 4px solid #dc2626; }

.fx-scard--text .fx-scard__body {
    padding: 20px 22px 22px;
    gap: 10px;
}

.fx-scard--text .fx-scard__title {
    font-size: 1.18rem;
    line-height: 1.28;
    letter-spacing: -.015em;
}

.fx-scard--text .fx-scard__title a {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fx-scard--text .fx-scard__excerpt {
    -webkit-line-clamp: 3;
}

.fx-scard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.fx-scard__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 850;
    color: var(--fx-accent);
    white-space: nowrap;
}

.fx-scard__more svg {
    width: 14px;
    height: 14px;
    transition: transform .16s ease;
}

.fx-scard--text:hover .fx-scard__more svg { transform: translateX(3px); }

/* Marca de agua tipográfica (esquina inferior derecha) */
.fx-scard__mark {
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 130px;
    height: 130px;
    color: var(--fx-text);
    opacity: .05;
    pointer-events: none;
}

.fx-scard__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 17px 17px;
    flex: 1;
}

.fx-scard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fx-scard__badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fx-scard__badge--noticia { background: #dbeafe; color: #1d4ed8; }
.fx-scard__badge--entrevista { background: #ede9fe; color: #6d28d9; }
.fx-scard__badge--informe { background: #fef3c7; color: #92400e; }
.fx-scard__badge--envivo { background: #fee2e2; color: #b91c1c; }

.fx-scard__top time {
    font-size: .72rem;
    font-weight: 700;
    color: var(--fx-muted);
    white-space: nowrap;
}

.fx-scard__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.fx-scard__title a {
    color: var(--fx-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fx-scard__title a:hover { color: var(--fx-accent); }

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

.fx-scard__meta {
    margin-top: auto;
    font-size: .74rem;
    font-weight: 750;
    color: var(--fx-muted);
}

/* Estado vacío */
.fx-search__empty {
    text-align: center;
    border: 1px dashed var(--fx-border);
    border-radius: 20px;
    background: var(--fx-surface);
    padding: 56px 24px;
    margin: 30px auto 50px;
    max-width: 520px;
}

.fx-search__empty svg {
    width: 44px;
    height: 44px;
    color: var(--fx-muted);
    opacity: .6;
}

.fx-search__empty h2 {
    margin: 14px 0 6px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--fx-text);
}

.fx-search__empty p {
    margin: 0 0 18px;
    color: var(--fx-muted);
    font-size: .92rem;
}

@media (max-width: 1024px) {
    .fx-search__statrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fx-search__charts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .fx-search__statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-search__stat:first-child { grid-column: span 2; }
    .fx-search__charts { grid-template-columns: 1fr; }
    .fx-search__form button span { display: none; }
}

/* =========================================================
   AUTHOR PROFILE — Twitter/X style  (fx-profile)
   ========================================================= */

.fx-profile {
    width: 100%;
    padding-bottom: 72px;
}

/* --- Full-bleed cover banner --- */
.fx-profile__cover {
    height: 200px;
    width: 100%;
    background: linear-gradient(120deg, var(--fx-primary, #1d4ed8) 0%, var(--fx-accent, #7c3aed) 55%, var(--fx-warm, #f97316) 100%);
}
[data-theme="dark"] .fx-profile__cover { opacity: .82; }

.fx-profile__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.fx-profile__header {
    position: relative;
    padding-top: 0;
}
.fx-profile__avatar-wrap {
    margin-top: -52px;
    margin-bottom: 12px;
}
.fx-profile__avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--fx-surface, #fff);
    display: block;
    background: var(--fx-surface, #fff);
}
.fx-profile__avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    font-weight: 800;
    color: var(--fx-text, #1a1a2e);
    background: var(--fx-muted, #e8ecf1);
}
[data-theme="dark"] .fx-profile__avatar {
    border-color: var(--fx-surface, #0f172a);
}
[data-theme="dark"] .fx-profile__avatar--initial {
    background: var(--fx-muted, #1e293b);
    color: var(--fx-text, #e2e8f0);
}

.fx-profile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.fx-profile__id { min-width: 0; }
.fx-profile__name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--fx-text, #1a1a2e);
    line-height: 1.15;
    margin: 0;
}
.fx-profile__role {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--fx-primary, #1d4ed8);
    margin-top: 3px;
}
.fx-profile__social {
    flex-shrink: 0;
    color: var(--fx-text-muted, #5a667a);
    opacity: .8;
    transition: opacity .2s, color .2s;
}
.fx-profile__social:hover { opacity: 1; color: var(--fx-primary, #1d4ed8); }

.fx-profile__bio {
    font-size: .95rem;
    color: var(--fx-text, #1a1a2e);
    margin: 12px 0 0;
    line-height: 1.55;
}
[data-theme="dark"] .fx-profile__bio { color: var(--fx-text, #e2e8f0); }

.fx-profile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 12px;
}
.fx-profile__team-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--fx-primary, #1d4ed8);
    text-decoration: none;
    transition: opacity .2s;
}
.fx-profile__team-link:hover { opacity: .7; }
.fx-profile__joined {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--fx-text-muted, #5a667a);
}

/* --- Inline stats row --- */
.fx-profile__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 18px;
}
.fx-profile__stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.fx-profile__stat strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fx-text, #1a1a2e);
}
[data-theme="dark"] .fx-profile__stat strong { color: var(--fx-text, #e2e8f0); }
.fx-profile__stat span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--fx-text-muted, #5a667a);
}

/* --- Tabs --- */
.fx-profile__tabs {
    display: flex;
    gap: 4px;
    margin-top: 28px;
    border-bottom: 1px solid var(--fx-border, #e5e7eb);
    overflow-x: auto;
}
[data-theme="dark"] .fx-profile__tabs { border-color: var(--fx-border, #1e293b); }
.fx-profile__tab {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    color: var(--fx-text-muted, #5a667a);
    padding: 12px 16px;
    position: relative;
    white-space: nowrap;
    transition: color .2s;
}
.fx-profile__tab::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--fx-primary, #1d4ed8);
    transform: scaleX(0);
    transition: transform .2s;
}
.fx-profile__tab:hover { color: var(--fx-text, #1a1a2e); }
[data-theme="dark"] .fx-profile__tab:hover { color: var(--fx-text, #e2e8f0); }
.fx-profile__tab.is-active { color: var(--fx-text, #1a1a2e); }
[data-theme="dark"] .fx-profile__tab.is-active { color: var(--fx-text, #e2e8f0); }
.fx-profile__tab.is-active::after { transform: scaleX(1); }

/* --- Panels --- */
.fx-profile__panel { padding-top: 24px; }
.fx-profile__panel[hidden] { display: none; }

/* Feed grid */
.fx-profile__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

/* Empty feed / stats */
.fx-profile__empty-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 20px;
    text-align: center;
    color: var(--fx-text-muted, #5a667a);
}
.fx-profile__empty-feed svg { opacity: .3; }

/* Load more */
.fx-profile__load-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.fx-profile__load-more button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
    padding: 13px 32px;
    border-radius: 999px;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 12px 26px -12px rgba(29, 78, 216, .65);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.fx-profile__load-more button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(29, 78, 216, .75);
}
.fx-profile__load-more button:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}
.fx-profile__load-more button.is-loading::before {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    border-top-color: #fff;
    animation: fxSpin .7s linear infinite;
}
@keyframes fxSpin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .fx-profile__load-more button { width: 100%; max-width: 340px; }
}

/* --- Stats cards (charts) --- */
.fx-profile__card {
    background: var(--fx-surface, #fff);
    border: 1px solid var(--fx-border, #e5e7eb);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
[data-theme="dark"] .fx-profile__card {
    background: var(--fx-surface, #0f172a);
    border-color: var(--fx-border, #1e293b);
}
.fx-profile__card-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--fx-text-muted, #5a667a);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 18px;
}

/* Monthly bars */
.fx-profile__bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 130px;
    padding-top: 18px;
}
.fx-profile__bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}
.fx-profile__bar-count {
    font-size: .68rem;
    font-weight: 700;
    color: var(--fx-text-muted, #5a667a);
    margin-bottom: 5px;
    min-height: 13px;
}
.fx-profile__bar {
    width: 100%;
    max-width: 34px;
    height: var(--bar-h, 0%);
    min-height: 4px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
    transition: height .45s ease;
}
[data-theme="dark"] .fx-profile__bar {
    background: linear-gradient(180deg, var(--fx-accent, #7c3aed), var(--fx-primary, #1d4ed8));
}
.fx-profile__bar-label {
    font-size: .64rem;
    font-weight: 600;
    color: var(--fx-text-muted, #5a667a);
    margin-top: 7px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Category bars */
.fx-profile__catbars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fx-profile__catbar {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) 2fr auto;
    align-items: center;
    gap: 12px;
}
.fx-profile__catbar-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--fx-text, #1a1a2e);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-theme="dark"] .fx-profile__catbar-label { color: var(--fx-text, #e2e8f0); }
.fx-profile__catbar-track {
    height: 10px;
    border-radius: 999px;
    background: var(--fx-muted, #eef1f5);
    overflow: hidden;
}
[data-theme="dark"] .fx-profile__catbar-track { background: var(--fx-muted, #1e293b); }
.fx-profile__catbar-fill {
    display: block;
    height: 100%;
    width: var(--bar-w, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
    transition: width .45s ease;
}
[data-theme="dark"] .fx-profile__catbar-fill {
    background: linear-gradient(90deg, var(--fx-accent, #7c3aed), var(--fx-primary, #1d4ed8));
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .fx-profile__cover { height: 150px; }
    .fx-profile__inner { padding: 0 16px; }
    .fx-profile__avatar { width: 84px; height: 84px; font-size: 34px; }
    .fx-profile__avatar-wrap { margin-top: -40px; }
    .fx-profile__name { font-size: 1.3rem; }
    .fx-profile__stats { gap: 16px; }
    .fx-profile__grid { grid-template-columns: 1fr; }
    .fx-profile__bars { height: 100px; gap: 5px; }
    .fx-profile__bar { max-width: 24px; }
    .fx-profile__catbar { grid-template-columns: 90px 1fr auto; gap: 8px; }
}

/* ============================================================
   Portada v18 — grid uniforme tipo búsqueda
   ============================================================ */
.fx-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* Dark mode: badges con color fijo (wire + tarjetas) */
[data-theme="dark"] .fx-wire__badge--envivo { background: rgba(254, 226, 226, .12); color: #fca5a5; }
[data-theme="dark"] .fx-wire__badge--sismo { background: rgba(255, 237, 213, .12); color: #fdba74; }
[data-theme="dark"] .fx-wire__badge--desarrollo { background: rgba(254, 243, 199, .12); color: #fcd34d; }
[data-theme="dark"] .fx-wire__badge--social { background: rgba(207, 250, 254, .12); color: #67e8f9; }
[data-theme="dark"] .fx-wire__badge--nota { background: rgba(226, 232, 240, .14); color: #cbd5e1; }

[data-theme="dark"] .fx-scard__badge--noticia { background: rgba(37, 99, 235, .20); color: #a9c0ff; }
[data-theme="dark"] .fx-scard__badge--entrevista { background: rgba(124, 58, 237, .20); color: #c4b5fd; }
[data-theme="dark"] .fx-scard__badge--informe { background: rgba(217, 119, 6, .20); color: #fcd34d; }
[data-theme="dark"] .fx-scard__badge--envivo { background: rgba(220, 38, 38, .22); color: #fca5a5; }

/* ============================================================
   Panel de datos del sitio (explorable)
   ============================================================ */
.fx-datapanel { margin-top: 30px; }

.fx-datapanel__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin: 18px 0 20px;
}

.fx-datapanel__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--fx-muted);
}

.fx-datapanel__select {
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 32px 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface) url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM5YWE1YjgiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNNiA5bDYgNiA2LTYiLz48L3N2Zz4=') no-repeat right 10px center / 14px;
    color: var(--fx-text);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}

.fx-datapanel__types {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--fx-surface-2);
    border: 1px solid var(--fx-border);
}

.fx-datapanel__types button {
    border: 0;
    background: transparent;
    color: var(--fx-muted);
    padding: 7px 14px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.fx-datapanel__types button.is-active {
    background: var(--fx-surface);
    color: var(--fx-text);
    box-shadow: var(--fx-card-shadow);
}

.fx-datapanel__kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.fx-kpi {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--fx-card-shadow);
}

.fx-kpi__n { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; color: var(--fx-text); }
.fx-kpi__l { font-size: .74rem; font-weight: 700; color: var(--fx-muted); text-transform: uppercase; letter-spacing: .04em; }

.fx-datapanel__charts {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    min-width: 0;
}

.fx-datapanel__card {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--fx-card-shadow);
    min-width: 0;
}

.fx-datapanel__card h3 { margin: 0 0 14px; font-size: .98rem; font-weight: 850; color: var(--fx-text); }
.fx-datapanel__empty { color: var(--fx-muted); font-size: .85rem; }

.fx-catbars { display: flex; flex-direction: column; gap: 10px; }
.fx-catbars__row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; }
.fx-catbars__name { font-size: .8rem; font-weight: 750; color: var(--fx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-catbars__track { height: 10px; background: var(--fx-surface-2); border-radius: 999px; overflow: hidden; }
.fx-catbars__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
    transition: width .45s ease;
}
.fx-catbars__n { font-size: .8rem; font-weight: 850; color: var(--fx-muted); }

@media (max-width: 860px) {
    .fx-datapanel__charts { grid-template-columns: 1fr; }
    .fx-datapanel__kpis { grid-template-columns: repeat(2, 1fr); }
    .fx-catbars__row { grid-template-columns: 96px 1fr auto; }
}

/* ============================================================
   Estadísticas de autor — filtro con UX moderna
   ============================================================ */
.fx-datapanel--author {
    margin-top: 8px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--fx-card-shadow);
    overflow: hidden;
    max-width: 100%;
}

.fx-datapanel--author .fx-datapanel__controls {
    align-items: center;
    margin: 0 0 18px;
    gap: 10px 16px;
}

/* Chips de año (scrollable) */
.fx-datapanel__years {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    margin: -2px -2px -6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.fx-datapanel__years::-webkit-scrollbar { height: 6px; }
.fx-datapanel__years::-webkit-scrollbar-thumb { background: var(--fx-border); border-radius: 999px; }
.fx-datapanel__years button {
    flex: 0 0 auto;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--fx-muted);
    padding: 8px 15px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.fx-datapanel__years button:hover { transform: translateY(-1px); color: var(--fx-text); }
.fx-datapanel__years button.is-active {
    background: linear-gradient(135deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(29, 78, 216, .65);
}

/* Segmento de tipo con acento (autor) */
.fx-datapanel--author .fx-datapanel__types button.is-active {
    background: linear-gradient(135deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px -8px rgba(29, 78, 216, .55);
}

/* Tarjetas internas sin doble fondo dentro del módulo */
.fx-datapanel--author .fx-datapanel__card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 14px 0;
}
.fx-datapanel--author .fx-datapanel__card:first-of-type { padding-top: 4px; }
.fx-datapanel--author .fx-kpi {
    background: var(--fx-surface-2);
    border-color: transparent;
}
.fx-datapanel--author .fx-kpi__n {
    background: linear-gradient(135deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Entrada del panel y animación de barras */
.fx-datapanel--author [data-author-stats-inner] {
    animation: fxFadeUp .35s ease both;
}
@keyframes fxFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.fx-datapanel--author .fx-bars__bar {
    transform-origin: bottom;
    animation: fxBarGrow .55s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes fxBarGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
.fx-datapanel--author .fx-catbars__fill {
    transform-origin: left;
    animation: fxBarGrowX .55s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes fxBarGrowX {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 560px) {
    .fx-datapanel--author { padding: 16px 14px; border-radius: 18px; }
    .fx-datapanel--author .fx-datapanel__controls { flex-direction: column; align-items: stretch; }
    .fx-datapanel--author .fx-datapanel__types { width: 100%; }
    .fx-datapanel--author .fx-datapanel__types button { flex: 1; }
    .fx-datapanel--author .fx-bars { gap: 6px; }
    .fx-datapanel--author .fx-bars__m { font-size: .55rem; letter-spacing: 0; }
    .fx-datapanel--author .fx-bars__n { font-size: .62rem; }
    .fx-datapanel--author .fx-datapanel__charts { gap: 12px; }
}

/* ============================================================
   Equipo editorial — rediseño minimalista (lenguaje fx-profile)
   ============================================================ */
.fx-team__hero {
    padding: 34px 0 26px;
}
.fx-team__kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fx-accent, #7c3aed);
    margin-bottom: 10px;
}
.fx-team__title {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 850;
    letter-spacing: -.02em;
    color: var(--fx-text, #1a1a2e);
    margin: 0;
    line-height: 1.1;
}
[data-theme="dark"] .fx-team__title { color: var(--fx-text, #e2e8f0); }
.fx-team__lead {
    max-width: 620px;
    margin: 12px 0 0;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--fx-text-muted, #5a667a);
}

.fx-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 64px;
}

.fx-team__card {
    display: flex;
    flex-direction: column;
    background: var(--fx-surface, #fff);
    border: 1px solid var(--fx-border, #e5e7eb);
    border-radius: 20px;
    padding: 22px 22px 20px;
    box-shadow: var(--fx-card-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fx-team__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -20px rgba(29, 78, 216, .45);
    border-color: color-mix(in srgb, var(--fx-primary, #1d4ed8) 35%, var(--fx-border, #e5e7eb));
}
[data-theme="dark"] .fx-team__card:hover {
    box-shadow: 0 18px 38px -20px rgba(0, 0, 0, .6);
}

.fx-team__avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--fx-surface, #fff);
    background: var(--fx-surface-2, #eef2f7);
    box-shadow: 0 6px 16px -8px rgba(29, 78, 216, .5);
    margin-bottom: 14px;
    transition: transform .2s ease;
}
.fx-team__card:hover .fx-team__avatar { transform: scale(1.04); }
.fx-team__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fx-team__initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-primary, #1d4ed8), var(--fx-accent, #7c3aed));
}
[data-theme="dark"] .fx-team__avatar { border-color: var(--fx-surface, #0f172a); }

.fx-team__body { display: flex; flex-direction: column; min-width: 0; }
.fx-team__name {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}
.fx-team__name a {
    color: var(--fx-text, #1a1a2e);
    text-decoration: none;
    transition: color .2s ease;
}
.fx-team__name a:hover { color: var(--fx-primary, #1d4ed8); }
[data-theme="dark"] .fx-team__name a { color: var(--fx-text, #e2e8f0); }

.fx-team__role {
    margin: 4px 0 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--fx-primary, #1d4ed8);
}

.fx-team__bio {
    margin: 10px 0 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--fx-text-muted, #5a667a);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fx-team__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    font-size: .85rem;
    font-weight: 800;
    color: var(--fx-primary, #1d4ed8);
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}
.fx-team__link svg { transition: transform .2s ease; }
.fx-team__card:hover .fx-team__link svg { transform: translateX(3px); }
.fx-team__link:hover { color: var(--fx-accent, #7c3aed); }

.fx-team__empty {
    padding: 56px 20px;
    text-align: center;
    background: var(--fx-surface, #fff);
    border: 1px solid var(--fx-border, #e5e7eb);
    border-radius: 20px;
    color: var(--fx-text-muted, #5a667a);
}
.fx-team__empty h2 { color: var(--fx-text, #1a1a2e); margin: 0 0 8px; font-size: 1.2rem; }
[data-theme="dark"] .fx-team__empty h2 { color: var(--fx-text, #e2e8f0); }

@media (max-width: 560px) {
    .fx-team__grid { grid-template-columns: 1fr; gap: 16px; }
    .fx-team__hero { padding: 26px 0 20px; }
}
/* Infolenca related inline 1.0.403 — Motor exclusivo ifx-inline-hrect (horizontal rectangular aislado de fx-card) */
.fx-article__content .ifx-inline-hrect {
    margin: 24px 0 32px; max-width: 100%; min-width: 0; box-sizing: border-box; contain: layout;
}
.fx-article__content .ifx-inline-hrect__header {
    display: flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 950; letter-spacing: -.02em; color: var(--fx-text, #101828); margin: 0 0 10px; line-height: 1;
}
.fx-article__content .ifx-inline-hrect__header::after {
    content: ""; width: 28px; height: 3px; background: var(--fx-accent, #203473); border-radius: 999px;
}
.fx-article__content .ifx-inline-hrect__card {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    gap: 14px; min-height: 96px; padding: 12px;
    border: 1px solid var(--fx-border, rgba(15,23,42,.08)); border-radius: 14px;
    background: var(--fx-surface, #fff); box-shadow: 0 6px 20px rgba(15,23,42,.06);
    text-decoration: none; overflow: hidden; max-width: 100%; box-sizing: border-box;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.fx-article__content .ifx-inline-hrect__card:hover {
    border-color: rgba(32,52,115,.14); box-shadow: 0 10px 28px rgba(15,23,42,.10); transform: translateY(-1px);
}
.fx-article__content .ifx-inline-hrect__thumb {
    width: 112px; height: 72px; flex: 0 0 112px; border-radius: 10px; overflow: hidden; background: var(--fx-surface-2, #f2f4f7);
}
.fx-article__content .ifx-inline-hrect__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .22s ease; }
.fx-article__content .ifx-inline-hrect__card:hover .ifx-inline-hrect__thumb img { transform: scale(1.03); }
.fx-article__content .ifx-inline-hrect__body { flex: 1 1 0; min-width: 0; display: grid; gap: 6px; }
.fx-article__content .ifx-inline-hrect__kicker {
    display: inline-flex; align-items: center; width: fit-content; min-height: 20px; padding: 0 8px;
    border-radius: 999px; background: #eef2ff; color: #203473;
    font-size: .66rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
}
.fx-article__content .ifx-inline-hrect__title {
    display: block; font-size: clamp(1.02rem, 2vw, 1.18rem); font-weight: 950; line-height: 1.28; letter-spacing: -.02em;
    color: var(--fx-text, #101828); overflow-wrap: anywhere;
}
.fx-article__content .ifx-inline-hrect__meta { color: var(--fx-muted, #667085); font-size: .82rem; line-height: 1.45; }
.fx-article__content .ifx-inline-hrect__cta {
    display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 999px; background: var(--fx-accent, #203473); color: #fff;
    font-size: 1rem; font-weight: 800; line-height: 1; transition: transform .16s ease;
}
.fx-article__content .ifx-inline-hrect__card:hover .ifx-inline-hrect__cta { transform: translateX(2px); }
.fx-article__content .ifx-inline-hrect__card--text .ifx-inline-hrect__thumb { display: none; }
[data-theme="dark"] .fx-article__content .ifx-inline-hrect__header { color: #f8fafc; }
[data-theme="dark"] .fx-article__content .ifx-inline-hrect__card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .fx-article__content .ifx-inline-hrect__kicker { background: rgba(255,255,255,.12); color: #e0e7ff; }
[data-theme="dark"] .fx-article__content .ifx-inline-hrect__title { color: #f8fafc; }
@media (max-width: 640px) {
    .fx-article__content .ifx-inline-hrect__card { gap: 10px; padding: 10px; min-height: 84px; }
    .fx-article__content .ifx-inline-hrect__thumb { width: 96px; height: 64px; flex: 0 0 96px; }
}
