/*
 * Kuatrometric interior system
 * UX Craft direction: one learned pattern across every landing.
 * Dark editorial composition, cream type, red decisions, warm surfaces only
 * where grouping or interaction needs them. Home intentionally does not load this file.
 */
:root {
  --kuatro-ink: #080808;
  --kuatro-ink-soft: #0d0d0c;
  --kuatro-surface: #11100f;
  --kuatro-surface-warm: #17110f;
  --kuatro-paper: #ecefdd;
  --kuatro-muted: #b7b9ad;
  --kuatro-muted-soft: #909287;
  --kuatro-line: #34342f;
  --kuatro-line-strong: #51433c;
  --kuatro-red: #ef352d;
  --kuatro-red-soft: #ff806a;
  --kuatro-radius: 18px;
  --kuatro-gutter: clamp(22px, 5vw, 72px);
  --kuatro-reading: 760px;
  --kuatro-wide: 1200px;
}

body.editorial-page {
  margin: 0;
  background: var(--kuatro-ink);
  color: var(--kuatro-paper);
  font-family: InterLocal, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.editorial-page *,
.editorial-page *::before,
.editorial-page *::after { box-sizing: border-box; }

.editorial-page main { min-width: 0; }
.editorial-page .page-wrap {
  width: min(var(--kuatro-wide), calc(100% - (2 * var(--kuatro-gutter))));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.editorial-page a { text-underline-offset: 5px; }
.editorial-page img { max-width: 100%; }

/* Location belongs to content, never to a second navigation bar. */
.editorial-page .breadcrumbs {
  width: 100%;
  margin: 0;
  padding: 24px 0 0;
  color: var(--kuatro-muted-soft);
  font-size: .72rem;
  line-height: 1.5;
}
.editorial-page .breadcrumbs a { color: inherit; }
.editorial-page .breadcrumbs [aria-current="page"] { color: #c5c7ba; }

/* Shared opening rhythm. Media is optional; the hierarchy is not. */
.editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(38px, 5vw, 66px) 0 clamp(52px, 6vw, 82px);
  border-bottom: 1px solid var(--kuatro-line);
  text-align: left;
}
.editorial-page .service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.editorial-page .service-hero > div { min-width: 0; max-width: 760px; }

.editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading, .section-heading) .eyebrow,
.editorial-page .prose > section > .eyebrow {
  margin: 0 0 18px;
  color: var(--kuatro-red-soft);
  font: 650 .68rem/1.45 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) h1,
.editorial-page .atlas-map-intro .section-heading h1 {
  max-width: 15ch;
  margin: 0 0 24px;
  color: var(--kuatro-paper);
  font-size: clamp(3rem, 5.6vw, 5.6rem);
  font-weight: 780;
  line-height: .96;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) .lead,
.editorial-page .atlas-map-intro .section-heading > p:last-child {
  max-width: 660px;
  margin: 0;
  color: #c5c7ba;
  font: 400 clamp(1rem, 1.25vw, 1.12rem)/1.7 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: -.012em;
}
.editorial-page .service-hero .hero-actions,
.editorial-page .service-hero > div > .action { margin-top: 30px; }
.editorial-page .service-hero .hero-actions > a:not(.action) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--kuatro-paper);
  font-size: .84rem;
  font-weight: 600;
}
.editorial-page .service-hero figure {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--kuatro-line-strong);
  border-radius: var(--kuatro-radius);
  background: var(--kuatro-surface);
}
.editorial-page .service-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(.88) contrast(1.03) brightness(.82);
}
.editorial-page .service-hero figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(5, 5, 5, .56));
}
.editorial-page .service-hero figure[data-visual]::before {
  content: attr(data-visual);
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 9px;
  border: 1px solid rgba(236, 239, 221, .24);
  border-radius: 999px;
  background: rgba(8, 8, 8, .72);
  color: #ecefdd;
  font: 650 .58rem/1.2 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.editorial-page .service-hero figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 18px 16px;
  padding: 0;
  background: none;
  color: #dadccf;
  font: 600 .62rem/1.5 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.editorial-page .case-page .service-hero figure img { filter: saturate(.94) contrast(1.02) brightness(.9); }
.editorial-page .byline {
  margin: 22px 0 0;
  color: var(--kuatro-muted-soft);
  font-size: .75rem;
}

/* Main reading journey: content first, compact orientation second. */
.editorial-page .reading-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--kuatro-reading)) minmax(220px, 270px);
  justify-content: space-between;
  gap: clamp(52px, 7vw, 104px);
  align-items: start;
  padding: clamp(58px, 7vw, 94px) 0 clamp(76px, 9vw, 120px);
}
.editorial-page .prose {
  width: 100%;
  max-width: var(--kuatro-reading);
  color: #cfd1c5;
  font-size: 1rem;
  line-height: 1.72;
}
.editorial-page .prose > section,
.editorial-page .prose > h2:first-child {
  scroll-margin-top: 116px;
}
.editorial-page .prose > section {
  margin: 0;
  padding: 0 0 52px;
}
.editorial-page .prose > section + section {
  padding-top: 52px;
  border-top: 1px solid var(--kuatro-line);
}
.editorial-page .prose > h2 {
  margin: 52px 0 20px;
}
.editorial-page .prose > h2:first-child { margin-top: 0; }
.editorial-page :is(.prose, .seo-directory-section, .atlas-section) h2,
.editorial-page .section-heading h2,
.editorial-page .atlas-closing h2 {
  color: var(--kuatro-paper);
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.editorial-page .prose h2 { margin-bottom: 20px; }
.editorial-page .prose h3 {
  color: var(--kuatro-paper);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.editorial-page .prose p { max-width: 68ch; }
.editorial-page .prose :is(ul, ol) { padding-left: 1.25rem; }
.editorial-page .prose li { margin-block: 8px; }
.editorial-page .prose a { color: var(--kuatro-paper); }

.editorial-page .reading-aside {
  position: sticky;
  top: 112px;
  width: 100%;
  min-width: 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 2px solid var(--kuatro-red);
  color: var(--kuatro-muted);
  font-size: .82rem;
  line-height: 1.6;
}
.editorial-page .reading-aside .eyebrow { margin-bottom: 16px; color: var(--kuatro-muted-soft); }
.editorial-page .reading-aside h2 { margin: 0 0 14px; font-size: 1.35rem; letter-spacing: -.035em; }
.editorial-page .reading-aside p { margin: 0 0 16px; }
.editorial-page .reading-aside :is(.toc, ul, ol) { margin: 0 0 20px; padding-left: 18px; }
.editorial-page .reading-aside li { margin-bottom: 10px; }
.editorial-page .reading-aside a { color: #d9dbce; font-size: inherit; }

/* Sidebar hierarchy: current-page navigation first, cross-site navigation second. */
.editorial-page .reading-aside .toc {
  counter-reset: aside-toc;
  display: grid;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.editorial-page .reading-aside .toc li {
  counter-increment: aside-toc;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(236, 239, 221, .08);
}
.editorial-page .reading-aside .toc li::before {
  content: counter(aside-toc, decimal-leading-zero);
  color: var(--kuatro-red-soft);
  font: 650 .56rem/1 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .08em;
}
.editorial-page .reading-aside .toc a {
  color: var(--kuatro-paper);
  font-size: .8rem;
  font-weight: 610;
  line-height: 1.45;
  text-decoration: none;
}
.editorial-page .reading-aside .toc a:hover,
.editorial-page .reading-aside .toc a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.editorial-page .reading-aside-related {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--kuatro-line);
}
.editorial-page .reading-aside-related::before {
  content: "MÁS OPCIONES";
  display: block;
  margin-bottom: 8px;
  color: var(--kuatro-muted-soft);
  font: 650 .58rem/1.4 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .12em;
}
.editorial-page .reading-aside-related a {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: #aeb0a5;
  font-size: .74rem;
  font-weight: 520;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease;
}
.editorial-page .reading-aside-related a:not(.aside-back)::after {
  content: "↗";
  flex: 0 0 auto;
  color: #77796f;
  font-size: .68rem;
}
.editorial-page .reading-aside-related a:hover,
.editorial-page .reading-aside-related a:focus-visible { color: var(--kuatro-paper); }
.editorial-page .reading-aside-related .aside-back {
  min-height: 40px;
  margin-bottom: 7px;
  padding: 8px 11px;
  border: 1px solid var(--kuatro-line);
  border-radius: 10px;
  color: #d5d7cb;
  background: rgba(236, 239, 221, .025);
  font-weight: 610;
}
.editorial-page .reading-aside-related .aside-back::before {
  content: "←";
  flex: 0 0 auto;
  color: var(--kuatro-red-soft);
}
.editorial-page .reading-aside-related .aside-back { justify-content: flex-start; }

/* Dense comparisons are chunked, but not turned into nested SaaS cards. */
.editorial-page .editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 10px;
  border-top: 1px solid var(--kuatro-line);
  border-bottom: 1px solid var(--kuatro-line);
}
.editorial-page .editorial-grid > section {
  min-width: 0;
  padding: 26px 24px 28px 0;
  border: 0;
}
.editorial-page .editorial-grid > section + section {
  padding-left: 24px;
  border-left: 1px solid var(--kuatro-line);
}
.editorial-page .editorial-grid h3 { margin: 0 0 10px; }
.editorial-page .editorial-grid p { margin: 0; color: var(--kuatro-muted); font-size: .9rem; }

.editorial-page details {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--kuatro-line);
}
.editorial-page details:last-of-type { border-bottom: 1px solid var(--kuatro-line); }
.editorial-page details summary {
  position: relative;
  list-style: none;
  padding: 20px 42px 20px 0;
  color: var(--kuatro-paper);
  font-weight: 620;
  line-height: 1.45;
  cursor: pointer;
}
.editorial-page details summary::-webkit-details-marker { display: none; }
.editorial-page details summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  translate: 0 -50%;
  color: var(--kuatro-red-soft);
  font-size: 1.15rem;
  font-weight: 400;
}
.editorial-page details[open] summary::after { content: "−"; }
.editorial-page details > p { margin: 0; padding: 0 34px 20px 0; color: var(--kuatro-muted); }

