/* =========================================================================
   Sindri Global — Blog
   Direccion editorial: cream luxury + gold accents. Fraunces serif dominante.
   ========================================================================= */

:root {
    --bg: #f4f0e6;
    --bg-deep: #ebe3cf;
    --surface: #fbf7ee;
    --surface-2: #ece6d8;
    --border: #d9cfb8;
    --border-2: #c6b894;
    --ink: #142139;
    --text: #1f3057;
    --subtext: #5b6a8a;
    --subtext-2: #7a8499;
    --accent: #1f3057;
    --gold: #c49141;
    --gold-deep: #a07330;
    --gold-soft: #e1b985;
    --gold-light: rgba(196, 145, 65, 0.18);
    --success: #16a34a;
    --warning: #c2680a;
    --danger: #dc2626;
    --gutter: clamp(20px, 4vw, 36px);
    --max-w: 1200px;
    --read-w: 700px;
    --serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

/* === Atmosfera: mesh gradient (off-screen, mismo approach del landing) + grano === */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(60vmax 60vmax at -10vmax 30vh, rgba(196,145,65,.22), transparent 65%),
        radial-gradient(55vmax 55vmax at calc(100% + 10vmax) 70vh, rgba(31,48,87,.13), transparent 65%);
    filter: blur(60px);
    mix-blend-mode: multiply;
    opacity: .55;
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .25;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

::selection { background: var(--gold-light); color: var(--ink); }

/* === Reading progress bar === */
.rp { position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 60%, var(--gold-soft) 100%);
    z-index: 999; transition: width .12s linear;
    box-shadow: 0 1px 6px rgba(196,145,65,.35);
}

/* === Navigation === */
.blog-nav {
    position: sticky; top: 0; z-index: 100;
    height: 80px;
    padding-inline: var(--gutter);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(242, 237, 227, 0.92);
    border-bottom: 1px solid rgba(217,207,184,0.5);
    transition: box-shadow .35s ease, background .35s ease, border-color .35s ease;
}
.blog-nav.scrolled {
    background: rgba(242, 237, 227, 0.97);
    border-bottom-color: rgba(217, 207, 184, 0.7);
    box-shadow: 0 10px 34px -22px rgba(31, 48, 87, 0.45);
}
.nav-inner { max-width: var(--max-w); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; height: 100%; }
.nav-logo-icon { height: 56px; width: auto; max-width: min(280px, 70vw); display: flex; align-items: center; }
.nav-logo-icon img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.nav-logo-text { display: none; }
.nav-links { display: flex; gap: 28px; align-items: center; font-family: var(--sans); font-size: 13.5px; font-weight: 500; letter-spacing: .01em; }
.nav-links a { color: var(--subtext); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
    background: var(--gold); transform: scaleX(0); transform-origin: left center;
    transition: transform .35s cubic-bezier(.2,.9,.3,1);
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); background: var(--gold); }
.nav-links a.nav-cta {
    background: var(--ink);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .01em;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 8px 18px -10px rgba(20,33,57,.55);
    line-height: 1;
    white-space: nowrap;
}
.nav-links a.nav-cta:hover {
    background: #0e1830;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -12px rgba(20,33,57,.7);
}
.nav-links a.nav-cta::after { content: none; }

@media (min-width: 900px) {
    .blog-nav { height: 100px; }
    .nav-logo-icon { height: 72px; max-width: 360px; }
}
@media (max-width: 760px) {
    .blog-nav { height: 72px; }
    .nav-logo-icon { height: 52px; }
    .nav-links { gap: 16px; font-size: 12.5px; }
    .nav-links a:not(.nav-cta):not(.nav-keep) { display: none; }
}

/* === Layout base === */
.blog-wrap { max-width: 920px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.blog-wrap.wide { max-width: 1100px; }
.blog-wrap.read { max-width: calc(var(--read-w) + 80px); }

/* === Breadcrumb === */
.crumb { font-family: var(--sans); font-size: 12px; color: var(--subtext-2); margin-bottom: 24px; letter-spacing: .03em; text-transform: uppercase; }
.crumb a { color: var(--subtext-2); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 8px; color: var(--gold); opacity: .55; }

/* === Decorative rules / ornaments === */
.gold-rule { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); }
.gold-rule::before, .gold-rule::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
.gold-rule.left::before { display: none; }
.gold-rule.left { padding-left: 0; }
.gold-rule.left::after { width: 48px; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 48px 0; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); max-width: 220px; }
.ornament .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-light); }

