/* ============================================================
   Fraserte — Guía del propietario
   Misma familia tipográfica y misma paleta que el resto de la web.
   Pensada para lectura larga: medida corta, jerarquía por peso.
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --clay: #C4826A;
  --clay-btn: #A85F42;
  --clay-btn-h: #8E4E35;
  --clay-bg: #F5EDE8;
  --sage: #7A9E8E;
  --sage-btn: #4F7565;
  --sage-bg: #EEF4F1;
  --wa-btn: #0D7C3F;
  --warm: #FDFAF5;
  --beige: #F0E8DC;
  --stone: #C8BDB4;
  --ink: #2B2520;
  --ink-md: #4A403A;
  --ink-lt: #857A74;
  --white: #FFFFFF;
  --line: rgba(200,189,180,0.38);
  --shadow: 0 4px 30px rgba(43,37,32,0.07);
  --shadow-lg: 0 20px 60px rgba(43,37,32,0.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--warm);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--clay-btn); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.8rem 1.2rem; z-index: 2000; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.18; text-wrap: balance; font-weight: 700; }

/* ---------- barra superior ---------- */
.topnav { position: sticky; top: 0; z-index: 100; background: rgba(253,250,245,0.94); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.topnav .wrap { max-width: 1180px; margin: 0 auto; padding: 0.85rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.topnav .brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.topnav .brand svg { height: 40px; width: auto; display: block; }
.topnav nav { display: flex; gap: 1.5rem; align-items: center; }
.topnav nav a { color: var(--ink-md); text-decoration: none; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.topnav nav a:hover { color: var(--clay-btn); }
.topnav .cta { background: var(--clay-btn); color: #fff !important; padding: 0.6rem 1.3rem; border-radius: 50px; font-weight: 600; font-size: 0.83rem; }
.topnav .cta:hover { background: var(--clay-btn-h); }
@media (max-width: 820px) { .topnav nav a:not(.cta) { display: none; } }

/* ---------- cabecera del artículo ---------- */
.artwrap { max-width: 1180px; margin: 0 auto; padding: 0 1.6rem; }
.crumbs { font-size: 0.78rem; color: var(--ink-lt); padding: 2rem 0 0; }
.crumbs a { color: var(--ink-lt); text-decoration: none; }
.crumbs a:hover { color: var(--clay-btn); text-decoration: underline; }
.arthead { max-width: 760px; padding: 1.4rem 0 2.4rem; }
.cat { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--clay-btn); background: var(--clay-bg); padding: 0.32rem 0.85rem; border-radius: 50px; margin-bottom: 1.2rem; }
.arthead h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.04em; margin-bottom: 1.1rem; }
.standfirst { font-size: 1.13rem; color: var(--ink-md); line-height: 1.8; max-width: 66ch; }
.meta { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; font-size: 0.8rem; color: var(--ink-lt); margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--stone); }

/* ---------- cuerpo a dos columnas ---------- */
.artgrid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; align-items: start; padding-bottom: 4rem; }
/* min-width:auto de los grid items: sin esto, una tabla ancha dentro de
   .prose ensancha la columna y toda la página desborda en móvil. */
.artgrid > * { min-width: 0; }
.prose { max-width: 72ch; font-size: 1.02rem; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-top: 3.2rem; padding-top: 0.4rem; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.16rem; margin-top: 2.2rem; font-weight: 650; scroll-margin-top: 90px; }
.prose p { color: var(--ink-md); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-md); }
.prose li + li { margin-top: 0.55rem; }
.prose li::marker { color: var(--clay); }
.prose a { color: var(--clay-btn); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--clay-btn-h); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* dato destacado */
.figure-key { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 0 14px 14px 0; padding: 1.4rem 1.6rem; }
.figure-key b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; color: var(--clay-btn); line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure-key span { font-size: 0.9rem; color: var(--ink-md); display: block; margin-top: 0.35rem; }