/* Directories and related choices share one recognizable card language. */
.editorial-page .seo-index-hero { max-width: none; }
.editorial-page .seo-directory-section,
.editorial-page .atlas-section {
  margin: 0;
  padding: clamp(48px, 6vw, 78px) 0;
  border-top: 0;
  border-bottom: 1px solid var(--kuatro-line);
}
.editorial-page .seo-directory-section > h2,
.editorial-page .section-heading h2 { margin: 0 0 14px; }
.editorial-page .seo-directory-section > p,
.editorial-page .section-heading > p:last-child {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--kuatro-muted);
  font-size: .94rem;
}
.editorial-page .seo-card-grid,
.editorial-page .guide-grid,
.editorial-page .case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}
.editorial-page :is(.seo-link-card, .guide-card, .case-list-card) {
  position: relative;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 26px 52px 28px 26px;
  border: 1px solid var(--kuatro-line);
  border-radius: 14px;
  background: var(--kuatro-surface);
  color: var(--kuatro-paper);
  text-decoration: none;
  transition: border-color .22s ease, background-color .22s ease, transform .22s ease;
}
.editorial-page .seo-link-card::after {
  content: "↗";
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--kuatro-red-soft);
  font-size: .9rem;
}
.editorial-page :is(.seo-link-card, .guide-card, .case-list-card):hover,
.editorial-page .guide-card:focus-within,
.editorial-page .case-list-card:focus-within {
  border-color: #79483e;
  background: #15110f;
  transform: translateY(-2px);
}
.editorial-page :is(.seo-link-card, .guide-card, .case-list-card) h3,
.editorial-page .case-list-card h2 {
  margin: 0 0 12px;
  color: var(--kuatro-paper);
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  font-weight: 680;
  line-height: 1.22;
  letter-spacing: -.035em;
}
.editorial-page .case-list-card h2 a,
.editorial-page .guide-card h3 a { color: inherit; text-decoration: none; }
.editorial-page :is(.seo-link-card, .guide-card, .case-list-card) p {
  margin: 0;
  color: var(--kuatro-muted);
  font: 400 .88rem/1.65 InterLocal, Inter, Arial, sans-serif;
}
.editorial-page .case-list-card .text-link { margin-top: 18px; }