/* === Blog index hero === */
.blog-hero {
    text-align: left;
    padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 9vw, 110px);
    position: relative;
    max-width: 1100px;
}
@media (min-width: 720px) {
    .blog-hero { text-align: left; }
}

.blog-hero .mark {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .32em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--subtext);
    margin-bottom: 38px;
}
.blog-hero .mark::before {
    content: ""; width: 36px; height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}
.blog-hero h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 9vw, 128px);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.04em;
    line-height: .96;
    margin: 0 0 28px;
    max-width: 16ch;
    font-variation-settings: "opsz" 144;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.blog-hero h1 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
    font-variation-settings: "opsz" 144;
}
.blog-hero .lede {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    font-weight: 400;
    color: var(--subtext);
    line-height: 1.5;
    max-width: 56ch;
    margin: 0;
    font-variation-settings: "opsz" 36;
    text-wrap: balance;
}
/* hero-rule retirada — el ritmo ahora viene del marquee inmediato debajo */

/* === Lista de posts (index) === */
.posts-list {
    display: grid; grid-template-columns: 1fr; gap: 22px;
    margin-top: 30px;
    counter-reset: post;
}
@media (min-width: 720px) { .posts-list { grid-template-columns: 1fr 1fr; gap: 28px; } }

.post-card {
    counter-increment: post;
    position: relative;
    display: block;
    padding: 36px 30px 28px;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(251,247,238,0.6) 100%);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s, border-color .35s;
    overflow: hidden;
    opacity: 0; transform: translateY(14px); animation: cardIn .8s cubic-bezier(.2,.9,.3,1) forwards;
}
.post-card:nth-child(1) { animation-delay: .25s; }
.post-card:nth-child(2) { animation-delay: .38s; }
.post-card:nth-child(3) { animation-delay: .51s; }
.post-card:nth-child(4) { animation-delay: .64s; }
.post-card:nth-child(5) { animation-delay: .77s; }
.post-card:nth-child(6) { animation-delay: .90s; }
@keyframes cardIn { to { opacity: 1; transform: none; } }

/* Cards bajo el fold: blog.js las marca y entran recién cuando el lector
   llega hasta ellas, en vez de animar a pantalla vacía durante la carga. */
.post-card.bj-card-wait { animation: none; opacity: 0; transform: translateY(14px); }
.post-card.bj-card-wait.bj-card-in { animation: cardIn .8s cubic-bezier(.2,.9,.3,1) .06s forwards; }

.post-card::before {
    content: "N° " counter(post, decimal-leading-zero);
    position: absolute; top: 20px; right: 24px;
    font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: 16px; color: var(--gold); letter-spacing: .04em;
    opacity: .85; transition: transform .35s, color .35s;
    font-variation-settings: "opsz" 36;
}
.post-card::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
    transition: width .5s cubic-bezier(.2,.9,.3,1);
}
.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-2);
    box-shadow: 0 24px 50px -28px rgba(20,33,57,.32);
    text-decoration: none;
}
.post-card:hover::before { color: var(--gold-deep); transform: scale(1.05); }
.post-card:hover::after { width: 100%; }

.post-card .pc-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--sans); font-size: 10.5px; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep);
    margin-bottom: 18px;
}
.post-card .pc-eyebrow::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-light);
}
.post-card .pc-title {
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -.5px;
    margin: 0 0 14px;
    font-variation-settings: "opsz" 72;
}
.post-card .pc-title em { font-style: italic; color: var(--gold); font-weight: 500; }
.post-card .pc-desc {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 15.5px; line-height: 1.55; color: var(--subtext);
    margin: 0 0 22px;
    font-variation-settings: "opsz" 24;
}
.post-card .pc-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; border-top: 1px solid var(--border);
    font-family: var(--sans); font-size: 12px; color: var(--subtext-2);
}
.post-card .pc-meta { display: flex; gap: 12px; align-items: center; }
.post-card .pc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card .pc-meta .pc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-2); }
.post-card .pc-read {
    font-family: var(--sans); font-weight: 600; font-size: 12px; color: var(--ink);
    display: inline-flex; align-items: center; gap: 4px;
    text-transform: uppercase; letter-spacing: .12em;
}
.post-card .pc-read::after {
    content: "→"; display: inline-block; transition: transform .25s;
    color: var(--gold); font-weight: 700;
}
.post-card:hover .pc-read::after { transform: translateX(4px); }

