/* Fuentes originales Google Fonts, SIL OFL; solo recursos. Fuentes y licencias: assets/fonts/. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/playfair-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/playfair-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Capa editorial: reutiliza los tokens de Studio32, sin animaciones ni CDN. */
.pagina-resource { cursor: auto; }
.pagina-resource .nav-btn { display: inline-flex; }
.pagina-resource .resource-hero { padding-bottom: clamp(32px, 5vh, 64px); }
.resource-hero h1 { max-width: 19ch; font-size: clamp(2.4rem, 5.2vw, 4.7rem); line-height: 1.08; }
.resource-hero .vertical-entrada { max-width: 68ch; margin-bottom: 20px; }
.resource-review { font-size: .78rem; color: var(--text-muted); }
.resource-main { padding-bottom: 80px; }
.resource-layout { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.resource-body { min-width: 0; }
.resource-toc { position: sticky; top: 112px; padding: 32px 0; border-top: 1px solid var(--border-strong); }
.resource-toc a { display: block; margin-top: 16px; font-size: .86rem; line-height: 1.5; color: var(--text-muted); text-decoration: none; }
.resource-toc a:hover { color: var(--accent-color); }
.resource-section { padding: 40px 0; border-top: 1px solid var(--border-strong); scroll-margin-top: 110px; }
.resource-section h2 { font-family: var(--font-heading); font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1.2; margin-bottom: 24px; font-weight: 600; }
.resource-section h3 { font-family: var(--font-heading); font-size: 1.4rem; margin: 16px 0; }
.resource-section p, .resource-section li { max-width: 72ch; font-size: 1rem; line-height: 1.85; color: var(--text-muted); }
.resource-section p + p { margin-top: 20px; }
.resource-section a { color: var(--accent-deep); text-underline-offset: 4px; }
.resource-section ul { padding-left: 22px; margin-top: 24px; }
.resource-section li + li { margin-top: 12px; }
.resource-flow { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; }
.resource-flow li { counter-increment: step; flex: 1 1 135px; padding: 16px; border: 1px solid var(--border-strong); background: var(--bg-warm); line-height: 1.5; font-size: .84rem; }
.resource-flow li + li { margin-top: 0; }
.resource-flow li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent-color); font-size: .7rem; margin-bottom: 10px; }
.resource-table { overflow: auto; margin-top: 28px; border: 1px solid var(--border-strong); }
.resource-table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .87rem; line-height: 1.6; }
.resource-table caption { text-align: left; padding: 14px 18px; color: var(--text-muted); font-size: .75rem; }
.resource-table th, .resource-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.resource-table thead { background: var(--bg-warm); }
.resource-table tbody th { font-weight: 500; }
.resource-example { margin-top: 28px; padding: 24px; border-left: 2px solid var(--accent-color); background: var(--bg-warm); }
.resource-example p:first-child { font-size: .78rem; color: var(--accent-deep); }
.resource-sources li { font-size: .87rem; overflow-wrap: anywhere; }
.resource-sources li span { display: block; font-size: .76rem; }
.resource-related, .resource-cta { margin-top: 32px; }
.resource-links { display: grid; }
.resource-links a { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text-color); line-height: 1.5; }
.resource-links a:hover { color: var(--accent-color); }
.resource-links a > span:last-child { color: var(--accent-color); }
.resource-directory a { padding: 32px 0; }
.resource-directory strong { display: block; font-family: var(--font-heading); font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 600; }
.resource-directory small { display: block; max-width: 70ch; color: var(--text-muted); font-size: .9rem; margin-top: 12px; line-height: 1.75; }
.resource-footer { padding: 48px 0; background: var(--bg-warm); border-top: 1px solid var(--border); }
.resource-footer nav { display: flex; gap: 18px 28px; flex-wrap: wrap; margin: 24px 0; }
.resource-footer a { font-size: .86rem; color: var(--text-muted); text-decoration: none; }
.resource-footer p { font-size: .75rem; color: var(--text-muted); }
.calculator-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; max-width: 860px; }
.calculator-field label { display: block; color: var(--text-color); font-size: .87rem; margin-bottom: 10px; line-height: 1.5; }
.calculator-field input { width: 100%; background: var(--surface); color: var(--text-color); padding: 14px 16px; font: inherit; border: 1px solid var(--border-strong); border-radius: 0; }
.calculator .hero-cta { cursor: pointer; font: inherit; }
#calculator-error { color: var(--accent-deep); margin-top: 16px; }
.calculator-result { margin-top: 32px; padding: clamp(22px, 4vw, 48px); background: var(--bg-warm); border: 1px solid var(--border-strong); }
.calculator-result[hidden] { display: none; }
.calculator-result .calculator-amount { color: var(--text-color); font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.7rem); margin: 24px 0; line-height: 1.2; }
.calculator-amount span { font-family: var(--font-body); font-size: .9rem; }
.calculator-result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 28px; }
.calculator-result dt { color: var(--text-muted); font-size: .83rem; margin-bottom: 8px; }
.calculator-result dd { color: var(--text-color); font-size: 1.1rem; }
.calculator-result .hero-link { display: inline-block; margin-top: 20px; }
.calculator-result .section-label { font-size: .65rem; letter-spacing: .10em; }
@media (max-width: 800px) {
  .resource-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .resource-toc { position: static; padding-bottom: 24px; }
  .resource-toc a { margin-top: 12px; }
}
@media (max-width: 540px) {
  .pagina-resource .nav-inner { gap: 16px; }
  .pagina-resource .nav-link { display: none; }
  .pagina-resource .nav-btn { font-size: .72rem; padding: 10px 12px; }
  .pagina-resource .logo-sub { display: none; }
  .calculator-inputs, .calculator-result dl { grid-template-columns: 1fr; }
  .resource-hero h1 { max-width: 100%; overflow-wrap: break-word; }
  .resource-section { padding: 30px 0; }
  .resource-footer nav { flex-direction: column; }
  .calculator-amount output { overflow-wrap: anywhere; }
}