.editorial-page .seo-related {
  margin: 0;
  padding: 52px 0;
  border-top: 1px solid var(--kuatro-line);
}
.editorial-page .seo-related h2 { margin-top: 0; }

/* UX Craft: related links are a next-decision module, not a footer-like list. */
.editorial-page .seo-related:has(> ul) {
  display: grid;
  grid-template-columns: minmax(210px, .68fr) minmax(0, 1.32fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(52px, 6vw, 76px) 0;
  border-top: 1px solid var(--kuatro-line);
}
.editorial-page .seo-related:has(> ul) h2 {
  position: relative;
  max-width: 9ch;
  margin: 0;
  padding-top: 26px;
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.editorial-page .seo-related:has(> ul) h2::before {
  content: "SEGUÍ EXPLORANDO";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--kuatro-red-soft);
  font: 650 .62rem/1.4 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .13em;
}
.editorial-page .seo-related:has(> ul) ul {
  counter-reset: related;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.editorial-page .seo-related:has(> ul) li {
  counter-increment: related;
  position: relative;
  min-width: 0;
  min-height: 132px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--kuatro-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(239, 53, 45, .10), transparent 42%),
    #0f0f0e;
  transition: border-color .22s ease, background-color .22s ease, transform .22s ease;
}
.editorial-page .seo-related:has(> ul) li::before {
  content: counter(related, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 1;
  color: #8f9187;
  font: 600 .62rem/1 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .1em;
  pointer-events: none;
}
.editorial-page .seo-related:has(> ul) li a {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 132px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 48px 20px 20px;
  color: var(--kuatro-paper);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.editorial-page .seo-related:has(> ul) li a::after {
  content: "↗";
  flex: 0 0 auto;
  color: var(--kuatro-red-soft);
  font-size: .9rem;
  transition: transform .22s ease;
}
.editorial-page .seo-related:has(> ul) li:hover,
.editorial-page .seo-related:has(> ul) li:focus-within {
  border-color: #75483e;
  background-color: #15110f;
  transform: translateY(-2px);
}
.editorial-page .seo-related:has(> ul) li:hover a::after,
.editorial-page .seo-related:has(> ul) li:focus-within a::after { transform: translate(2px, -2px); }
.editorial-page .seo-related:has(> ul) li a:focus-visible {
  outline: 2px solid var(--kuatro-red-soft);
  outline-offset: -4px;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .editorial-page .seo-related:has(> ul) { grid-template-columns: 1fr; gap: 28px; }
  .editorial-page .seo-related:has(> ul) h2 { max-width: 12ch; }
}
@media (max-width: 520px) {
  .editorial-page .seo-related:has(> ul) ul { grid-template-columns: 1fr; }
  .editorial-page .seo-related:has(> ul) li,
  .editorial-page .seo-related:has(> ul) li a { min-height: 108px; }
  .editorial-page .seo-related:has(> ul) li a { padding-top: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-page .seo-related:has(> ul) li,
  .editorial-page .seo-related:has(> ul) li a::after { transition: none; }
  .editorial-page .seo-related:has(> ul) li:hover { transform: none; }
}

/* Every long page ends with the same decision rhythm. */
.editorial-page .closing,
.editorial-page .atlas-closing {
  margin: 0;
  padding: clamp(48px, 6vw, 72px) 0;
  border: 0;
  border-top: 1px solid var(--kuatro-line);
  background: radial-gradient(ellipse at 82% 50%, rgba(93, 25, 18, .23), transparent 48%);
}
.editorial-page .closing { display: block; }
.editorial-page .atlas-closing {
  display: block;
}
.editorial-page .closing h2,
.editorial-page .atlas-closing h2 { max-width: 14ch; margin: 0 0 18px; }
.editorial-page .closing > p,
.editorial-page .atlas-closing p { max-width: 600px; color: var(--kuatro-muted); }
.editorial-page .atlas-closing > .action,
.editorial-page .atlas-closing > div:last-child {
  margin-top: 28px;
}
.editorial-page .atlas-closing > div:last-child {
  justify-content: flex-start;
}
.editorial-page .closing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 660px);
  margin-top: 30px;
}
.editorial-page .closing-actions :is(.action, .closing-secondary) {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.editorial-page .closing-actions .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--cta-primary, #e40014);
  background: var(--cta-primary, #e40014);
  color: #fff;
}
.editorial-page .closing-actions .closing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(236, 239, 221, .34);
  background: rgba(236, 239, 221, .025);
  color: var(--kuatro-paper);
}
.editorial-page .closing-actions .closing-secondary:hover {
  border-color: rgba(236, 239, 221, .68);
  background: rgba(236, 239, 221, .08);
  color: #fff;
}
.editorial-page .closing-actions :is(.action, .closing-secondary):focus-visible {
  outline: 2px solid var(--kuatro-red-soft);
  outline-offset: 4px;
}
.editorial-page .closing > p:last-of-type { margin-bottom: 0; }

/* Tools use the same hierarchy; their interactive surfaces get stronger grouping. */
.editorial-page .atlas-tools { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--kuatro-line); }
.editorial-page .atlas-tool-grid { display: grid; gap: 16px; }
.editorial-page .atlas-tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--kuatro-line-strong);
  border-radius: var(--kuatro-radius);
  background: radial-gradient(ellipse at 0 0, rgba(93, 25, 18, .26), transparent 58%), var(--kuatro-surface);
}
.editorial-page .atlas-tool-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.editorial-page .atlas-tool-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #5b4037;
  border-radius: 999px;
  color: #d8b2a4;
  font-size: .65rem;
}
.editorial-page .atlas-tool-copy h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.2vw, 3.1rem); }
.editorial-page .atlas-tool-copy > p { max-width: 47ch; color: var(--kuatro-muted); }
.editorial-page .atlas-tool-example {
  margin: 0;
  padding: 24px;
  border: 1px solid #4a3932;
  border-radius: 14px;
  background: #0d0c0b;
}
.editorial-page .atlas-example-total strong { color: var(--kuatro-paper); }