/* === Article hero === */
.article-wrap { max-width: calc(var(--read-w) + 80px); margin: 0 auto; padding: 48px var(--gutter) 80px; position: relative; }

.article-hero { position: relative; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
/* Reveals: h1, .mark y .lede los maneja motion.js (data-reveal). Crumb y byline,
   que no llevan atributo, conservan un fade simple para entrar con cadencia. */
.article-hero > .crumb,
.article-hero > .byline { opacity: 0; transform: translateY(10px); animation: heroIn .85s cubic-bezier(.2,.9,.3,1) forwards; }
.article-hero > .crumb  { animation-delay: .05s; }
.article-hero > .byline { animation-delay: 1.0s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.article-hero::before {
    content: ""; position: absolute; top: -10px; right: -30px; width: 220px; height: 220px;
    background: url("/img/simbolo.png") no-repeat center / contain;
    opacity: .05; pointer-events: none; transform: rotate(8deg);
    mix-blend-mode: multiply; z-index: -1;
}

.article-hero .mark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans); font-size: 11px; font-weight: 700;
    letter-spacing: .25em; text-transform: uppercase; color: var(--gold-deep);
    margin-bottom: 24px;
}
.article-hero .mark::after { content: ""; width: 56px; height: 1px; background: var(--gold); opacity: .7; }

.article-hero h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 7vw, 78px);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.035em;
    line-height: .98;
    margin: 0 0 28px;
    font-variation-settings: "opsz" 144;
    text-wrap: balance;
}
.article-hero h1 em {
    font-style: italic; color: var(--gold); font-weight: 500;
    font-variation-settings: "opsz" 144;
}

.article-hero .lede {
    font-family: var(--serif);
    font-style: italic; font-weight: 400;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.55;
    color: var(--subtext);
    margin: 0 0 32px;
    max-width: 60ch;
    font-variation-settings: "opsz" 36;
}

.article-hero .byline { display: flex; align-items: center; gap: 14px; }
.byline-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-deep);
    border: 1px solid var(--border-2);
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px rgba(196,145,65,.18);
}
.byline-avatar img { width: 110%; height: 110%; object-fit: contain; object-position: center; transform: translateY(1px); }
.byline-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.byline-author { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.1px; }
.byline-meta { font-family: var(--sans); font-size: 12.5px; color: var(--subtext); display: flex; gap: 10px; flex-wrap: wrap; }
.byline-meta .sep { color: var(--gold); opacity: .55; }

/* === Article body: editorial reading === */
.post-body {
    font-family: var(--serif);
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "onum" 1;
    font-variation-settings: "opsz" 14;
    font-size: 17.5px;
    line-height: 1.78;
    color: var(--ink);
    max-width: var(--read-w);
    margin: 0 auto;
    font-weight: 400;
}
.post-body > p { margin: 0 0 26px; }

/* Drop cap on first paragraph */
.post-body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 4.6em;
    line-height: .82;
    padding: 8px 14px 0 0;
    color: var(--gold);
    font-style: normal;
    font-variation-settings: "opsz" 144;
}

.post-body h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -.035em;
    line-height: 1.02;
    margin: 72px 0 26px;
    position: relative;
    padding-top: 24px;
    font-variation-settings: "opsz" 120;
    text-wrap: balance;
}
.post-body h2::before {
    content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 1.5px;
    background: var(--gold);
}
.post-body h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.post-body h3 {
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 23px);
    font-weight: 600;
    color: var(--ink);
    margin: 38px 0 14px;
    line-height: 1.25;
    font-variation-settings: "opsz" 48;
}

.post-body ul, .post-body ol { margin: 0 0 28px; padding-left: 26px; }
.post-body li { margin-bottom: 10px; padding-left: 4px; }
.post-body li::marker { color: var(--gold); font-weight: 700; font-family: var(--sans); }
.post-body ol li::marker { font-family: var(--serif); font-style: italic; font-variation-settings: "opsz" 24; }

