/*
 * Estilos compartidos para /guias y articulos /guias/<slug>.
 * Tokens y componentes alineados al landing (templates/landing.html).
 * Navbar desktop: flex alineado a landing principal (2026-04-08).
 */

:root {
    --font-sans: "DM Sans", sans-serif;
    --hero-bg: linear-gradient(116.82deg, #0A1929 0%, #0F172A 7.49%, #1E3A5F 50%, #0C4A6E 72.6%, #0369A1 100%);
    --cta-primary-bg: linear-gradient(90deg, #06B6D4 0%, #0EA5E9 100%);
    --microcopy-gradient: linear-gradient(180deg, #00D1FF 79.81%, #017B96 100%);
    --btn-radius: 16px;
    --btn-pad-y: 14px;
    --btn-pad-x: 28px;
    --btn-font-size: 16px;
    --btn-font-weight: 600;
    --bg-page: #0F172A;
    --bg-surface: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.14);
    --text: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.72);
    --accent: #00D1FF;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    --nav-h: 64px;
    padding-top: var(--nav-h);
}
body.navbar-compact {
    --nav-h: 64px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--wide { max-width: 1440px; }
@media (min-width: 1280px) {
    .container { padding: 0 64px; }
}

/* Navbar: misma logica que landing (flex 3 zonas); body/header en compact (equiv. landing tras scroll). */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(10, 25, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    isolation: isolate;
    transition: height 180ms ease;
}
.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 41, 0.95);
    pointer-events: none;
    z-index: 0;
}
.navbar .container--wide {
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 640px) {
    .navbar .container--wide {
        padding-left: 24px;
        padding-right: 24px;
    }
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: var(--nav-h);
    position: relative;
    z-index: 1;
    transition: height 180ms ease;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand img {
    height: 54px;
    width: auto;
    filter: drop-shadow(0px 2px 10px rgba(0, 0, 0, 0.35));
    image-rendering: -webkit-optimize-contrast;
    transition: height 180ms ease;
}
.navbar-center {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    flex: 0 1 auto;
    min-width: 0;
}
.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}
.nav-link {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
    white-space: nowrap;
}
.nav-link:hover { color: rgba(255, 255, 255, 0.98); }
.nav-link--muted { color: #BDBDBD; }
.nav-link--muted:hover { color: rgba(189, 189, 189, 0.92); }
.nav-link--active {
    color: var(--accent);
    font-weight: 600;
}

/* Desktop: flex como landing principal (sin position absolute). */
@media (min-width: 1025px) {
    .navbar .container--wide {
        padding-left: clamp(24px, 4.44vw, 64px);
        padding-right: clamp(24px, 4.44vw, 64px);
    }

    .navbar-inner {
        position: relative;
        max-width: 1440px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(20px, 2.4vw, 44px);
    }

    .brand {
        position: relative;
        top: auto;
        left: auto;
        flex: 0 0 auto;
    }

    .navbar-center {
        display: flex;
        position: relative;
        top: auto;
        transform: none;
        gap: 24px;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }

    .navbar-center .nav-link {
        font-weight: 500;
    }

    .navbar-center .nav-link.nav-link--active {
        font-weight: 600;
    }

    .navbar-right {
        display: flex;
        position: relative;
        top: auto;
        transform: none;
        gap: 11px;
        flex: 0 0 auto;
    }

    .nav-link--login {
        position: relative;
        top: auto;
        transform: none;
        left: auto;
    }

    .navbar-cta {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        flex: 0 0 auto;
        height: 46px;
        min-height: 46px;
        padding: 0 18px;
        white-space: nowrap;
    }

    /* Subpagina siempre .navbar--compact: mismo CTA/logo que landing compact (2026-04-08). */
    .navbar.navbar--compact .brand img {
        height: 54px;
    }

    .navbar.navbar--compact .navbar-cta {
        min-height: 42px;
        height: 42px;
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Tablet: mismo inset horizontal que landing (2026-04-08). */
@media (max-width: 1024px) and (min-width: 641px) {
    .navbar .container--wide {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Tablet estrecho: CTA sin romper fila (alineado a landing). */
@media (max-width: 900px) and (min-width: 641px) {
    .navbar-cta {
        font-size: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--btn-radius);
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    letter-spacing: -0.04em;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}
.btn-primary {
    background: var(--cta-primary-bg);
    color: #fff;
    box-shadow: 0px 4px 16px rgba(6, 182, 212, 0.59);
}
.btn-primary:hover { filter: brightness(1.03); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0px 4px 16px rgba(6, 182, 212, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

section { padding: 72px 0; }
.section-title {
    margin: 0 0 14px 0;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
}
.section-subtitle {
    margin: 0;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 60ch;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}
.card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.card p {
    margin: 0 0 14px 0;
    color: var(--text-muted);
    font-size: 14px;
    flex: 1;
}
.card .btn { align-self: flex-start; margin-top: auto; }

/* Boton principal por tarjeta: mas visible / tactil (2026-04-08). */
.guias-list-section .card .btn.btn-primary {
    min-height: 48px;
    padding-left: 22px;
    padding-right: 22px;
}

.cards.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
    .cards.cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hero interno listado guias */
.guias-page-hero {
    padding-top: 48px;
    padding-bottom: 24px;
    background: var(--hero-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.guias-page-hero .section-title { color: rgba(255, 255, 255, 0.96); }
.guias-page-hero .section-subtitle { color: rgba(255, 255, 255, 0.72); }

/* Linea de intencion bajo H1 en /guias (2026-04-08). */
.guias-intencion {
    margin: 14px 0 8px 0;
    font-size: clamp(17px, 2.1vw, 20px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.94);
    max-width: 42rem;
}

/* Boton volver al home en /guias (2026-04-08). */
.guias-page-nav {
    margin-bottom: 18px;
}
.guias-home-btn {
    min-height: 48px;
    padding: 12px 20px;
    justify-content: center;
}

.guias-list-section { padding-top: 48px; }

/* Articulo */
.articulo-hero {
    padding-top: 40px;
    padding-bottom: 32px;
    background: var(--hero-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.articulo-hero h1 {
    margin: 0 0 12px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.96);
}
.articulo-hero .articulo-subtitle {
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 65ch;
}

/* Navegacion articulo: CTAs secundarios, area clic >= ~48px (2026-04-08). */
.articulo-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    align-items: stretch;
}
.articulo-back-btn {
    min-height: 48px;
    padding: 12px 20px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    justify-content: center;
}

.articulo-body {
    padding: 48px 0 56px;
}
.articulo-prose {
    max-width: 65ch;
}
.articulo-prose p {
    margin: 0 0 16px 0;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

/* Preguntas de ritmo (guia rentabilidad y similares; 2026-04-08) */
.articulo-pregunta {
    margin: 0 0 20px 0;
    font-size: clamp(17px, 2.1vw, 19px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: rgba(34, 211, 238, 0.95);
    border-left: 3px solid rgba(34, 211, 238, 0.55);
    padding-left: 14px;
}
.articulo-pregunta--inline {
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: 17px;
}
.articulo-prose h2 {
    margin: 32px 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
}
.articulo-prose h2:first-child { margin-top: 0; }

/* Contenido extendido (bloques tras "Ideas clave"); 2026-04-08 */
.articulo-prose .articulo-prose-h2 {
    margin: 40px 0 14px 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.25;
}
.articulo-prose .articulo-prose-h3 {
    margin: 26px 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.3;
}
.articulo-prose .articulo-prose-list {
    margin: 0 0 18px 0;
    padding-left: 1.25em;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}
.articulo-prose .articulo-prose-list li { margin-bottom: 8px; }
.articulo-prose .articulo-prose-list li:last-child { margin-bottom: 0; }

.articulo-cta__puente {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

/* Recuadro intermedio opcional (datos en guias_catalog: destacado_*). */
.articulo-destacado {
    margin: 24px 0 28px 0;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.articulo-destacado__title {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1.3;
}
.articulo-destacado__list {
    margin: 0;
    padding-left: 1.25em;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}
.articulo-destacado__list li { margin-bottom: 8px; }
.articulo-destacado__list li:last-child { margin-bottom: 0; }

.articulo-destacado__solo {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
}
.articulo-destacado__solo:last-child {
    margin-bottom: 0;
}
.articulo-destacado--extra {
    margin: 26px 0;
}

.articulo-cta {
    margin-top: 40px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    max-width: 65ch;
}
.articulo-cta__titulo {
    margin: 0 0 16px 0;
    font-size: clamp(18px, 2.2vw, 21px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
}
.articulo-cta__btn {
    min-height: 48px;
    padding-left: 24px;
    padding-right: 24px;
}

/* Footer (alineado a landing) */
footer {
    padding: 26px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: #162641;
}
.footer-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 20px;
    row-gap: 12px;
    width: 100%;
}
.footer-col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: start;
    gap: 5px;
    min-width: 0;
}
@media (min-width: 1025px) {
    footer .container {
        max-width: none;
        width: 100%;
        padding-left: clamp(16px, 4vw, 56px);
        padding-right: clamp(16px, 4vw, 56px);
    }
    .footer-top {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: clamp(12px, 2vw, 28px);
    }
    .footer-col--brand { flex: 0 0 auto; }
    .footer-col--nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }
    .footer-col--aside { flex: 0 0 auto; }
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.footer-brand img {
    height: 64px;
    width: auto;
    object-fit: contain;
}
.footer-col--nav { justify-self: center; }
.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}
.footer-nav__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}
.footer-mail {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.footer-mail:hover { color: rgba(255, 255, 255, 0.92); }
.footer-mail .footer-mail-label {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.footer-nav a:hover { color: rgba(255, 255, 255, 0.96); }
.footer-col--aside {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    text-align: right;
}
.footer-ecosystem {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.32;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.68);
}
.footer-ecosystem__title { margin: 0; color: rgba(255, 255, 255, 0.78); }
.footer-ecosystem__context { margin: 0; color: rgba(255, 255, 255, 0.62); }
.footer-ecosystem__links { margin: 0; }
.footer-ecosystem__links a {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
}
.footer-ecosystem__links a:hover { color: rgba(255, 255, 255, 0.92); }
.footer-ecosystem__links .brand-viamind { color: rgba(34, 211, 238, 0.85); }
.footer-ecosystem__links .brand-viamind:hover { color: rgba(255, 255, 255, 0.96); }
.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
}
.footer-social[hidden] { display: none !important; }
.footer-social a {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.86);
}
.footer-social a svg { width: 20px; height: 20px; display: block; }
.footer-social a[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}
.footer-bottom {
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    letter-spacing: -0.04em;
}
.footer-ecosystem__title .brand-pro,
.footer-bottom .brand-pro {
    color: #F59E0B;
    font-weight: 700;
}
.footer-nav .footer-mail--mobile { display: none; }

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        row-gap: 12px;
    }
    .footer-col--brand {
        align-items: center;
        justify-self: center;
        width: 100%;
    }
    footer .footer-mail.footer-mail--desktop { display: none !important; }
    .footer-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    .footer-nav .footer-mail--mobile {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: 12px;
        letter-spacing: -0.02em;
        color: rgba(255, 255, 255, 0.52);
    }
    .footer-nav .footer-mail--mobile:hover { color: rgba(255, 255, 255, 0.82); }
    .footer-nav .footer-mail--mobile .footer-mail-label {
        color: rgba(255, 255, 255, 0.42);
        font-weight: 500;
    }
    .footer-col--nav {
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }
    .footer-col--aside {
        justify-self: center;
        align-items: center;
        text-align: center;
    }
    .footer-ecosystem { align-items: center; }
    .footer-social { justify-content: center; }
}
@media (min-width: 1025px) {
    .footer-nav .footer-mail--mobile { display: none !important; }
}

@media (max-width: 1024px) {
    .cards { grid-template-columns: 1fr; }
    .cards.cards--4 { grid-template-columns: 1fr; }
    .navbar-center { display: none; }
}

@media (max-width: 720px) {
    .footer-brand img { height: 52px; }
    .footer-nav { gap: 12px; }
    .footer-nav__row { gap: 12px; }
    .footer-nav a { font-size: 15px; }
    .footer-mail { white-space: normal; }
}

@media (max-width: 640px) {
    .brand img { height: 54px; object-fit: contain; }
    .navbar-inner { gap: 12px; }
    .navbar-right { gap: 12px; }
    .navbar-cta { display: none; }
    .nav-link--login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.92);
    }
    .navbar.navbar--compact .navbar-cta {
        display: inline-flex;
        height: 44px;
        padding: 0 14px;
    }
    .navbar.navbar--compact .nav-link--login { display: none; }
}

/* ---- Linking interno: otras guías al final del artículo ---- */
.articulo-otras-guias {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    max-width: 65ch;
}
.articulo-otras-guias__title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.60);
    text-transform: uppercase;
    line-height: 1.3;
}
.articulo-otras-guias__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.articulo-otras-guias__link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}
.articulo-otras-guias__link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}
.articulo-otras-guias__titulo {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    letter-spacing: -0.02em;
    line-height: 1.4;
}
.articulo-otras-guias__desc {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.45;
}

/* ---- Historia NeuraPRO (/historia-neurapro) ---- */

/* Cards expandibles (/historia-neurapro) */
.np-xcard {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.np-xcard:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.20);
}
.np-xcard.is-open {
    border-color: rgba(0, 209, 255, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* Resumen siempre visible */
.np-xcard-summary {
    padding: 24px 28px 20px;
}

/* Número secuencial */
.np-xcard-num {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 8px;
    line-height: 1;
    transition: color 0.18s ease;
}
.np-xcard.is-open .np-xcard-num {
    color: var(--accent);
}

.np-xcard-title {
    margin: 0 0 10px 0;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.96);
    transition: color 0.18s ease;
}
.np-xcard.is-open .np-xcard-title {
    color: #fff;
}
.np-xcard-desc {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    max-width: 58ch;
}

/* Botón toggle */
.np-xcard-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent);
    cursor: pointer;
    line-height: 1;
}
.np-xcard-toggle:hover { text-decoration: underline; }
.np-xcard-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}
.np-xcard-icon::before,
.np-xcard-icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.np-xcard-icon::before { width: 10px; height: 2px; }
.np-xcard-icon::after  { width: 2px;  height: 10px; transition: opacity 0.22s ease; }
.np-xcard.is-open .np-xcard-icon::after { opacity: 0; }