/* Atlas itself is a tool-area subsection; its map is the opening experience. */
.editorial-page .atlas-map-intro {
  padding-top: clamp(36px, 4vw, 52px);
}
.editorial-page .atlas-map-intro .section-heading { max-width: 850px; margin-bottom: 28px; }
.editorial-page .atlas-map-intro .section-heading h1 { margin-bottom: 20px; }
.editorial-page .atlas-map-intro .section-heading h1 em { color: var(--kuatro-red-soft); font-style: normal; }
.editorial-page .map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.editorial-page .map-controls button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--kuatro-line-strong);
  border-radius: 14px;
  background: transparent;
  color: var(--kuatro-paper);
}
.editorial-page .map-controls button[aria-pressed="true"] { border-color: var(--kuatro-red-soft); background: #24110e; }
.editorial-page #route-status { color: var(--kuatro-muted-soft); font-size: .75rem; }
.editorial-page .atlas-explorer {
  overflow: hidden;
  border: 1px solid var(--kuatro-line-strong);
  border-radius: var(--kuatro-radius);
  background: var(--kuatro-surface);
}
.editorial-page .concept-detail { background: #12100e; }

/* Calculator follows the same hero/content system while preserving all states. */
.editorial-page .estimate-heading { max-width: none; }
.editorial-page .estimate-heading h1 { max-width: 15ch; }
.editorial-page .estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  gap: 18px;
  align-items: start;
  padding: clamp(52px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--kuatro-line);
}
.editorial-page :is(.estimate-form, .estimate-result) {
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--kuatro-line-strong);
  border-radius: var(--kuatro-radius);
  background: var(--kuatro-surface);
}
.editorial-page .estimate-result { top: 112px; border-top: 2px solid var(--kuatro-red); }
.editorial-page .estimate-form input,
.editorial-page .estimate-result textarea,
.editorial-page .seo-example select {
  border-radius: 10px;
  border-color: #625853;
  background: #0b0b0a;
}
.editorial-page .estimate-reset {
  border-radius: 14px;
  background: transparent;
}
.editorial-page #estimate-copy.estimate-copy-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  margin: 16px 0 0;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 239, 221, .42);
  border-radius: 18px;
  background: transparent;
  color: var(--kuatro-paper);
  font: 600 .9rem/1.25 InterLocal, Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.editorial-page #estimate-copy.estimate-copy-secondary:hover {
  border-color: var(--kuatro-red);
  background: rgba(236, 239, 221, .08);
  color: #fff;
  transform: translateY(-1px);
}
.editorial-page #estimate-copy.estimate-copy-secondary:focus-visible {
  outline: 3px solid var(--kuatro-red);
  outline-offset: 4px;
}
.editorial-page #estimate-copy.estimate-copy-secondary:active { transform: none; }
.editorial-page #estimate-copy.estimate-copy-secondary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* One footer pattern across every interior page. */
.editorial-page + .editorial-footer,
.editorial-footer.footer-organized {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(130px, .8fr) minmax(165px, 1fr) minmax(205px, 1.1fr);
  grid-template-areas: "brand services explore contact" "note note note note";
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 32px;
  align-items: start;
  width: min(var(--kuatro-wide), calc(100% - (2 * var(--kuatro-gutter))));
  max-width: none;
  margin-inline: auto;
  padding: clamp(42px, 5vw, 62px) 0 26px;
  border-top: 1px solid var(--kuatro-line);
  color: var(--kuatro-muted);
  font-size: .78rem;
}
.editorial-footer.footer-organized .wordmark {
  color: var(--kuatro-paper);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.07em;
}
.editorial-footer.footer-organized .footer-heading { color: var(--kuatro-muted-soft); }
.editorial-footer.footer-organized .footer-group > a { min-height: 34px; color: #c9cbbf; }
.editorial-footer.footer-organized .footer-group > a:hover { color: var(--kuatro-paper); }
.editorial-footer.footer-organized .footer-note { border-color: var(--kuatro-line); color: var(--kuatro-muted-soft); }

@media (max-width: 1000px) {
  .editorial-page .service-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr); gap: 38px; }
  .editorial-page .reading-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 44px; }
  .editorial-page .editorial-grid { grid-template-columns: 1fr; }
  .editorial-page .editorial-grid > section { padding: 22px 0; }
  .editorial-page .editorial-grid > section + section { padding-left: 0; border-left: 0; border-top: 1px solid var(--kuatro-line); }
  .editorial-page .atlas-tool-card { grid-template-columns: 1fr; }
  .editorial-footer.footer-organized {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand contact" "services explore" "note note";
    column-gap: 36px;
  }
}