.post-body strong { color: var(--ink); font-weight: 700; }
.post-body em { font-style: italic; }
.post-body a {
    color: var(--ink);
    text-decoration: none;
    background-image: linear-gradient(90deg, var(--gold), var(--gold));
    background-size: 100% 1.5px;
    background-position: 0 95%;
    background-repeat: no-repeat;
    transition: background-size .25s, color .25s;
}
.post-body a:hover {
    color: var(--gold-deep);
    background-size: 100% 36%;
    background-position: 0 100%;
}

/* Video embebido (subido o YouTube) */
.post-body figure.video-embed { margin: 28px 0; }
.post-body figure.video-embed video { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.post-body figure.video-embed .video-wrap { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: #000; }
.post-body figure.video-embed .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body figure.video-embed figcaption { font-family: 'Inter', sans-serif; font-style: italic; font-size: 13px; color: var(--subtext); margin-top: 10px; text-align: center; }

.post-body code {
    background: var(--surface-2); padding: 2px 8px;
    border: 1px solid var(--border); border-radius: 4px;
    font-size: 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--accent);
    font-feature-settings: "kern" 1;
}

.post-body blockquote {
    margin: 48px -8px; padding: 28px 32px 28px 36px;
    border-left: 3px solid var(--gold);
    background: linear-gradient(105deg, rgba(196,145,65,.06), transparent 70%);
    border-radius: 0 14px 14px 0;
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.45; color: var(--ink);
    font-variation-settings: "opsz" 60;
    position: relative;
    text-wrap: balance;
}
.post-body blockquote::before {
    content: "“"; position: absolute;
    top: -8px; left: 18px;
    font-family: var(--serif);
    font-size: 80px; line-height: 1;
    color: var(--gold);
    opacity: .35;
    font-style: normal;
    font-variation-settings: "opsz" 144;
}
.post-body blockquote p { margin: 0 0 8px; }
.post-body blockquote p:last-child { margin-bottom: 0; }

/* === Callouts: editorial card === */
.callout {
    display: flex; gap: 16px; padding: 20px 22px;
    background: linear-gradient(180deg, var(--surface), rgba(251,247,238,0.4));
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
    margin: 28px 0;
    font-family: var(--serif);
    font-size: 15.5px;
    line-height: 1.6;
    font-variation-settings: "opsz" 18;
}
.callout.warn { border-left-color: var(--warning); background: linear-gradient(180deg, rgba(194,104,10,.06), rgba(251,247,238,0.4)); }
.callout.tip { border-left-color: var(--gold); }
.callout.info { border-left-color: var(--accent); background: linear-gradient(180deg, rgba(31,48,87,.05), rgba(251,247,238,0.4)); }
.callout .ico { font-size: 22px; line-height: 1; flex-shrink: 0; filter: grayscale(.2); }
.callout .body strong { display: block; margin-bottom: 6px; font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-deep); }
.callout p { margin: 0; }

/* === Tablas comparativas === */
.cmp {
    width: 100%; border-collapse: separate; border-spacing: 0;
    margin: 32px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
    font-family: var(--sans);
    font-size: 14px;
    box-shadow: 0 14px 32px -22px rgba(20,33,57,.18);
}
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp th {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    font-weight: 700; color: var(--ink); font-size: 11.5px;
    text-transform: uppercase; letter-spacing: .14em;
}
.cmp tr:last-child td { border-bottom: 0; }
.cmp tr:nth-child(even) td { background: rgba(251,247,238,0.45); }
.cmp td strong { color: var(--ink); }
.cmp .y { color: var(--success); font-weight: 700; }
.cmp .n { color: var(--danger); font-weight: 700; }

/* === Section: Preguntas frecuentes === */
.faq-block { margin-top: 64px; padding-top: 40px; position: relative; }
.faq-block::before {
    content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 80px; height: 1px; background: var(--gold); opacity: .55;
}
.faq-block h2 { margin-top: 0 !important; text-align: center; }
.faq-block h2::before { display: none !important; }