/* Contenido expandible — grid trick para animación sin max-height fijo */
.np-xcard-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.26s ease;
}
.np-xcard-detail.is-open {
    grid-template-rows: 1fr;
}
.np-xcard-detail-inner {
    overflow: hidden;
}
.np-xcard-detail-content {
    padding: 4px 28px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.np-xcard-detail-content p {
    margin: 0 0 13px 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}
.np-xcard-detail-content p:last-of-type {
    margin-bottom: 0;
}
.np-xcard-detail-content ul {
    margin: 0 0 13px 0;
    padding-left: 1.4em;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}
.np-xcard-detail-content ul li { margin-bottom: 6px; }
.np-xcard-detail-content ul li:last-child { margin-bottom: 0; }

/* Frase destacada */
.np-story-highlight {
    margin: 16px 0 !important;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.45 !important;
    letter-spacing: -0.02em;
    color: var(--accent) !important;
}

@media (max-width: 640px) {
    .np-xcard-summary      { padding: 20px 18px 16px; }
    .np-xcard-detail-content { padding: 4px 18px 22px; }
}

/* Link volver al landing */
.historia-back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.46);
    text-decoration: none;
    transition: color 0.15s ease;
}
.historia-back-link:hover {
    color: rgba(255, 255, 255, 0.82);
}

.historia-hero {
    padding-top: 40px;
    padding-bottom: 32px;
    background: var(--hero-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.historia-hero h1 {
    margin: 0 0 12px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.96);
}
.historia-hero p {
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 65ch;
}
.historia-body {
    padding: 56px 0 72px;
}
.historia-reading {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .historia-reading {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.historia-bloque {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.historia-bloque:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.historia-bloque h2 {
    margin: 0 0 20px 0;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.96);
}
.historia-bloque p {
    margin: 0 0 16px 0;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}
.historia-bloque p:last-of-type {
    margin-bottom: 0;
}
.historia-bloque ul {
    margin: 0 0 16px 0;
    padding-left: 1.4em;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}
.historia-bloque ul li {
    margin-bottom: 6px;
}
.historia-bloque ul li:last-child {
    margin-bottom: 0;
}
.historia-bloque strong {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
}
.historia-bloque-cta {
    display: inline-block;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-decoration: none;
}
.historia-bloque-cta:hover {
    text-decoration: underline;
}
.np-trust-block {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}
.np-trust-block h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
}
.np-trust-block p {
    margin: 0 auto 8px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
    max-width: 52ch;
}
.np-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.np-link:hover { text-decoration: underline; }