@media (max-width: 760px) {
  :root { --kuatro-gutter: 20px; }
  .editorial-page .page-wrap,
  .editorial-footer.footer-organized { width: calc(100% - 40px); }
  .editorial-page .breadcrumbs { padding-top: 20px; }
  .editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) {
    padding: 30px 0 46px;
  }
  .editorial-page .service-hero { grid-template-columns: 1fr; gap: 30px; }
  .editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) h1,
  .editorial-page .atlas-map-intro .section-heading h1 {
    max-width: none;
    font-size: clamp(2.55rem, 12vw, 4.2rem);
    line-height: .98;
  }
  .editorial-page .service-hero figure { aspect-ratio: 16 / 10; }
  .editorial-page .reading-layout { display: flex; flex-direction: column; gap: 36px; padding: 48px 0 72px; }
  .editorial-page .reading-aside { position: static; order: -1; }
  .editorial-page .reading-aside .toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
  .editorial-page .seo-card-grid,
  .editorial-page .guide-grid,
  .editorial-page .case-list { grid-template-columns: 1fr; }
  .editorial-page :is(.seo-link-card, .guide-card, .case-list-card) { padding: 24px 46px 25px 22px; }
  .editorial-page .closing-actions { width: 100%; }
  .editorial-page .estimate-layout { grid-template-columns: 1fr; }
  .editorial-page .estimate-result { position: static; }
  .editorial-page .atlas-explorer { border-radius: 14px; }
  .editorial-footer.footer-organized { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand contact" "services explore" "note note"; gap: 28px 34px; }
}