.faq-q {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 12px; overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.faq-q[open] { border-color: var(--border-2); box-shadow: 0 12px 30px -22px rgba(20,33,57,.25); }
.faq-q summary {
    padding: 18px 22px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-variation-settings: "opsz" 36;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
    content: ""; width: 18px; height: 18px;
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all .25s;
}
.faq-q summary::before { display: none; }
.faq-q .summary-mark { position: relative; }
.faq-q .ans {
    padding: 0 22px 20px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--subtext);
    font-variation-settings: "opsz" 18;
}
.faq-q .ans a { color: var(--gold); }

/* === CTA editorial === */
.post-cta {
    margin: 64px auto 0;
    padding: 44px 36px;
    background:
        linear-gradient(135deg, rgba(31,48,87,.04), rgba(196,145,65,.06)),
        var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.post-cta::before {
    content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.post-cta::after {
    content: ""; position: absolute; bottom: 0; left: 30px; right: 30px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.post-cta .cta-mark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans); font-size: 10.5px; font-weight: 700;
    letter-spacing: .25em; text-transform: uppercase; color: var(--gold-deep);
    margin-bottom: 16px;
}
.post-cta .cta-mark::before, .post-cta .cta-mark::after {
    content: ""; width: 22px; height: 1px; background: var(--gold); opacity: .7;
}
.post-cta h3 {
    font-family: var(--serif);
    font-size: clamp(24px, 3.2vw, 30px);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -.5px;
    line-height: 1.15;
    font-variation-settings: "opsz" 72;
}
.post-cta h3 em { font-style: italic; color: var(--gold); }
.post-cta p {
    font-family: var(--serif); font-style: italic;
    color: var(--subtext); margin: 0 auto 24px;
    max-width: 500px; font-size: 16px; line-height: 1.55;
    font-variation-settings: "opsz" 24;
}
.post-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.post-cta .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font-family: var(--sans); font-size: 14px; font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none; transition: all .2s;
    background-image: none !important;
}
.post-cta .btn-primary { background: var(--ink); color: #fff !important; box-shadow: 0 12px 26px -14px rgba(20,33,57,.55); }
.post-cta .btn-primary:hover { background: #0e1830; transform: translateY(-1px); color: #fff !important; }
.post-cta .btn-secondary { background: transparent; color: var(--ink) !important; border: 1px solid var(--border-2); }
.post-cta .btn-secondary:hover { background: var(--surface-2); border-color: var(--gold); color: var(--ink) !important; }

/* === Related posts === */
.related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.related h3 {
    font-family: var(--sans);
    font-size: 12px; font-weight: 700;
    letter-spacing: .25em; text-transform: uppercase; color: var(--gold-deep);
    margin: 0 0 22px; text-align: center;
    display: flex; align-items: center; gap: 14px; justify-content: center;
}
.related h3::before, .related h3::after { content: ""; flex: 0 1 80px; height: 1px; background: var(--gold); opacity: .55; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card {
    display: block;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all .25s;
}
.related-card:hover {
    border-color: var(--border-2);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -20px rgba(20,33,57,.28);
    text-decoration: none;
}
.related-card .rc-tag {
    font-family: var(--sans);
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-deep); margin-bottom: 8px;
    display: inline-flex; align-items: center; gap: 6px;
}
.related-card .rc-tag::before {
    content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.related-card .rc-title {
    font-family: var(--serif); font-weight: 600;
    font-size: 17px; line-height: 1.3; color: var(--ink);
    letter-spacing: -.2px;
    font-variation-settings: "opsz" 36;
}

/* === Footer === */
.blog-foot {
    margin-top: 80px;
    padding: 48px var(--gutter) 32px;
    background: #f2ede3;
    border-top: 1px solid var(--border);
    text-align: center;
    font-family: var(--sans);
    font-size: 13px; color: var(--subtext);
    position: relative;
}
.blog-foot::before { content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%); width: 140px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .75; }
.blog-foot .ff-logo { height: 80px; margin-bottom: 14px; display: inline-flex; align-items: center; justify-content: center; }
.blog-foot .ff-logo img { height: 100%; width: auto; object-fit: contain; }
.blog-foot .ff-tagline {
    font-family: var(--serif); font-style: italic; color: var(--subtext);
    font-size: 14px; margin-bottom: 18px;
    font-variation-settings: "opsz" 18;
}
.blog-foot .ff-links { margin-bottom: 14px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.blog-foot .ff-links a { color: var(--subtext); position: relative; }
.blog-foot .ff-links a:hover { color: var(--ink); text-decoration: none; }
.blog-foot .ff-copy {
    font-size: 11.5px; color: var(--subtext-2);
    letter-spacing: .04em;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin: 18px auto 0;
    max-width: 520px;
}

/* === Byline: monograma del autor + credencial === */
.byline-avatar.author {
    background: linear-gradient(160deg, var(--accent), #142139);
    color: #fff; font-family: var(--serif); font-weight: 600; font-size: 16px;
    letter-spacing: .02em; font-variation-settings: "opsz" 36;
}
.byline-avatar.author img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; transform: none; }
.byline-avatar.has-photo { padding: 0; overflow: hidden; }
.byline-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; transform: none; border-radius: inherit; }
.author-bio-photo.has-photo { overflow: hidden; }
.author-bio-photo.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.byline-author .author-role { color: var(--subtext); font-weight: 400; }
.byline-meta .updated { color: var(--gold-deep); font-weight: 600; }

/* === TL;DR / Standfirst — bloque "En breve" estilo diario === */
.tldr {
    position: relative;
    margin: 0 0 40px;
    padding: 24px 26px 24px 28px;
    background: linear-gradient(180deg, #fbf7ee 0%, rgba(251,247,238,0.55) 100%);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
}
.tldr-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: 10.5px; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep);
    margin-bottom: 14px;
}
.tldr-label::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--gold); position: relative; background:
    radial-gradient(circle at center, var(--gold) 0 2px, transparent 2px); }