/* aviso / matiz */
.callout { background: var(--sage-bg); border: 1px solid rgba(122,158,142,0.28); border-radius: 14px; padding: 1.4rem 1.6rem; font-size: 0.95rem; color: var(--ink-md); }
.callout b { color: var(--ink); }
.callout.warn { background: #FDF6EC; border-color: rgba(184,118,10,0.25); }

/* tablas de datos */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 0.85rem 1.1rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; white-space: normal; }
table.data thead th { font-size: 0.68rem; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: var(--ink-lt); background: var(--warm); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tr.tot td { font-weight: 700; background: var(--clay-bg); border-top: 2px solid rgba(196,130,106,0.4); color: var(--ink); }
table.data .pos { color: #2F7A57; font-weight: 600; }
table.data .neg { color: #B4413C; font-weight: 600; }
.tbl-note { font-size: 0.78rem; color: var(--ink-lt); margin-top: 0.7rem; line-height: 1.6; }

/* índice lateral */
.aside { position: sticky; top: 84px; font-size: 0.85rem; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; }
.toc h4 { font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-lt); margin-bottom: 0.9rem; font-weight: 700; }
.toc ol { list-style: none; display: grid; gap: 0.6rem; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { color: var(--ink-md); text-decoration: none; display: flex; gap: 0.6rem; line-height: 1.45; font-size: 0.84rem; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--stone); font-variant-numeric: tabular-nums; font-weight: 600; flex-shrink: 0; }
.toc a:hover { color: var(--clay-btn); }
.aside-cta { background: var(--ink); color: var(--warm); border-radius: 16px; padding: 1.5rem; margin-top: 1.2rem; }
.aside-cta b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.aside-cta p { font-size: 0.83rem; color: rgba(253,250,245,0.68); line-height: 1.6; margin: 0.5rem 0 1.1rem; }
.aside-cta a { display: block; text-align: center; background: var(--wa-btn); color: #fff; text-decoration: none; padding: 0.7rem; border-radius: 10px; font-size: 0.83rem; font-weight: 600; }
.aside-cta a:hover { background: #0A6633; }
@media (max-width: 980px) { .artgrid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; } .aside { position: static; max-width: 560px; } }

/* cierre comercial */
.endcta { background: var(--ink); color: var(--warm); border-radius: 22px; padding: 2.6rem; margin-top: 3.4rem; }
.endcta h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: #fff; margin-bottom: 0.8rem; }
.endcta p { color: rgba(253,250,245,0.72); font-size: 0.96rem; margin-bottom: 1.6rem; max-width: 60ch; }
.endcta .row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.endcta .b { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: 50px; font-size: 0.87rem; font-weight: 600; text-decoration: none; }
.endcta .b1 { background: var(--wa-btn); color: #fff; }
.endcta .b1:hover { background: #0A6633; }
.endcta .b2 { border: 1.5px solid rgba(253,250,245,0.3); color: var(--warm); }
.endcta .b2:hover { border-color: var(--clay); color: var(--clay-lt, #D4A090); }
.endcta .b svg { width: 17px; height: 17px; fill: currentColor; }

/* fuentes */
.sources { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-lt); }
.sources h4 { font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.8rem; color: var(--ink-lt); }
.sources ul { list-style: none; display: grid; gap: 0.45rem; padding: 0; }
.sources a { color: var(--ink-lt); }

/* siguientes lecturas */
.more { background: var(--beige); padding: 3.5rem 0; }
.more h3 { font-size: 1.5rem; margin-bottom: 1.8rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: all 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(196,130,106,0.42); }
.card .cat { font-size: 0.6rem; padding: 0.25rem 0.7rem; margin-bottom: 0.85rem; align-self: flex-start; }
.card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.32; }
.card p { font-size: 0.83rem; color: var(--ink-lt); line-height: 1.65; flex-grow: 1; }
.card .go { font-size: 0.78rem; color: var(--clay-btn); font-weight: 600; margin-top: 0.9rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- índice del blog ---------- */
.hub-hero { background: var(--beige); padding: 4.5rem 0 3.5rem; }
.hub-hero .lead { max-width: 720px; }
.hub-hero .eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--clay-btn); display: block; margin-bottom: 1rem; }
.hub-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.04em; margin-bottom: 1.1rem; }
.hub-hero p { font-size: 1.1rem; color: var(--ink-md); line-height: 1.8; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2.2rem 0 0; }
.filters button { background: var(--white); border: 1.5px solid var(--line); border-radius: 50px; padding: 0.5rem 1.2rem; font-family: var(--font); font-size: 0.82rem; font-weight: 500; color: var(--ink-md); cursor: pointer; transition: all 0.25s; }
.filters button:hover { border-color: var(--clay-btn); color: var(--clay-btn); }
@media (max-width: 820px) { .filters button { min-height: 44px; padding: 0.65rem 1.2rem; } .topnav .cta { min-height: 44px; display: inline-flex; align-items: center; } }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--warm); }
.hub-list { padding: 3.5rem 0 4.5rem; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-feat { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--ink); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--warm); margin-bottom: 0.6rem; }
.hub-feat .txt { padding: 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.hub-feat .cat { background: rgba(196,130,106,0.2); color: #D4A090; }
.hub-feat h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; margin-bottom: 0.8rem; }
.hub-feat p { color: rgba(253,250,245,0.7); font-size: 0.95rem; }
.hub-feat .go { color: #D4A090; font-weight: 600; font-size: 0.85rem; margin-top: 1.3rem; }
.hub-feat .pic { min-height: 280px; }
.hub-feat .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .hub-feat { grid-template-columns: 1fr; } .hub-feat .pic { min-height: 190px; order: -1; } .hub-feat .txt { padding: 1.8rem; } }

/* ---------- pie ---------- */
footer.site { background: var(--ink); color: rgba(253,250,245,0.55); padding: 3.2rem 0 2rem; font-size: 0.85rem; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(253,250,245,0.12); }
footer.site svg { height: 40px; margin-bottom: 0.9rem; }
footer.site h4 { color: var(--warm); font-size: 0.72rem; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
footer.site a { color: rgba(253,250,245,0.6); text-decoration: none; display: block; margin-bottom: 0.55rem; }
footer.site a:hover { color: var(--clay); }
footer.site .bot { padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; gap: 1.6rem; } }

.wa-float { position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px; background: var(--wa-btn); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 30px rgba(13,124,63,0.35); z-index: 900; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 768px) { .wa-float { bottom: 1.4rem; right: 1.4rem; width: 50px; height: 50px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* El blog carga site.js por el banner de cookies. site.js pinta una sombra al
   hacer scroll sobre el primer <nav> de la página, que aquí es el de dentro de
   la cabecera y no la cabecera entera: se neutraliza para que no aparezca un
   recuadro con sombra alrededor de los enlaces. */
header.topnav nav { box-shadow: none !important; }

/* El banner de consentimiento lo inyecta site.js con su propio <style>;
   aquí solo se le impide colarse en cualquier impresión o PDF. */
@media print { #fr-cookies { display: none !important; } }