@media (max-width: 600px) {
  .editorial-page .closing-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .editorial-page .closing-actions :is(.action, .closing-secondary) {
    min-height: 50px;
  }
  .editorial-page .atlas-closing > .action,
  .editorial-page .atlas-closing > div:last-child > * {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) h1,
  .editorial-page .atlas-map-intro .section-heading h1 { font-size: clamp(2.35rem, 11.4vw, 3.25rem); }
  .editorial-page .reading-aside .toc { grid-template-columns: 1fr; }
  .editorial-page .seo-directory-section,
  .editorial-page .atlas-section { padding: 42px 0; }
  .editorial-page .atlas-tool-card { padding: 22px; border-radius: 14px; }
  .editorial-page .atlas-tool-example { padding: 20px; }
  .editorial-page .estimate-fields { grid-template-columns: 1fr; }
  .editorial-page .estimate-field-wide { grid-column: auto; }
  .editorial-footer.footer-organized { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "services explore" "contact contact" "note note"; gap: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-page :is(.seo-link-card, .guide-card, .case-list-card) { transition: none; }
  .editorial-page :is(.seo-link-card, .guide-card, .case-list-card):hover { transform: none; }
}

@media print {
  .editorial-page .reading-aside { display: none; }
  .editorial-page .reading-layout { display: block; }
}

/* Service landing repair: neutralize legacy inline blocks that conflict with the shared system. */
body.editorial-page[data-page-path^="/servicios/"] .prose > :is(.seo-process, .seo-case-evidence, .seo-related, .closing) {
  margin-top: 56px;
}

body.editorial-page[data-page-path^="/servicios/"] .prose > .seo-case-evidence {
  margin-inline: 0 !important;
  padding: 42px 0 52px !important;
  border: 0 !important;
  border-top: 1px solid var(--kuatro-line) !important;
  background: transparent !important;
}
body.editorial-page[data-page-path^="/servicios/"] .prose > .seo-case-evidence h2 {
  margin: 0 0 24px !important;
  color: var(--kuatro-paper) !important;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
}
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list li {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 22px 48px 22px 22px !important;
  border: 1px solid var(--kuatro-line) !important;
  border-radius: 14px;
  background: var(--kuatro-surface);
}
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list li::after {
  content: "↗";
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--kuatro-red-soft);
  font-size: .82rem;
}
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list a {
  display: inline-block;
  color: var(--kuatro-paper);
  font-size: .98rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list a:hover,
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list p {
  margin: 10px 0 0 !important;
  color: var(--kuatro-muted) !important;
  font-size: .86rem !important;
  line-height: 1.6 !important;
}
body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence img {
  max-height: none !important;
  margin: 22px 0 0 !important;
  border-radius: 12px;
}

body.editorial-page[data-page-path^="/servicios/"] .prose > .seo-process {
  padding-top: 42px;
  border-top: 1px solid var(--kuatro-line);
}
body.editorial-page[data-page-path^="/servicios/"] .seo-process h2 { margin-top: 0; }
body.editorial-page[data-page-path^="/servicios/"] .seo-process ol {
  counter-reset: service-step;
  margin: 26px 0 0;
  padding: 0 !important;
  list-style: none;
  border-top: 1px solid var(--kuatro-line);
}
body.editorial-page[data-page-path^="/servicios/"] .seo-process li {
  counter-increment: service-step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid var(--kuatro-line);
}
body.editorial-page[data-page-path^="/servicios/"] .seo-process li::before {
  content: counter(service-step, decimal-leading-zero);
  color: var(--kuatro-red-soft);
  font: 650 .68rem/1.5 InterLocal, Inter, Arial, sans-serif;
  letter-spacing: .1em;
}

body.editorial-page[data-page-path^="/servicios/"] .table-wrap {
  margin: 26px 0 !important;
  overflow: auto;
  border: 1px solid var(--kuatro-line) !important;
  border-radius: 14px;
  background: var(--kuatro-surface);
}
body.editorial-page[data-page-path^="/servicios/"] .table-wrap table { margin: 0; }
body.editorial-page[data-page-path^="/servicios/"] .table-wrap th {
  background: #151412;
  color: var(--kuatro-paper);
}

body.editorial-page[data-page-path^="/servicios/"] .prose > .closing {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  body.editorial-page[data-page-path^="/servicios/"] .prose > :is(.seo-process, .seo-case-evidence, .seo-related, .closing) {
    margin-top: 44px;
  }
  body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list {
    grid-template-columns: 1fr;
  }
  body.editorial-page[data-page-path^="/servicios/"] .prose > .seo-case-evidence,
  body.editorial-page[data-page-path^="/servicios/"] .prose > .seo-process {
    padding-top: 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-page[data-page-path^="/servicios/"] .seo-case-evidence .related-list li { transition: none; }
}

/* UX Craft refine — 2026-09-10
 * Intent-specific hierarchy for interior pages. Home does not load this file.
 */
.editorial-page :where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--kuatro-red-soft);
  outline-offset: 4px;
}
.editorial-page :where(.action, .closing-secondary, .route-button, .map-controls button) {
  min-height: 48px;
}
.editorial-page .atlas-node::after { inset: -15px; }
.editorial-page :where(.action, .closing-secondary, .route-button, .map-controls button):active {
  transform: translateY(1px);
}
.editorial-page :where(button:disabled, [aria-disabled="true"]) {
  cursor: not-allowed;
  opacity: .52;
}
.editorial-page :where(.prose, .lead, .seo-link-card, .case-list-card, .guide-card, .reading-aside) {
  overflow-wrap: anywhere;
}
.editorial-page :where(h1, h2, h3) {
  overflow-wrap: anywhere;
}