.tldr ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tldr li {
    font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink);
    padding-left: 24px; position: relative; margin: 0;
    font-variation-settings: "opsz" 18;
}
.tldr li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 12px; height: 1.5px; background: var(--gold);
}
.tldr li strong { font-weight: 700; }

/* === Pull quote === */
.pullquote {
    margin: 40px 0; padding: 8px 0 8px 26px;
    border-left: 3px solid var(--gold);
    font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; color: var(--ink);
    letter-spacing: -.3px;
    font-variation-settings: "opsz" 60;
}
.pullquote cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; font-weight: 600; font-family: var(--sans); color: var(--gold-deep); letter-spacing: .02em; }

/* === Author bio (al final del artículo) === */
.author-bio {
    margin-top: 56px; padding: 28px;
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    position: relative;
}
.author-bio::before {
    content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.author-bio-photo {
    width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(160deg, var(--accent), #142139);
    border: 1px solid var(--border-2);
    box-shadow: 0 0 0 4px rgba(196,145,65,.16);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--serif); font-weight: 600; font-size: 28px;
    font-variation-settings: "opsz" 48;
}
.author-bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-body { flex: 1; min-width: 0; }
.author-bio-kicker { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.author-bio-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.3px; margin-bottom: 2px; font-variation-settings: "opsz" 48; }
.author-bio-role { font-family: var(--sans); font-size: 13px; color: var(--gold-deep); font-weight: 600; margin-bottom: 12px; }
.author-bio-text { font-family: var(--serif); font-size: 15.5px; line-height: 1.65; color: var(--subtext); font-variation-settings: "opsz" 18; }
.author-bio-text strong { color: var(--ink); font-weight: 600; }

/* === Footer del artículo: fecha de actualización + compartir === */
.article-footnote {
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    font-family: var(--sans); font-size: 12.5px; color: var(--subtext-2);
}
.article-footnote .updated-stamp { display: inline-flex; align-items: center; gap: 7px; }
.article-footnote .updated-stamp b { color: var(--ink); font-weight: 600; }
.article-share { display: flex; gap: 8px; align-items: center; }
.article-share span { color: var(--subtext-2); font-weight: 600; }
.article-share a {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--subtext);
    transition: all .2s;
}
.article-share a:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.article-share a svg { width: 15px; height: 15px; }

