/* Web C · la profundidad cristalina de A con la arquitectura editorial de B. */
html[data-global-font-level="xxsmall"] body.theme-c { font-size: 11.9px; }
html[data-global-font-level="xsmall"] body.theme-c { font-size: 13.6px; }
html[data-global-font-level="small"] body.theme-c { font-size: 16.15px; }
html[data-global-font-level="default"] body.theme-c { font-size: 18.7px; }
html[data-global-font-level="large"] body.theme-c { font-size: 21.25px; }
html[data-global-font-level="xlarge"] body.theme-c { font-size: 23.8px; }
html[data-global-font-level="xxlarge"] body.theme-c { font-size: 26.35px; }

.theme-c {
  --c-deep: #061421;
  --c-navy: #0b2943;
  --c-blue: #17486a;
  --c-glass: rgba(255, 255, 255, .075);
  --c-glass-strong: rgba(255, 255, 255, .11);
  --c-line: rgba(215, 238, 251, .25);
  --c-paper: rgba(249, 252, 255, .975);
  --c-paper-soft: #edf5f9;
  --c-ink: #17283b;
  --c-muted: #627388;
  --c-light: #eef8fd;
  --c-accent: #e76d45;
  --paper: var(--c-paper);
  --paper-deep: #dfeaf0;
  --ink: var(--c-ink);
  --muted: var(--c-muted);
  --line: #cadbe4;
  --white: #fff;
  --forest: #103b59;
  --copper: var(--c-accent);
  --copper-dark: #b74b2b;
  --blue: var(--c-blue);
  --serif: var(--font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  --sans: var(--font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  --shadow: 0 28px 70px rgba(0, 8, 18, .28);
  min-height: 100%;
  background:
    radial-gradient(circle at 84% 7%, rgba(52, 139, 184, .34), transparent 31rem),
    radial-gradient(circle at 8% 68%, rgba(231, 109, 69, .13), transparent 28rem),
    linear-gradient(145deg, #061522 0%, #0d2d49 52%, #071a2d 100%);
  background-attachment: fixed;
  color: var(--c-light);
}

.theme-c :focus-visible {
  outline-color: rgba(231, 109, 69, .8);
}

.theme-c .skip-link { background: #fff; color: var(--c-ink); }

/* Cabecera funcional de B, tratada con la plástica de A. */
.theme-c header.site-header {
  border-bottom: 1px solid rgba(214, 237, 250, .16);
  background: rgba(3, 12, 21, .93);
  color: var(--c-light);
  box-shadow: 0 8px 28px rgba(0, 5, 12, .16);
  backdrop-filter: blur(18px);
}

.theme-c .header-inner { min-height: 62px; }
.theme-c .brand,
.theme-c .brand-name { color: #fff; }
.theme-c .brand-name { font-family: var(--sans); font-size: 1.2rem; letter-spacing: -.035em; }
.theme-c .brand-dot { color: var(--c-accent); }
.theme-c .nav-link,
.theme-c .header-link { color: #dceaf2; }
.theme-c .nav-link:hover,
.theme-c .nav-link[aria-current="page"],
.theme-c .header-link:hover { color: #fff; }
.theme-c .nav-link[aria-current="page"] { box-shadow: inset 0 -2px var(--c-accent); }
.theme-c .subscribe-link { border-color: var(--c-line); background: rgba(255, 255, 255, .055); }
.theme-c .subscribe-link:hover { border-color: #fff; background: #fff; color: var(--c-ink); }
.theme-c .lang-switch { color: rgba(215, 238, 251, .28); }
.theme-c .lang-link { color: #9fb9c8; }
.theme-c .lang-link.is-active { color: #fff; }
.theme-c .menu-toggle { color: #fff; }
.theme-c .mobile-panel {
  border-bottom: 1px solid var(--c-line);
  background: rgba(6, 20, 33, .985);
  color: var(--c-light);
}
.theme-c .mobile-nav a,
.theme-c .mobile-action,
.theme-c .mobile-language a { color: var(--c-light); }
.theme-c .mobile-action--accent { color: #fff; }

/* Control global de lectura: visible en todas las páginas C. */
.theme-c-reader-toolbar {
  position: sticky;
  z-index: 990;
  top: 62px;
  border-bottom: 1px solid rgba(215, 238, 251, .2);
  background: rgba(9, 35, 58, .96);
  color: #eef8fd;
  box-shadow: 0 8px 22px rgba(0, 8, 18, .13);
  backdrop-filter: blur(16px);
}
.theme-c-reader-toolbar__inner { display: flex; min-height: 44px; align-items: center; justify-content: flex-end; gap: 14px; }
.theme-c-reader-toolbar__label { color: #bdd1de; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.theme-c .site-reader-toolbar__value { color: #fff; }
.theme-c-reader-toolbar__actions { display: flex; align-items: center; gap: 6px; }
.theme-c-reader-toolbar button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(215, 238, 251, .38);
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  color: #f4f9fc;
  cursor: pointer;
  font-size: .78rem;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.theme-c-reader-toolbar button:hover,
.theme-c-reader-toolbar button.is-active { border-color: var(--c-accent); background: rgba(231, 109, 69, .18); color: #fff; transform: translateY(-1px); }
.theme-c-reader-toolbar button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

/* Portada A + funciones B. */
.theme-c .hero {
  padding-block: clamp(34px, 4.5vw, 58px);
  background: transparent;
}
.theme-c .hero::after {
  z-index: 0;
  border-color: rgba(155, 218, 244, .16);
}
.theme-c .hero-grid { position: relative; z-index: 1; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); }
.theme-c .hero-grid > div:first-child {
  padding: clamp(26px, 3.2vw, 42px);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .082), rgba(255, 255, 255, .025));
  box-shadow: 0 28px 70px rgba(0, 8, 18, .24);
  backdrop-filter: blur(14px);
}
.theme-c .hero .kicker { max-width: 66ch; color: #a9c8d9; line-height: 1.55; }
.theme-c .hero h1 {
  max-width: none;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(2.7rem, 5.2vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .95;
}
.theme-c-hero-lines { display: grid; gap: 3px; margin-top: 24px; }
.theme-c-hero-lines p { margin: 0; color: #f2f8fb; font-size: clamp(1.05rem, 1.45vw, 1.24rem); line-height: 1.48; }
.theme-c .hero-copy { margin-top: 18px; color: #acc1cf; font-size: 1rem; }
.theme-c .hero-actions { margin-top: 28px; }
.theme-c .button {
  border-color: rgba(219, 239, 250, .34);
  background: rgba(255, 255, 255, .06);
  color: #f3f8fb;
}
.theme-c .button:hover { border-color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .13); color: #fff; }
.theme-c .button--solid,
.theme-c button[type="submit"] { border-color: #fff; background: #fff; color: #10263a; }
.theme-c .button--solid:hover,
.theme-c button[type="submit"]:hover { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.theme-c .portrait-wrap { padding: 0; }
.theme-c .portrait-wrap::before { display: none; }
.theme-c .portrait-frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 24px;
  background: #0b2032;
  box-shadow: 0 34px 80px rgba(0, 8, 18, .45), 0 0 0 8px rgba(255, 255, 255, .035);
}
.theme-c .portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; filter: saturate(.88) contrast(1.03); }
.theme-c .portrait-caption {
  right: -12px;
  bottom: -14px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: rgba(6, 20, 33, .94);
  color: #dceaf2;
  font-family: var(--sans);
}
.theme-c .hero-stats { margin-top: 30px; border-color: var(--c-line); }
.theme-c .stat + .stat { border-color: var(--c-line); }
.theme-c .stat strong { color: #fff; font-family: var(--sans); font-weight: 650; }
.theme-c .stat span { color: #a9c2d2; }

/* Ritmo global y secciones. */
.theme-c .section,
.theme-c .page-hero { border-color: rgba(215, 238, 251, .15); background: transparent; }
.theme-c .section { padding-block: clamp(54px, 6vw, 84px); }
.theme-c .section--white { background: rgba(255, 255, 255, .035); }
.theme-c .section--forest { background: rgba(12, 48, 75, .72); border-block: 1px solid var(--c-line); }
.theme-c .section--ink { background: rgba(2, 12, 22, .7); }
.theme-c .section-title,
.theme-c .section--white .section-title,
.theme-c .page-hero h1 { color: #f7fbfd; font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; }
.theme-c .section-title { font-size: clamp(2.05rem, 3.8vw, 3.7rem); }
.theme-c .section-number,
.theme-c .kicker { color: #f19a7c; }
.theme-c .section-intro,
.theme-c .page-hero-copy { color: #bdd1de; }
.theme-c .text-link { color: #eef8fd; }
.theme-c .text-link:hover { color: #fff; }

/* Tarjetas claras, un rasgo central de A. */
.theme-c .recent-item,
.theme-c .series-card,
.theme-c .topic-card,
.theme-c .connection-card,
.theme-c .series-overview-card,
.theme-c .related-card,
.theme-c .bio-block,
.theme-c .cv-education article,
.theme-c .cv-project-card,
.theme-c .cv-project-item,
.theme-c .cv-scope-panel,
.theme-c .cv-disclosure,
.theme-c .legal-section,
.theme-c .legal-notice,
.theme-c .community-auth-card,
.theme-c .community-confirm-card,
.theme-c .community-principles,
.theme-c .contact-panel,
.theme-c .search-result-card {
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 24px 68px rgba(0, 7, 16, .25), 0 0 0 6px rgba(255, 255, 255, .022);
}
.theme-c .recent-item { margin-bottom: 14px; padding: 22px; border-bottom: 1px solid rgba(255, 255, 255, .72); }
.theme-c .recent-item h3,
.theme-c .series-card h3,
.theme-c .topic-card h3,
.theme-c .connection-card h3,
.theme-c .series-overview-card h2,
.theme-c .related-card h3,
.theme-c .bio-block h2,
.theme-c .cv-education h3,
.theme-c .cv-project-card h3,
.theme-c .contact-panel h2,
.theme-c .cv-project-summary-copy strong { color: #17324a; font-family: var(--sans); }
.theme-c .recent-item p,
.theme-c .series-card p,
.theme-c .topic-card p,
.theme-c .cv-project-card p,
.theme-c .cv-project-summary-copy small { color: #627388; }
.theme-c .contact-panel p,
.theme-c .contact-form label { color: #354a5b; }
.theme-c .contact-form .privacy-note { color: #627388; }
.theme-c .contact-panel .button {
  border-color: #8ba2b2;
  background: transparent;
  color: #17324a;
}
.theme-c .contact-panel .button:hover { border-color: var(--c-accent); background: #fff3ed; color: #17324a; }
.theme-c .contact-form .button--solid {
  border-color: #10263a;
  background: #10263a;
  color: #fff;
}
.theme-c .contact-form .button--solid:hover { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }

.theme-c .lead-story {
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 75, 108, .92), rgba(6, 29, 48, .98));
  box-shadow: var(--shadow);
}
.theme-c .story-content h3 { font-family: var(--sans); }
.theme-c .lead-story { min-height: 460px; }
.theme-c .story-content h3 { font-size: clamp(2.3rem, 4.2vw, 4.05rem); }
.theme-c .series-card { min-height: 270px; padding: 26px; }
.theme-c .series-state { border-color: #c8dce7; background: #e9f3f8; color: #26465e; }
.theme-c .series-card h3 { margin-top: 34px; font-size: clamp(1.75rem, 2.5vw, 2.65rem); }
.theme-c .progress-line { background: #d7e7ee; }
.theme-c .progress-line span { background: linear-gradient(90deg, var(--c-accent), #ed956f); }
.theme-c .progress-label { color: #627388; }
.theme-c .topic-card { min-height: 225px; padding: 25px; }
.theme-c .topic-card h3 { margin-top: 36px; font-size: 1.8rem; }
.theme-c .topic-card:hover,
.theme-c .series-card:hover,
.theme-c .recent-item:hover { border-color: rgba(255, 255, 255, .95); box-shadow: 0 30px 78px rgba(0, 7, 16, .35); }

.theme-c .archive-year { color: var(--c-accent); font-size: clamp(4.8rem, 10.5vw, 8.5rem); }
.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 4vw, 3.75rem); }
.theme-c .archive-copy p { color: #bdd1de; }
.theme-c .compare-card { border-color: var(--c-line); background: rgba(255, 255, 255, .055); }
.theme-c .about-strip h2 { color: #fff; font-family: var(--sans); font-weight: 700; }
.theme-c .about-strip h2 { font-size: clamp(2.25rem, 4vw, 3.9rem); }
.theme-c .about-strip-copy p,
.theme-c .newsletter > div > p { color: #bdd1de; }
.theme-c .newsletter h2 { color: #fff; font-family: var(--sans); font-weight: 700; }
.theme-c .newsletter h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); }

/* Páginas editoriales y lectura. */
.theme-c .page-hero { padding-block: clamp(34px, 4.8vw, 62px); }
.theme-c .page-hero-grid {
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.theme-c .page-hero h1 { font-size: clamp(2.65rem, 5.4vw, 5.05rem); line-height: .94; }
.theme-c .page-hero-aside { display: grid; gap: 20px; justify-items: start; }
.theme-c .about-cv-link { min-width: 210px; justify-content: center; }
.theme-c .archive-controls,
.theme-c .series-toolbar,
.theme-c .cv-atlas-controls,
.theme-c .article-reader-toolbar,
.theme-c .cv-local-nav {
  border-color: var(--c-line);
  background: rgba(11, 41, 67, .91);
  color: #e9f5fa;
  backdrop-filter: blur(16px);
}
.theme-c .archive-controls,
.theme-c .series-toolbar,
.theme-c .cv-atlas-controls,
.theme-c .article-reader-toolbar,
.theme-c .cv-local-nav { top: 106px; }
.theme-c .cv-local-nav a { color: #dceaf2; }
.theme-c .cv-local-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.theme-c input,
.theme-c textarea,
.theme-c select,
.theme-c .field {
  border-color: #b8cad5;
  border-radius: 10px;
  background: #fff;
  color: var(--c-ink);
}
.theme-c .archive-item,
.theme-c .series-line { border-color: rgba(215, 238, 251, .18); color: #eef8fd; }
.theme-c .archive-item time,
.theme-c .archive-tax { color: #acc1cf; }
.theme-c .archive-item h2 { color: #fff; font-family: var(--sans); }

.theme-c .article-page {
  --reader-title-min: 3rem;
  --reader-title-fluid: 5.6vw;
  --reader-title-max: 5.6rem;
  background: transparent;
}
.theme-c .article-hero > .container,
.theme-c .article-reading-column {
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 34px 90px rgba(0, 7, 16, .34);
}
.theme-c .article-hero { border-bottom: 0; }
.theme-c .article-hero > .container { padding: clamp(26px, 5vw, 64px); }
.theme-c .article-reading-column { padding: clamp(26px, 5vw, 58px); }
.theme-c .article-page h1,
.theme-c .article-body h2,
.theme-c .article-body h3 { color: #17324a; font-family: var(--sans); }
.theme-c .article-hero .breadcrumbs,
.theme-c .article-hero .breadcrumbs a,
.theme-c .article-deck,
.theme-c .article-meta,
.theme-c .article-signature__license { color: #627388; }
.theme-c .article-toc .toc-title,
.theme-c .margin-note strong { color: #eef8fd; }
.theme-c .article-toc .toc-list,
.theme-c .article-toc .toc-list a { border-color: var(--c-line); }
.theme-c .article-toc .toc-list a,
.theme-c .margin-note { color: #b8ceda; }
.theme-c .article-toc { top: 184px; }
.theme-c .article-body h2,
.theme-c .article-body h3 { scroll-margin-top: 190px; }
.theme-c .article-section-number,
.theme-c .toc-number { color: var(--c-accent); }
.theme-c .margin-note { border-color: var(--c-accent); }
.theme-c .margin-note a { color: #f19a7c; }
.theme-c .reading-progress { background: var(--c-accent); }

/* Sobre Pedro: fichas respiradas y vínculo directo al currículum. */
.theme-c .about-page { --about-lead-min: 1.8rem; --about-lead-fluid: 3.2vw; --about-lead-max: 3rem; }
.theme-c .about-photo { top: 124px; }
.theme-c .about-photo img { border: 1px solid rgba(255, 255, 255, .34); border-radius: 20px; box-shadow: 0 28px 70px rgba(0, 8, 18, .32); filter: saturate(.88) contrast(1.02); }
.theme-c .about-page-grid > div:last-child { min-width: 0; }
.theme-c .bio-block { grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); gap: clamp(22px, 3vw, 34px); padding: clamp(25px, 3.4vw, 38px); }
.theme-c .bio-block + .bio-block { margin-top: 20px; }
.theme-c .bio-copy p,
.theme-c .bio-copy li,
.theme-c .bio-block#contacto p { color: #354a5b; }
.theme-c .bio-list li::marker { color: var(--c-accent); }

/* CV y Atlas. */
.theme-c .cv-profile-section { background: rgba(255, 255, 255, .035); }
.theme-c .cv-summary,
.theme-c .cv-proof-grid { color: #eef8fd; }
.theme-c .cv-summary-lead { color: #fff; font-family: var(--sans); }
.theme-c .cv-summary li { color: #bdd1de; }
.theme-c .cv-section-label { color: #a9c2d2; }
.theme-c .cv-proof-grid { border-color: var(--c-line); }
.theme-c .cv-proof-grid > div { border-color: var(--c-line); }
.theme-c .cv-proof-grid strong,
.theme-c .cv-scope-panel > strong { color: var(--c-accent); font-family: var(--sans); }
.theme-c .cv-proof-grid span { color: #a9c2d2; }
.theme-c .cv-education { gap: 20px; }
.theme-c .cv-education article { scroll-margin-top: 130px; }
.theme-c .cv-disclosure { overflow: hidden; }
.theme-c .cv-timeline { padding-inline: 24px; }
.theme-c .cv-entry { border-color: #cadbe4; }
.theme-c .cv-entry h3 { color: #17324a; font-family: var(--sans); }
.theme-c .cv-entry p { color: #627388; }
.theme-c .cv-scope-panel .cv-tag-cloud span,
.theme-c .cv-project-summary-tags em { border-color: #c8dce7; background: #e9f3f8; color: #26465e; }
.theme-c .cv-capability-grid a,
.theme-c .cv-evidence-group { border-color: var(--c-line); background: rgba(255, 255, 255, .055); }
.theme-c .cv-capability-grid h3 { color: #fff; font-family: var(--sans); }
.theme-c .cv-atlas-controls .field { background: #fff; }
.theme-c .cv-atlas-filter-grid label > span { color: #c4d8e3; }
.theme-c .cv-atlas-status { color: #e9f5fa; }
.theme-c .cv-atlas-status span { color: #acc1cf; }
.theme-c .cv-project-list { display: grid; gap: 16px; }
.theme-c .cv-project-item { overflow: hidden; }
.theme-c .cv-project-item > summary { padding-inline: 22px; border-color: #d2e1e8; }
.theme-c .cv-project-detail { border-color: #d2e1e8; background: #f1f6f9; }
.theme-c .cv-project-description { color: #354a5b; }
.theme-c .cv-project-detail dt { color: #718298; }
.theme-c .cv-project-detail dd { color: #17324a; }
.theme-c .cv-project-connections { border-color: #d2e1e8; background: #e8f1f5; }
.theme-c .cv-project-connections__head span { color: #17324a; }
.theme-c .cv-project-connections__head small { color: #627388; }
.theme-c .cv-project-connection { border-color: #c8dce7; border-radius: 14px; background: #fff; color: #17324a; }
.theme-c .cv-project-connection:hover,
.theme-c .cv-project-connection:focus-visible { border-color: var(--c-accent); box-shadow: 0 10px 26px rgba(231, 109, 69, .2); }
.theme-c .cv-project-connection small,
.theme-c .cv-project-connection em { color: #627388; }
.theme-c .cv-classification-note { color: #b7ccda; }

/* Comunidad, legal, diálogos y pie completo de B. */
.theme-c .community-page,
.theme-c .legal-page { background: transparent; }
.theme-c .community-auth-card,
.theme-c .community-confirm-card,
.theme-c .community-principles,
.theme-c .legal-section,
.theme-c .legal-notice { padding: clamp(20px, 3vw, 30px); }
.theme-c .community-auth-card h2,
.theme-c .community-principles h2,
.theme-c .legal-section h2 { color: #17324a; font-family: var(--sans); }
.theme-c .legal-nav a { border-color: var(--c-line); background: rgba(255, 255, 255, .07); color: #eef8fd; }
.theme-c dialog { border: 1px solid #c8dce7; border-radius: 20px; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 38px 100px rgba(0, 5, 12, .52); }
.theme-c dialog::backdrop { background: rgba(0, 9, 18, .76); backdrop-filter: blur(8px); }
.theme-c .dialog-head h2 { color: #17324a; font-family: var(--sans); }

.theme-c .site-footer {
  border-top: 1px solid rgba(215, 238, 251, .16);
  background: #030c15;
  color: #aec2cf;
}
.theme-c .footer-brand { color: #fff; font-family: var(--sans); font-weight: 700; }
.theme-c .footer-tagline { color: #9eb5c3; }
.theme-c .footer-column h2 { color: #7f9aaa; }
.theme-c .footer-column a { color: #c6d7e1; }
.theme-c .footer-column a:hover { color: #fff; }
.theme-c .footer-bottom { border-color: rgba(215, 238, 251, .16); color: #7f9aaa; }

@media (max-width: 1040px) {
  .theme-c .header-inner { min-height: 58px; }
  .theme-c-reader-toolbar { top: 58px; }
  .theme-c .archive-controls,
  .theme-c .series-toolbar,
  .theme-c .article-reader-toolbar,
  .theme-c .cv-local-nav { top: 102px; }
  .theme-c .hero-grid { grid-template-columns: 1fr; }
  .theme-c .portrait-wrap { width: min(100%, 480px); justify-self: center; }
}

@media (max-width: 720px) {
  .theme-c .container { width: min(calc(100% - 30px), var(--max)); }
  .theme-c .hero { padding-top: 26px; }
  .theme-c .hero-grid > div:first-child,
  .theme-c .page-hero-grid { padding: 25px 21px; border-radius: 16px; }
  .theme-c .hero h1 { font-size: clamp(2.5rem, 12vw, 3.85rem); }
  .theme-c .portrait-frame { border-radius: 16px; }
  .theme-c .portrait-caption { right: 8px; }
  .theme-c .hero-stats { grid-template-columns: 1fr; }
  .theme-c .stat { padding: 16px 0; text-align: left; }
  .theme-c .stat + .stat { border-top: 1px solid var(--c-line); border-left: 0; }
  .theme-c .section { padding-block: 48px; }
  .theme-c .page-hero { padding-block: 28px; }
  .theme-c .page-hero h1 { font-size: clamp(2.45rem, 11vw, 3.65rem); }
  .theme-c-reader-toolbar__inner { min-height: 42px; justify-content: space-between; gap: 10px; }
  .theme-c-reader-toolbar__label { font-size: .7rem; }
  .theme-c-reader-toolbar button { width: 29px; height: 29px; }
  .theme-c .recent-item,
  .theme-c .series-card,
  .theme-c .topic-card,
  .theme-c .cv-project-card,
  .theme-c .cv-project-item { border-radius: 15px; }
  .theme-c .article-hero > .container,
  .theme-c .article-reading-column { border-radius: 15px; padding: 24px 18px; }
  .theme-c .bio-block { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .theme-c .footer-bottom { display: grid; }
}

/* La escala global también acompasa los tramos fluidos de los títulos. Los
   mínimos y máximos en rem ya responden al 70/80/95/110/125/140/155 % del raíz. */
html[data-global-font-level="xxsmall"] body.theme-c .hero h1 { font-size: clamp(2.7rem, 3.64vw, 4.7rem); }
html[data-global-font-level="xxsmall"] body.theme-c .page-hero h1 { font-size: clamp(2.65rem, 3.78vw, 5.05rem); }
html[data-global-font-level="xxsmall"] body.theme-c .section-title { font-size: clamp(2.05rem, 2.66vw, 3.7rem); }
html[data-global-font-level="xxsmall"] body.theme-c .story-content h3 { font-size: clamp(2.3rem, 2.94vw, 4.05rem); }
html[data-global-font-level="xxsmall"] body.theme-c .series-card h3 { font-size: clamp(1.75rem, 1.75vw, 2.65rem); }
html[data-global-font-level="xxsmall"] body.theme-c .archive-year { font-size: clamp(4.8rem, 7.35vw, 8.5rem); }
html[data-global-font-level="xxsmall"] body.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 2.8vw, 3.75rem); }
html[data-global-font-level="xxsmall"] body.theme-c .about-strip h2 { font-size: clamp(2.25rem, 2.8vw, 3.9rem); }
html[data-global-font-level="xxsmall"] body.theme-c .newsletter h2 { font-size: clamp(2.2rem, 2.8vw, 3.8rem); }
html[data-global-font-level="xxsmall"] body.theme-c .article-page { --reader-title-fluid: 3.92vw; --reader-title-max: 5.6rem; }
html[data-global-font-level="xxsmall"] body.theme-c .about-page { --about-lead-fluid: 2.24vw; --about-lead-max: 3rem; }

html[data-global-font-level="xsmall"] body.theme-c .hero h1 { font-size: clamp(2.7rem, 4.16vw, 4.7rem); }
html[data-global-font-level="xsmall"] body.theme-c .page-hero h1 { font-size: clamp(2.65rem, 4.32vw, 5.05rem); }
html[data-global-font-level="xsmall"] body.theme-c .section-title { font-size: clamp(2.05rem, 3.04vw, 3.7rem); }
html[data-global-font-level="xsmall"] body.theme-c .story-content h3 { font-size: clamp(2.3rem, 3.36vw, 4.05rem); }
html[data-global-font-level="xsmall"] body.theme-c .series-card h3 { font-size: clamp(1.75rem, 2vw, 2.65rem); }
html[data-global-font-level="xsmall"] body.theme-c .archive-year { font-size: clamp(4.8rem, 8.4vw, 8.5rem); }
html[data-global-font-level="xsmall"] body.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 3.2vw, 3.75rem); }
html[data-global-font-level="xsmall"] body.theme-c .about-strip h2 { font-size: clamp(2.25rem, 3.2vw, 3.9rem); }
html[data-global-font-level="xsmall"] body.theme-c .newsletter h2 { font-size: clamp(2.2rem, 3.2vw, 3.8rem); }
html[data-global-font-level="xsmall"] body.theme-c .article-page { --reader-title-fluid: 4.48vw; --reader-title-max: 5.6rem; }
html[data-global-font-level="xsmall"] body.theme-c .about-page { --about-lead-fluid: 2.56vw; --about-lead-max: 3rem; }

html[data-global-font-level="small"] body.theme-c .hero h1 { font-size: clamp(2.7rem, 4.94vw, 4.7rem); }
html[data-global-font-level="small"] body.theme-c .page-hero h1 { font-size: clamp(2.65rem, 5.13vw, 5.05rem); }
html[data-global-font-level="small"] body.theme-c .section-title { font-size: clamp(2.05rem, 3.61vw, 3.7rem); }
html[data-global-font-level="small"] body.theme-c .story-content h3 { font-size: clamp(2.3rem, 3.99vw, 4.05rem); }
html[data-global-font-level="small"] body.theme-c .series-card h3 { font-size: clamp(1.75rem, 2.375vw, 2.65rem); }
html[data-global-font-level="small"] body.theme-c .archive-year { font-size: clamp(4.8rem, 9.975vw, 8.5rem); }
html[data-global-font-level="small"] body.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 3.8vw, 3.75rem); }
html[data-global-font-level="small"] body.theme-c .about-strip h2 { font-size: clamp(2.25rem, 3.8vw, 3.9rem); }
html[data-global-font-level="small"] body.theme-c .newsletter h2 { font-size: clamp(2.2rem, 3.8vw, 3.8rem); }
html[data-global-font-level="small"] body.theme-c .article-page { --reader-title-fluid: 5.32vw; --reader-title-max: 5.6rem; }
html[data-global-font-level="small"] body.theme-c .about-page { --about-lead-fluid: 3.04vw; --about-lead-max: 3rem; }

html[data-global-font-level="default"] body.theme-c .hero h1 { font-size: clamp(2.7rem, 5.72vw, 4.7rem); }
html[data-global-font-level="default"] body.theme-c .page-hero h1 { font-size: clamp(2.65rem, 5.94vw, 5.05rem); }
html[data-global-font-level="default"] body.theme-c .section-title { font-size: clamp(2.05rem, 4.18vw, 3.7rem); }
html[data-global-font-level="default"] body.theme-c .story-content h3 { font-size: clamp(2.3rem, 4.62vw, 4.05rem); }
html[data-global-font-level="default"] body.theme-c .series-card h3 { font-size: clamp(1.75rem, 2.75vw, 2.65rem); }
html[data-global-font-level="default"] body.theme-c .archive-year { font-size: clamp(4.8rem, 11.55vw, 8.5rem); }
html[data-global-font-level="default"] body.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); }
html[data-global-font-level="default"] body.theme-c .about-strip h2 { font-size: clamp(2.25rem, 4.4vw, 3.9rem); }
html[data-global-font-level="default"] body.theme-c .newsletter h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
html[data-global-font-level="default"] body.theme-c .article-page { --reader-title-fluid: 6.16vw; --reader-title-max: 5.6rem; }
html[data-global-font-level="default"] body.theme-c .about-page { --about-lead-fluid: 3.52vw; --about-lead-max: 3rem; }

html[data-global-font-level="large"] body.theme-c .hero h1 { font-size: clamp(2.7rem, 6.5vw, 4.7rem); }
html[data-global-font-level="large"] body.theme-c .page-hero h1 { font-size: clamp(2.65rem, 6.75vw, 5.05rem); }
html[data-global-font-level="large"] body.theme-c .section-title { font-size: clamp(2.05rem, 4.75vw, 3.7rem); }
html[data-global-font-level="large"] body.theme-c .story-content h3 { font-size: clamp(2.3rem, 5.25vw, 4.05rem); }
html[data-global-font-level="large"] body.theme-c .series-card h3 { font-size: clamp(1.75rem, 3.125vw, 2.65rem); }
html[data-global-font-level="large"] body.theme-c .archive-year { font-size: clamp(4.8rem, 13.125vw, 8.5rem); }
html[data-global-font-level="large"] body.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 5vw, 3.75rem); }
html[data-global-font-level="large"] body.theme-c .about-strip h2 { font-size: clamp(2.25rem, 5vw, 3.9rem); }
html[data-global-font-level="large"] body.theme-c .newsletter h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
html[data-global-font-level="large"] body.theme-c .article-page { --reader-title-fluid: 7vw; --reader-title-max: 5.6rem; }
html[data-global-font-level="large"] body.theme-c .about-page { --about-lead-fluid: 4vw; --about-lead-max: 3rem; }

html[data-global-font-level="xlarge"] body.theme-c .hero h1 { font-size: clamp(2.7rem, 7.28vw, 4.7rem); }
html[data-global-font-level="xlarge"] body.theme-c .page-hero h1 { font-size: clamp(2.65rem, 7.56vw, 5.05rem); }
html[data-global-font-level="xlarge"] body.theme-c .section-title { font-size: clamp(2.05rem, 5.32vw, 3.7rem); }
html[data-global-font-level="xlarge"] body.theme-c .story-content h3 { font-size: clamp(2.3rem, 5.88vw, 4.05rem); }
html[data-global-font-level="xlarge"] body.theme-c .series-card h3 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
html[data-global-font-level="xlarge"] body.theme-c .archive-year { font-size: clamp(4.8rem, 14.7vw, 8.5rem); }
html[data-global-font-level="xlarge"] body.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 5.6vw, 3.75rem); }
html[data-global-font-level="xlarge"] body.theme-c .about-strip h2 { font-size: clamp(2.25rem, 5.6vw, 3.9rem); }
html[data-global-font-level="xlarge"] body.theme-c .newsletter h2 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); }
html[data-global-font-level="xlarge"] body.theme-c .article-page { --reader-title-fluid: 7.84vw; --reader-title-max: 5.6rem; }
html[data-global-font-level="xlarge"] body.theme-c .about-page { --about-lead-fluid: 4.48vw; --about-lead-max: 3rem; }

html[data-global-font-level="xxlarge"] body.theme-c .hero h1 { font-size: clamp(2.7rem, 8.06vw, 4.7rem); }
html[data-global-font-level="xxlarge"] body.theme-c .page-hero h1 { font-size: clamp(2.65rem, 8.37vw, 5.05rem); }
html[data-global-font-level="xxlarge"] body.theme-c .section-title { font-size: clamp(2.05rem, 5.89vw, 3.7rem); }
html[data-global-font-level="xxlarge"] body.theme-c .story-content h3 { font-size: clamp(2.3rem, 6.51vw, 4.05rem); }
html[data-global-font-level="xxlarge"] body.theme-c .series-card h3 { font-size: clamp(1.75rem, 3.875vw, 2.65rem); }
html[data-global-font-level="xxlarge"] body.theme-c .archive-year { font-size: clamp(4.8rem, 16.275vw, 8.5rem); }
html[data-global-font-level="xxlarge"] body.theme-c .archive-copy h3 { font-size: clamp(2.1rem, 6.2vw, 3.75rem); }
html[data-global-font-level="xxlarge"] body.theme-c .about-strip h2 { font-size: clamp(2.25rem, 6.2vw, 3.9rem); }
html[data-global-font-level="xxlarge"] body.theme-c .newsletter h2 { font-size: clamp(2.2rem, 6.2vw, 3.8rem); }
html[data-global-font-level="xxlarge"] body.theme-c .article-page { --reader-title-fluid: 8.68vw; --reader-title-max: 5.6rem; }
html[data-global-font-level="xxlarge"] body.theme-c .about-page { --about-lead-fluid: 4.96vw; --about-lead-max: 3rem; }

@media (prefers-reduced-motion: reduce) {
  .theme-c * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .theme-c { background: #fff; color: #111; }
  .theme-c header.site-header,
  .theme-c-reader-toolbar,
  .theme-c .site-footer,
  .theme-c .cv-local-nav,
  .theme-c .article-reader-toolbar { display: none !important; }
}