/* A secondary hero decision must read as a button, not as an accidental text link. */
.editorial-page .service-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.editorial-page .service-hero .hero-actions > a:not(.action) {
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--kuatro-line-strong);
  border-radius: 14px;
  background: transparent;
  color: var(--kuatro-paper);
  text-decoration: none;
}
.editorial-page .service-hero .hero-actions > a:not(.action):hover {
  border-color: #8d7a70;
  background: var(--kuatro-surface);
}

/* Service directory playbook: choose a problem, not one card among many. */
body.editorial-page[data-page-path="/servicios/"] .seo-card-grid {
  display: block;
  margin: 22px 0 0;
  border-bottom: 1px solid var(--kuatro-line);
}
body.editorial-page[data-page-path="/servicios/"] .seo-link-card {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.35fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  min-height: 0;
  padding: 26px 46px 27px 0;
  border: 0;
  border-top: 1px solid var(--kuatro-line);
  border-radius: 0;
  background: transparent;
}
body.editorial-page[data-page-path="/servicios/"] .seo-link-card:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(239,53,45,.08), transparent 62%);
}
body.editorial-page[data-page-path="/servicios/"] .seo-link-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}
body.editorial-page[data-page-path="/servicios/"] .seo-link-card p {
  max-width: 62ch;
  margin: 0;
}
body.editorial-page[data-page-path="/servicios/"] .seo-card-category {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

/* Sector directory playbook: scan contexts as editorial choices, not product cards. */
body.editorial-page[data-page-path="/sectores/"] .seo-card-grid {
  display: block;
  margin: 22px 0 0;
  border-bottom: 1px solid var(--kuatro-line);
}
body.editorial-page[data-page-path="/sectores/"] .seo-link-card {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  min-height: 0;
  padding: 25px 46px 26px 0;
  border: 0;
  border-top: 1px solid var(--kuatro-line);
  border-radius: 0;
  background: transparent;
}
body.editorial-page[data-page-path="/sectores/"] .seo-link-card:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(239,53,45,.08), transparent 62%);
}
body.editorial-page[data-page-path="/sectores/"] .seo-link-card h3,
body.editorial-page[data-page-path="/sectores/"] .seo-link-card p { margin: 0; }
body.editorial-page[data-page-path="/sectores/"] .seo-card-category {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

/* Case index playbook: evidence reads as a project index instead of six equal tiles. */
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list {
  display: block;
  margin: 30px 0 70px;
  border-bottom: 1px solid var(--kuatro-line);
  counter-reset: case-row;
}
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card {
  counter-increment: case-row;
  display: grid;
  grid-template-columns: 46px minmax(190px, .75fr) minmax(0, 1.25fr) auto;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--kuatro-line);
  border-radius: 0;
  background: transparent;
}
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card::before {
  content: counter(case-row, decimal-leading-zero);
  color: var(--kuatro-red-soft);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .1em;
}
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card h2,
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card p { margin: 0; }
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.1;
}
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card .text-link {
  white-space: nowrap;
}
body.editorial-page[data-page-path="/casos-de-exito/"] .case-card-geometry,
body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card > img { display: none; }

/* Individual case playbook: narrative first, project mark second. */
body.editorial-page[data-page-path^="/casos-de-exito/"]:not([data-page-path="/casos-de-exito/"]) .case-page .service-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  align-items: end;
}
body.editorial-page[data-page-path^="/casos-de-exito/"]:not([data-page-path="/casos-de-exito/"]) .case-page .service-hero figure {
  aspect-ratio: 1;
}
body.editorial-page[data-page-path^="/casos-de-exito/"]:not([data-page-path="/casos-de-exito/"]) .case-page .reading-layout {
  grid-template-columns: minmax(0, 780px) minmax(210px, 250px);
}