/* === Responsive tweaks === */
@media (max-width: 720px) {
    .blog-wrap { padding: 32px var(--gutter) 56px; }
    .blog-hero { padding: 28px 0 36px; }
    .blog-hero .mark { margin-bottom: 22px; font-size: 10px; letter-spacing: .26em; }
    .blog-hero h1 { margin-bottom: 22px; max-width: 100%; }
    .blog-hero .lede { font-size: 17px; }
    .article-wrap { padding: 32px var(--gutter) 60px; }
    .article-hero::before { width: 140px; height: 140px; right: -20px; opacity: .04; }
    .article-hero h1 { margin-bottom: 22px; }
    .post-card { padding: 28px 22px 22px; }
    .post-card::before { font-size: 14px; top: 16px; right: 18px; }
    .post-body { font-size: 16.5px; line-height: 1.75; }
    .post-body > p:first-of-type::first-letter { font-size: 4em; padding-right: 10px; }
    .cmp { font-size: 13px; }
    .cmp th, .cmp td { padding: 11px 12px; }
    .post-cta { padding: 32px 22px; }
    .tldr { padding: 20px 20px 20px 22px; }
    .tldr li { font-size: 15px; }
    .author-bio { flex-direction: column; gap: 14px; padding: 22px; }
    .article-footnote { flex-direction: column; align-items: flex-start; gap: 16px; }
}
/* === Reveals editoriales (blog.js) ===
   Solo blog.js agrega .bj-reveal, así que sin JS nada queda oculto. */
.bj-reveal { opacity: 0; transform: translateY(16px); transition: opacity .75s cubic-bezier(.2,.9,.3,1), transform .75s cubic-bezier(.2,.9,.3,1); }
.bj-reveal.bj-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .blog-hero > *, .article-hero > *, .post-card { opacity: 1 !important; transform: none !important; animation: none !important; }
    .bj-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ================================================================
   MODO OSCURO — superficies cream hardcodeadas del blog/legales.
   (Las variables las flipea motion.css.)
   ================================================================ */
html[data-theme="dark"] .blog-nav { background: rgba(14, 20, 32, .9); border-bottom-color: var(--border); }
html[data-theme="dark"] .blog-nav.scrolled { background: rgba(12, 17, 28, .96); }
html[data-theme="dark"] .tldr { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }

/* El boton CTA usa background: var(--ink) + texto blanco. En oscuro --ink se
   vuelve CLARO (lo usamos para titulos), asi que el boton quedaba blanco con
   texto blanco = ilegible. Lo pasamos a DORADO con texto oscuro: premium y
   on-brand, ademas resalta como accion principal. */
html[data-theme="dark"] .nav-links a.nav-cta {
    background: linear-gradient(135deg, var(--gold-hover), var(--gold));
    color: #1c1304;
    box-shadow: 0 8px 20px -10px rgba(212, 163, 82, .55);
}
html[data-theme="dark"] .nav-links a.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1c1304;
    box-shadow: 0 12px 26px -12px rgba(212, 163, 82, .7);
}

/* Tarjetas del blog en oscuro: el segundo stop del gradiente estaba
   hardcodeado en cream (se veia turbio) y --surface quedaba muy pegado al
   fondo de la pagina (poco contraste). Las levantamos a un dark mas claro
   con un sutil top-light, y subimos el contraste del texto pequeno. */
html[data-theme="dark"] .post-card {
    background: linear-gradient(180deg, #1b2334 0%, #141b29 100%);
    border-color: #2a3447;
}
html[data-theme="dark"] .post-card:hover {
    border-color: rgba(212, 163, 82, .42);
    box-shadow: 0 28px 56px -26px rgba(0, 0, 0, .65);
}
/* Extracto en italica: de --subtext (tenue) a un gris-azul mas legible. */
html[data-theme="dark"] .post-card .pc-desc { color: #c3cfe4; }
/* Pie / meta: borde y texto con mas presencia. */
html[data-theme="dark"] .post-card .pc-foot { border-top-color: #2a3447; color: #aebbd4; }
html[data-theme="dark"] .post-card .pc-meta .pc-dot { background: #4a5876; }
/* El N° de la esquina y el "Leer" siguen en gold/ink-claro via variables. */
html[data-theme="dark"] .post-card .pc-read { color: var(--ink); }
/* Lede del hero del blog, tambien un punto mas legible en oscuro. */
html[data-theme="dark"] .blog-hero .lede, html[data-theme="dark"] .article-hero .lede { color: #b9c6dd; }