/* Atlas guide playbook: reading measure and orientation are more important than sales chrome. */
body.editorial-page[data-page-path^="/herramientas/atlas/"]:not([data-page-path="/herramientas/atlas/"]) .guide-hero {
  max-width: 940px;
}
body.editorial-page[data-page-path^="/herramientas/atlas/"]:not([data-page-path="/herramientas/atlas/"]) .reading-layout {
  grid-template-columns: minmax(0, 720px) minmax(220px, 260px);
}
body.editorial-page[data-page-path^="/herramientas/atlas/"]:not([data-page-path="/herramientas/atlas/"]) .prose {
  max-width: 720px;
}

/* Local-intent page: keep the service pattern, with a tighter first decision. */
body.editorial-page[data-page-path="/agencia-marketing-digital-mendoza/"] .service-hero > div {
  max-width: 700px;
}

@media (max-width: 760px) {
  .editorial-page .page-wrap,
  .editorial-footer.footer-organized {
    width: calc(100% - 32px);
  }
  .editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) {
    padding-top: 26px;
    padding-bottom: 38px;
  }
  .editorial-page :is(.service-hero, .guide-hero, .seo-index-hero, .atlas-hero, .estimate-heading) h1,
  .editorial-page .atlas-map-intro .section-heading h1 {
    font-size: clamp(2.25rem, 10.8vw, 3.7rem);
    line-height: 1;
    letter-spacing: -.055em;
  }
  .editorial-page .service-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-top: 24px;
  }
  .editorial-page .service-hero .hero-actions > a {
    width: 100%;
  }
  .editorial-page .service-hero figure {
    aspect-ratio: 16 / 9;
  }
  body.editorial-page[data-page-path^="/servicios/"] .reading-aside,
  body.editorial-page[data-page-path^="/sectores/"] .reading-aside,
  body.editorial-page[data-page-path^="/casos-de-exito/"] .reading-aside,
  body.editorial-page[data-page-path="/agencia-marketing-digital-mendoza/"] .reading-aside {
    order: 0;
  }
  body.editorial-page[data-page-path^="/herramientas/atlas/"]:not([data-page-path="/herramientas/atlas/"]) .reading-aside {
    order: -1;
  }
  body.editorial-page:is([data-page-path="/servicios/"], [data-page-path="/sectores/"]) .seo-link-card {
    display: block;
    padding: 23px 38px 24px 0;
  }
  body.editorial-page:is([data-page-path="/servicios/"], [data-page-path="/sectores/"]) .seo-link-card:hover {
    padding-left: 8px;
  }
  body.editorial-page:is([data-page-path="/servicios/"], [data-page-path="/sectores/"]) .seo-link-card h3 {
    margin: 0 0 10px;
  }
  body.editorial-page:is([data-page-path="/servicios/"], [data-page-path="/sectores/"]) .seo-card-category {
    margin: 0 0 9px;
  }
  body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px 14px;
    align-items: start;
    padding: 24px 0;
  }
  body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card h2,
  body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card p,
  body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card .text-link {
    grid-column: 2;
  }
  body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card p { margin-top: 7px; }
  body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card .text-link { margin-top: 9px; }
  body.editorial-page[data-page-path="/casos-de-exito/"] .case-list-card .text-link {
    min-width: 0;
    white-space: normal;
  }
  body.editorial-page[data-page-path^="/casos-de-exito/"]:not([data-page-path="/casos-de-exito/"]) .case-page .service-hero,
  body.editorial-page[data-page-path^="/casos-de-exito/"]:not([data-page-path="/casos-de-exito/"]) .case-page .reading-layout,
  body.editorial-page[data-page-path^="/herramientas/atlas/"]:not([data-page-path="/herramientas/atlas/"]) .reading-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .editorial-page .page-wrap,
  .editorial-footer.footer-organized {
    width: calc(100% - 28px);
  }
  .editorial-page .breadcrumbs { padding-top: 16px; }
  .editorial-page .reading-layout { gap: 28px; }
  .editorial-page .reading-aside .toc { grid-template-columns: 1fr; }
  .editorial-page :where(.action, .closing-secondary, .route-button, .map-controls button) {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-page :where(.action, .closing-secondary, .route-button, .map-controls button):active,
  body.editorial-page:is([data-page-path="/servicios/"], [data-page-path="/sectores/"]) .seo-link-card:hover {
    transform: none;
  }
  body.editorial-page:is([data-page-path="/servicios/"], [data-page-path="/sectores/"]) .seo-link-card {
    transition: none;
  }
}
