:root {
  --accent: #E01F1A;
  --accent-hover: #C0140F;
  --text: #1A1714;
  --text-muted: #6B635B;
  --text-faint: #9A9085;
  --bg-cream: #FBF9F5;
  --bg-white: #FFFFFF;
  --border-soft: rgba(26, 23, 20, .07);
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-heading: 'Schibsted Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
}

.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow--center { justify-content: center; width: 100%; color: rgba(255,255,255,.75); }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn-arrow-hint {
  display: inline-block;
  animation: btn-arrow-nudge 1.6s ease-in-out infinite;
}
.btn:hover .btn-arrow-hint { animation-play-state: paused; }
@keyframes btn-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.btn--secondary { background: transparent; color: var(--text); border: 1.5px solid rgba(26,23,20,.18); }
.btn--secondary:hover { border-color: var(--text); }
.btn--outline { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.32); }
.btn--outline:hover { background: rgba(255,255,255,.22); }
.btn--sm { padding: 14px 24px; font-size: 14.5px; }

.cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.link-arrow {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-heading { max-width: 720px; margin-bottom: 60px; }
.section-heading h2 { font-size: 50px; line-height: 1.04; }
.section-heading--center { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading--full { max-width: none; }
.section-heading--center h2 { text-wrap: balance; margin-left: auto; margin-right: auto; }
.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(280px, 360px);
  justify-content: space-between;
  align-items: end;
  column-gap: 56px;

  max-width: none;
  margin-bottom: 56px;
}

.section-heading--split > div {
  max-width: 660px;
}

.section-heading__note {
  justify-self: end;
  max-width: 330px;
  margin: 0;

  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.section-container { padding: 104px 40px; }
main section + section { border-top: 1px solid var(--border-soft); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 18px 0;
  background: transparent;
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px 0 26px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(26,23,20,.08);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(26,23,20,.09);
}

.site-header .logo img { height: 70px; width: auto; }

.main-nav { display: flex; align-items: stretch; gap: 4px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  text-align: right;
}
.main-nav a:hover,
.main-nav a.active { background: rgba(224,31,26,.07); }
.main-nav .step { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }

.nav-item--dropdown { position: relative; }
.nav-item--dropdown .nav-label { display: inline-flex; align-items: center; gap: 5px; }

.nav-item--dropdown__trigger { display: flex; align-items: center; gap: 2px; }

.nav-dropdown-toggle {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-muted);
  pointer-events: none;
}
.nav-dropdown-toggle i { font-size: 10px; display: block; transition: transform .25s ease; }

.main-nav .nav-dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(26,23,20,.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transform: translateX(-50%) translateY(-14px) scaleY(.85);
  clip-path: inset(0 0 100% 0 round 16px);
  transition: opacity .3s ease, transform .55s cubic-bezier(.19,1,.22,1), clip-path .6s cubic-bezier(.19,1,.22,1), visibility .6s;
  z-index: 20;
}
.nav-dropdown li { display: block; overflow: hidden; }
.nav-dropdown a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-10px);
  transition: background .2s ease, color .2s ease, opacity .3s ease, transform .35s ease;
}
.nav-dropdown a:hover {
  background: color-mix(in srgb, var(--item-accent, var(--accent)) 10%, transparent);
  color: var(--text);
}
.nav-dropdown__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--item-accent, var(--accent));
}
.nav-dropdown__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
}

@media (min-width: 992px) {
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scaleY(1);
    clip-path: inset(0 0 0% 0 round 16px);
  }
  .nav-item--dropdown:hover .nav-dropdown a,
  .nav-item--dropdown:focus-within .nav-dropdown a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-item--dropdown:hover .nav-dropdown li:nth-child(1) a, .nav-item--dropdown:focus-within .nav-dropdown li:nth-child(1) a { transition-delay: .12s; }
  .nav-item--dropdown:hover .nav-dropdown li:nth-child(2) a, .nav-item--dropdown:focus-within .nav-dropdown li:nth-child(2) a { transition-delay: .18s; }
  .nav-item--dropdown:hover .nav-dropdown li:nth-child(3) a, .nav-item--dropdown:focus-within .nav-dropdown li:nth-child(3) a { transition-delay: .24s; }
  .nav-item--dropdown:hover .nav-dropdown li:nth-child(4) a, .nav-item--dropdown:focus-within .nav-dropdown li:nth-child(4) a { transition-delay: .3s; }
  .nav-item--dropdown:hover .nav-dropdown-toggle i,
  .nav-item--dropdown:focus-within .nav-dropdown-toggle i { transform: rotate(180deg); }
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  padding: 6px 10px;
  margin-left: auto;
}
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: inline-block; }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px 0;
  position: relative;
  overflow: hidden;
  border-top: none;
}

.hero h1 { font-size: 72px; line-height: 1.02; }
.hero .lead { margin-top: 28px; font-size: 19px; line-height: 1.65; color: var(--text-muted); max-width: 500px; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 34px 70px rgba(26,23,20,.2);
}

.badge {
  position: absolute;
  top: 22px; left: 22px;
  background: rgba(251,249,245,.92);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: black;
}

.stat-callout {
  position: absolute;
  left: -26px; bottom: 42px;
  background: #fff;
  padding: 22px 26px;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(26,23,20,.16);
  max-width: 212px;
}
.stat-callout strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  display: block;
}
.stat-callout p { font-size: 13.5px; line-height: 1.45; color: var(--text-muted); margin: 6px 0 0; }

.trust-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 68px;
  padding-bottom: 92px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.trust-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  padding-left: 26px;
  border-left: 1px solid rgba(26,23,20,.2);
  text-decoration: none;
  transition: color .2s ease;
}
.trust-logo:hover { color: var(--accent); }

/* ---------- FORTALEZAS ---------- */
.strengths { background: var(--bg-white); }

.card-grid { display: grid; gap: 28px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }

:is(.strengths .card, .card--dynamic) {
  position: relative;
  overflow: hidden;
  background: var(--bg-cream);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, opacity .6s ease;
}

/* Entrada tipo "barrido": deslizamiento horizontal más marcado que fade-up,
   con una distancia moderada para que no invada la tarjeta vecina. */
[data-aos="sweep-right"] {
  transform: translateX(-55px);
  opacity: 0;
  transition-property: transform, opacity;
}
[data-aos="sweep-right"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}
:is(.strengths .card, .card--dynamic)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tool-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
:is(.strengths .card, .card--dynamic):hover {
  transform: translateY(-8px);
  background: var(--bg-white);
  background: color-mix(in srgb, var(--tool-accent, var(--accent)) 7%, var(--bg-white));
  box-shadow: 0 24px 50px rgba(26,23,20,.14);
}
:is(.strengths .card, .card--dynamic):hover::before { transform: scaleX(1); }
:is(.strengths .card, .card--dynamic) h3 { font-size: 25px; line-height: 1.12; margin-bottom: 14px; }
:is(.strengths .card, .card--dynamic) p { font-size: 17px; line-height: 1.65; color: var(--text-muted); }
:is(.strengths .card, .card--dynamic) .link-arrow { margin-top: auto; padding-top: 24px; transition: transform .3s ease; }
:is(.strengths .card, .card--dynamic):hover .link-arrow { transform: translateX(5px); }

/* Variante compacta: mismo componente, menos relleno y tipografía menor —
   para grupos de tarjetas con poco texto (ej. los indicadores de Valor Ganado). */
.card-grid--compact .card--dynamic { padding: 26px 24px; min-height: 220px; }
.card-grid--compact .card--dynamic h3 { font-size: 19px; margin-bottom: 8px; }
.card-grid--compact .card--dynamic p { font-size: 14.5px; line-height: 1.55; }

:is(.strengths .icon, .card--dynamic .icon) {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--tool-accent-soft, rgba(224,31,26,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: background .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
:is(.strengths .icon, .card--dynamic .icon) svg { stroke: var(--tool-accent, var(--accent)); transition: stroke .35s ease; }
:is(.strengths .card, .card--dynamic):hover .icon {
  background: var(--tool-accent, var(--accent));
  transform: scale(1.1) rotate(-8deg);
}
:is(.strengths .card, .card--dynamic):hover .icon svg { stroke: #fff; }

/* Colores distintivos por herramienta, sección "Un ecosistema pensado para la construcción" */
.card--tool-riesgos     { --tool-accent: #E01F1A; --tool-accent-soft: rgba(224,31,26,.1); }
.card--tool-costos      { --tool-accent: #1F8A5C; --tool-accent-soft: rgba(31,138,92,.12); }
.card--tool-contratos   { --tool-accent: #F97316; --tool-accent-soft: rgba(249,115,22,.14); }
.card--tool-exportador  { --tool-accent: #D4A017; --tool-accent-soft: rgba(212,160,23,.16); }
#ecosistema .card .link-arrow,
.tools .card .link-arrow { color: var(--tool-accent, var(--accent)); }

/* Tema de color por página de herramienta, aplicado en <body> (hereda a hero, switcher, callout, etc.) */
.tool-theme--costos      { --tool-accent: #1F8A5C; --tool-accent-soft: rgba(31,138,92,.12); }
.tool-theme--contratos   { --tool-accent: #F97316; --tool-accent-soft: rgba(249,115,22,.14); }
.tool-theme--exportador  { --tool-accent: #D4A017; --tool-accent-soft: rgba(212,160,23,.16); }

/* ---------- CIFRAS ---------- */
.stats-panel {
  background: var(--accent);
  color: #FBF1EF;
  padding: 25px 40px;
  border-top: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid li { text-align: center; }
.stats-grid li:not(:first-child) { border-left: 1px solid rgba(255,255,255,.22); }
.stats-grid strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: #fff;
}
.stats-grid span {
  display: block;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
}

.clients-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  gap: 24px;
  will-change: transform;
  animation: clients-scroll 65s linear infinite;
}

.clients-carousel:hover .clients-track { animation-play-state: paused; }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border: 1.5px solid var(--border-soft);
  border-radius: 16px;
  background: var(--bg-white);
  transition: border-color .2s ease, box-shadow .2s ease;
  min-width: 170px;
  height: 80px;
}

.client-logo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(26,23,20,.08);
}

.client-logo-img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter .2s ease;
}

.client-logo-card:hover .client-logo-img {
  filter: grayscale(0%) opacity(1);
}

/* ---------- HERRAMIENTAS ---------- */
.tools { background: var(--bg-cream); }

.tools .card {
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.tools .card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.15;
  margin: 18px 0 12px;
}
.tools .card p { font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(224,31,26,.1);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- CASOS ---------- */
.cases { background: var(--bg-white); }

.case-card { perspective: 1400px; }

.case-card__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.45, .05, .2, 1);
}
.case-card:hover .case-card__inner { transform: rotateY(180deg); }

.case-card__face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 40px rgba(26,23,20,.12);
}

.case-card__face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__face--front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,18,16,.1) 45%, rgba(20,18,16,.72) 100%);
}

.case-card__tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  background: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-card__face--back {
  transform: rotateY(180deg);
  background: var(--text);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-card__face--back .tag {
  align-self: flex-start;
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.case-card__face--back h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.case-card__face--back p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); }
.case-card__face--back p strong { color: #fff; font-weight: 700; }

.cases .section-heading { position: relative; }
.cases .section-heading .link-arrow {
  position: absolute;
  right: 0;
  bottom: 4px;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 5px;
}

@media (max-width: 767.98px) {
  .cases .section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cases .section-heading .link-arrow {
    position: static;
    display: inline-flex;
    margin-top: 20px;
  }
  .cta-banner__inner { padding: 40px 24px; }
}

/* ---------- CIERRE / CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 0;
  border-top: none;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,18,16,.9) 35%, rgba(20,18,16,.6) 68%, rgba(224,31,26,.42));
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.cta-banner__content {
  color: #fff;
  max-width: 760px;
}
.cta-banner__content .eyebrow { color: rgba(255,255,255,.8); }
.cta-banner__content h2 { font-size: 52px; line-height: 1.04; color: #fff; }
.cta-banner__content .lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 520px; }

/* ---------- PAGE HERO (subpáginas) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 0;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,18,16,.88) 30%, rgba(20,18,16,.55) 70%, rgba(224,31,26,.38));
  background: linear-gradient(100deg, rgba(20,18,16,.88) 30%, rgba(20,18,16,.55) 70%, color-mix(in srgb, var(--tool-accent, var(--accent)) 45%, transparent));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 64px 72px;
}

.page-hero__content { max-width: 720px; color: #fff; }
.page-hero__eyebrow { color: rgba(255,255,255,.8); }
.page-hero__eyebrow a { color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.page-hero__eyebrow a:hover { color: #fff; text-decoration: underline; }
.page-hero__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  margin-right: 8px;
  border-radius: 7px;
  background: var(--tool-accent, var(--accent));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.page-hero__number-row { margin: 0 0 18px; }
.page-hero__content h1 { font-size: 56px; line-height: 1.05; color: #fff; }
.page-hero__title--numbered { display: flex; align-items: center; gap: 16px; }
.page-hero__number--title { flex: none; margin-right: 0; }
.page-hero__content .lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 620px; }

/* ---------- CONTENIDO EDITORIAL (páginas de servicio/herramienta) ---------- */
.article-container { padding: 104px 40px; }

/* ---------- CONTACTO (página dedicada) ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.contact-list__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(224,31,26,.1);
  color: var(--accent);
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list a { color: var(--text); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.contact-map {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,23,20,.12);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}
.contact-map--placeholder .contact-map__bot {
  width: 460px;
  max-width: 75%;
  height: auto;
}

@media (max-width: 991.98px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-map { min-height: 320px; }
}

.pain-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
}
.pain-card p { margin: 0; }

/* ---------- PROBLEM CARDS (giro con video de respuesta) ---------- */
.problem-card { perspective: 1400px; cursor: pointer; outline: none; }

.problem-card__inner {
  position: relative;
  width: 100%;
  min-height: 380px;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.45, .05, .2, 1);
}
.problem-card:hover .problem-card__inner,
.problem-card:focus-within .problem-card__inner,
.problem-card.is-flipped .problem-card__inner {
  transform: rotateY(180deg);
}

.problem-card__face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 40px rgba(26,23,20,.12);
}

.problem-card__face--front {
  background: var(--text);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.problem-card__face--front .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--tool-accent, var(--accent)) 18%, transparent);
}
.problem-card__face--front .icon svg { stroke: var(--tool-accent, var(--accent)); }
.problem-card__face--front p {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
}
.problem-card__hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.problem-card__face--back {
  transform: rotateY(180deg);
  background: #000;
}
.problem-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

@media (max-width: 767.98px) {
  .problem-card__inner { min-height: 420px; }
}

/* ---------- TIMELINE (Cómo lo resolvemos) ---------- */
.timeline {
  position: relative;
  margin-top: 56px;
  padding: 4px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(224,31,26,.15);
  border-radius: 3px;
}
.timeline__progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  transition: height 1.6s cubic-bezier(.16,1,.3,1);
}
.timeline__progress.is-filled { height: 100%; }

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  min-height: 160px;
  margin-bottom: 44px;
}
.timeline-item:last-child { margin-bottom: 0; }

/* El nodo se centra con posición absoluta sobre la caja del item (altura y
   posición fijas), en vez de depender de cómo el grid reparta el espacio. */
.timeline-item__node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s ease, color .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.timeline-item__node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(224,31,26,.35);
  animation: timeline-pulse 2.6s ease-out infinite;
}
.timeline-item:nth-child(3) .timeline-item__node::after { animation-delay: .5s; }
.timeline-item:nth-child(4) .timeline-item__node::after { animation-delay: 1s; }
.timeline-item:nth-child(5) .timeline-item__node::after { animation-delay: 1.5s; }
.timeline-item:nth-child(6) .timeline-item__node::after { animation-delay: 2s; }

@keyframes timeline-pulse {
  0%   { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.timeline-item:hover .timeline-item__node {
  background: var(--accent);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

.timeline-item__content {
  grid-column: 1;
  align-self: center;
  text-align: right;
  background: var(--bg-cream);
  border-radius: 20px;
  padding: 26px 28px;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}
.timeline-item:nth-child(odd) .timeline-item__content {
  grid-column: 2;
  text-align: left;
}
.timeline-item:hover .timeline-item__content {
  transform: translateY(-6px);
  background: var(--bg-white);
  box-shadow: 0 20px 44px rgba(26,23,20,.12);
}
.timeline-item__content h3 { font-size: 19px; margin-bottom: 8px; }
.timeline-item__content p { font-size: 17px; line-height: 1.65; color: var(--text-muted); margin: 0; }

@media (max-width: 767.98px) {
  .timeline::before,
  .timeline__progress { left: 25px; }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 60px;
  }
  .timeline-item__node { left: 25px; width: 46px; height: 46px; }
  .timeline-item__content,
  .timeline-item:nth-child(odd) .timeline-item__content {
    grid-column: 1;
    text-align: left;
  }
}

/* ---------- BENEFIT LIST (Lo que gana con esta herramienta) ---------- */
.benefit-panel {
  position: relative;
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 44px 48px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-cream);
  background: color-mix(in srgb, var(--tool-accent, var(--accent)) 8%, var(--bg-cream));
  box-shadow: 0 24px 60px rgba(26,23,20,.08);
}
.benefit-panel--wide { max-width: none; }
.benefit-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--benefit-bg);
  background-size: cover;
  background-position: center;
  opacity: .26;
  filter: grayscale(15%);
}
.benefit-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--bg-cream) 10%, rgba(251,249,245,.6) 55%, var(--bg-cream) 100%);
  background: linear-gradient(120deg, color-mix(in srgb, var(--tool-accent, var(--accent)) 8%, var(--bg-cream)) 10%, color-mix(in srgb, var(--tool-accent, var(--accent)) 4%, rgba(251,249,245,.55)) 55%, color-mix(in srgb, var(--tool-accent, var(--accent)) 8%, var(--bg-cream)) 100%);
}
.benefit-panel .benefit-switcher,
.benefit-panel .benefit-flow { position: relative; z-index: 1; }

.benefit-switcher {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
  min-height: 300px;
}
.benefit-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.benefit-tab {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  transition: background .3s ease;
}
.benefit-tab:hover { background: rgba(255,255,255,.5); }
.benefit-tab.is-active { background: rgba(255,255,255,.85); box-shadow: 0 8px 20px rgba(26,23,20,.06); }
.benefit-tab__index {
  flex: 0 0 auto;
  width: 58px;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(26,23,20,.2);
  transition: color .3s ease, -webkit-text-stroke-color .3s ease;
}
.benefit-tab.is-active .benefit-tab__index {
  color: var(--tool-accent, var(--accent));
  -webkit-text-stroke: 1.5px transparent;
}
.benefit-tab__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18.5px;
  color: var(--text-muted);
  transition: color .3s ease;
}
.benefit-tab.is-active .benefit-tab__label { color: var(--text); }

.benefit-panes { position: relative; padding: 18px 24px; }
.benefit-pane {
  position: relative;
  display: none;
}
.benefit-pane.is-active {
  display: block;
  animation: benefit-pane-in .5s cubic-bezier(.16,1,.3,1);
}
@keyframes benefit-pane-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.benefit-pane::before {
  content: attr(data-index);
  position: absolute;
  top: -30px;
  right: -10px;
  font-family: var(--font-heading);
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(224,31,26,.32);
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--tool-accent, var(--accent)) 45%, transparent);
  background-image: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--tool-accent, var(--accent)) 55%, transparent) 0,
    color-mix(in srgb, var(--tool-accent, var(--accent)) 55%, transparent) 2px,
    transparent 2px,
    transparent 8px);
  -webkit-background-clip: text;
  background-clip: text;
  z-index: -1;
  pointer-events: none;
}
.benefit-pane__icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--tool-accent-soft, rgba(224,31,26,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.benefit-pane__icon svg { stroke: var(--tool-accent, var(--accent)); }
.benefit-pane h3 { font-size: 27px; margin-bottom: 14px; }
.benefit-pane p { font-size: 18px; line-height: 1.7; color: var(--text-muted); max-width: 520px; margin: 0; }

@media (max-width: 767.98px) {
  .benefit-switcher { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .benefit-tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .benefit-tab { flex: 1 1 calc(50% - 8px); flex-direction: column; align-items: flex-start; gap: 8px; }
  .benefit-tab__index { width: auto; font-size: 32px; }
  .benefit-panes { padding: 4px 4px; }
  .benefit-pane::before { font-size: 90px; top: -14px; }
  .benefit-pane h3 { font-size: 22px; }
  .benefit-pane p { font-size: 16.5px; }
}

/* ---------- BENEFIT FLOW (franja conectada de ancho completo) ---------- */
.benefit-flow {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.benefit-flow::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-soft);
}
.benefit-flow__progress {
  position: absolute;
  top: 80px;
  left: 40px;
  right: 40px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--tool-accent, var(--accent)), color-mix(in srgb, var(--tool-accent, var(--accent)) 55%, transparent));
  transition: transform 1.5s linear;
}
.benefit-flow__progress.is-filled { transform: scaleX(1); }
.benefit-flow-item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 24px 0;
}
.benefit-flow-item__index {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(224,31,26,.32);
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--tool-accent, var(--accent)) 32%, transparent);
  transition: color .3s ease, -webkit-text-stroke-color .3s ease;
}
.benefit-flow-item:hover .benefit-flow-item__index {
  color: var(--tool-accent, var(--accent));
  -webkit-text-stroke-color: var(--tool-accent, var(--accent));
}
.benefit-flow-item__node {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: border-color .35s ease, background .35s ease, transform .35s ease;
}
.benefit-flow-item__node svg { stroke: var(--tool-accent, var(--accent)); transition: stroke .35s ease; }
.benefit-flow-item:hover .benefit-flow-item__node {
  border-color: var(--tool-accent, var(--accent));
  background: var(--tool-accent, var(--accent));
  transform: translateY(-6px) scale(1.06);
}
.benefit-flow-item:hover .benefit-flow-item__node svg { stroke: #fff; }
.benefit-flow-item p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 230px;
  margin: 0;
}

@media (max-width: 767.98px) {
  .benefit-flow { flex-direction: column; gap: 36px; padding-top: 0; }
  .benefit-flow::before { top: 0; bottom: 0; left: 29px; right: auto; width: 2px; height: auto; }
  .benefit-flow__progress {
    top: 0; bottom: 0; left: 29px; right: auto; width: 2px; height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }
  .benefit-flow__progress.is-filled { transform: scaleY(1); }
  .benefit-flow-item { flex-direction: row; align-items: flex-start; text-align: left; padding: 0; gap: 20px; }
  .benefit-flow-item__index { position: absolute; top: -30px; left: 0; font-size: 32px; }
  .benefit-flow-item__node { flex: 0 0 auto; margin-bottom: 0; }
  .benefit-flow-item p { max-width: none; padding-top: 14px; }
}

.callout {
  position: relative;
  overflow: hidden;
  background: var(--tool-accent, var(--accent));
  border-radius: 24px;
  padding: 40px 40px;
  margin: 56px auto 0;
  max-width: 720px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(224,31,26,.28);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--tool-accent, var(--accent)) 28%, transparent);
  transition: transform .35s ease, box-shadow .35s ease;
}
/* En las fichas de recursos el callout suele ser lo primero dentro de su
   sección: el margin-top de 56px se sumaba al padding-top de .section-container,
   dejando un espacio excesivo arriba de la tarjeta roja. Cuando es el primer
   elemento del wrap no hace falta ese margen extra (cuando va después de
   otro contenido, como el card-grid de valor ganado, sí se conserva). */
.vg-wrap > .callout:first-child { margin-top: 0; }
.callout:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(224,31,26,.38);
  box-shadow: 0 28px 64px color-mix(in srgb, var(--tool-accent, var(--accent)) 38%, transparent);
}
.callout::before {
  content: "\201C";
  position: absolute;
  top: -34px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,.14);
  pointer-events: none;
}
.callout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: callout-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes callout-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.callout__label {
  position: relative;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: none;
  color: #fff;
  margin-bottom: 14px;
}
.callout p:not(.callout__label) {
  position: relative;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  margin: 0 auto;
  max-width: 700px;
}
.callout p:not(.callout__label) + p { margin-top: 14px; }
.callout p a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.callout p a:hover { color: rgba(255,255,255,.75); }

@media (max-width: 767.98px) {
  .page-hero { min-height: 340px; }
  .page-hero__inner { padding: 96px 24px 56px; }
  .page-hero__content h1 { font-size: 36px; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-soft);
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 26px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 40px;
}

.footer-brand {
  justify-self: start;
}

.footer-brand img {
  height: 82px;
  width: auto;
}

.footer-social,
.footer-contact {
  justify-self: center;
  text-align: center;
}

.footer-contact {
  justify-self: end;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1;
}

.footer-title--accent {
  color: var(--accent);
  font-weight: 700;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #8f9698;
  color: #fff;
  text-decoration: none;
  font-size: 15px;

  transition: background .2s ease, transform .2s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-contact .btn {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.footer-legal {
  border-top: 1px solid rgba(26,23,20,.08);
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;

  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;

  font-size: 13px;
  color: var(--text-faint);
}

.footer-legal a {
  color: var(--text-faint);
  text-decoration: underline;
}
.footer-legal a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { margin-top: 40px; }
  .card-grid--3,
  .card-grid--4,
  .stats-grid,
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(26,23,20,.12);
    padding: 8px;
    flex-direction: column;
  }
  .main-nav ul { flex-direction: column; }
  .main-nav a { align-items: center; text-align: center; }

  .nav-item--dropdown__trigger { justify-content: center; gap: 10px; }
  .nav-dropdown-toggle {
    pointer-events: auto;
    cursor: pointer;
  }
  .main-nav .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    clip-path: none;
    box-shadow: none;
    background: rgba(26,23,20,.03);
    margin: 0 auto 4px;
    width: calc(100% - 16px);
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav-dropdown a { justify-content: center; opacity: 1; transform: none; }
  .nav-item--dropdown.is-open .nav-dropdown-toggle i { transform: rotate(180deg); }
  .nav-item--dropdown.is-open .nav-dropdown {
    max-height: 260px;
    padding: 8px;
  }
}

@media (max-width: 575.98px) {
  .section-container { padding: 72px 24px; }
  .article-container { padding: 72px 24px; }
  .hero h1 { font-size: 44px; }
  .section-heading h2,
  .cta-banner__content h2 { font-size: 34px; }
  .cta-banner__inner { padding: 48px 24px; }
  .stats-panel { padding: 25px 24px; }
  .card-grid--3,
  .card-grid--4,
  .card-grid--2,
  .stats-grid,
  .footer-columns { grid-template-columns: 1fr; }
  .stats-grid li:not(:first-child) { border-left: none; border-top: 1px solid rgba(255,255,255,.22); padding-top: 24px; }
}

@media (max-width: 767.98px) {
  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .section-heading__note {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding: 36px 24px 30px;
  }

  .footer-brand,
  .footer-social,
  .footer-contact {
    justify-self: center;
  }

  .footer-brand img {
    margin: 0 auto;
  }

  .footer-legal {
    justify-content: center;
    text-align: center;
    padding: 18px 24px;
  }
}

/* PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader__logo {
  width: min(260px, 45vw);
  height: auto;
  animation: preloader-pulse 1.1s ease-in-out infinite;
}
.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.86); opacity: .55; }
}

/* BOTÓN VOLVER ARRIBA */
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
  z-index: 999;
  box-shadow: 0 12px 26px rgba(26,23,20,.22);
}
.back-to-top:hover { background: var(--accent-hover); }
.back-to-top--visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 767.98px) {
  .back-to-top { left: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 18px; }
}

/* CHAT WIDGET */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}
.chat-widget__link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-decoration: none;
}
.chat-widget__bubble {
  position: relative;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 12px 26px rgba(224,31,26,.35);
  white-space: nowrap;
  animation: chat-bubble-pop .4s ease .4s both, chat-bubble-bounce 3.2s ease-in-out 1.2s infinite;
}
.chat-widget__bubble::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.chat-widget__avatar {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(26,23,20,.28));
  animation: chat-float 2.6s ease-in-out infinite;
}

.chat-widget__close {
  position: absolute;
  top: -36px;
  right: 0;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(26,23,20,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(26,23,20,.18);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.chat-widget__close:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.chat-widget__restore {
  display: none;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(224,31,26,.35);
  animation: chat-bubble-bounce 3.2s ease-in-out infinite;
  transition: background .2s ease;
}
.chat-widget__restore:hover { background: var(--accent-hover); }

.chat-widget--minimized .chat-widget__link,
.chat-widget--minimized .chat-widget__close { display: none; }
.chat-widget--minimized .chat-widget__restore { display: inline-flex; }

@keyframes chat-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes chat-bubble-pop {
  from { opacity: 0; transform: translateY(6px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chat-bubble-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 767.98px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-widget__avatar { width: 76px; height: 76px; }
  .chat-widget__bubble { font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 420px) {
  .chat-widget__bubble { display: none; }
}

/* ---------- RECURSOS ---------- */
.resource-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.resource-stats li { position: relative; text-align: center; padding: 4px 36px; }
.resource-stats li:first-child { padding-left: 0; }
.resource-stats li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 32px;
  background: var(--accent);
  box-shadow: 7px 0 0 var(--accent);
}
.resource-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.resource-stats span {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-heading__lead {
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
}

.resource-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 15px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Video destacado */
.video-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,23,20,.1);
}
.video-feature__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: cover;
  border: 0;
}
.video-feature__copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.video-feature__copy .tag { align-self: flex-start; margin-bottom: 16px; }
.video-feature__copy h3 { font-size: 30px; line-height: 1.18; margin-bottom: 14px; }
.video-feature__copy p { font-size: 16px; line-height: 1.68; color: var(--text-muted); margin: 0; }

/* Repositorio de artículos */
.resource-grid.card-grid--3 { gap: 26px; }
.resource-card {
  background: var(--bg-white);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(26,23,20,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.resource-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(26,23,20,.13); }
.resource-card.is-hidden { display: none; }

.resource-card__top {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--text) 0%, #262322 100%);
  padding: 16px;
  overflow: hidden;
}
.resource-card__top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-card__top::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,18,16,.18) 0%, rgba(20,18,16,.78) 100%);
}
.resource-card__folio {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: .04em;
}
.resource-card__ribbon {
  position: absolute;
  z-index: 2;
  top: 16px; right: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px 6px 16px;
  border-radius: 999px 0 0 999px;
}
.resource-card__icon {
  position: absolute;
  z-index: 2;
  bottom: 16px; left: 16px;
  color: rgba(255,255,255,.8);
}
.resource-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.resource-card__body h3 { font-size: 20px; line-height: 1.22; margin-bottom: 10px; }
.resource-card__body p { font-size: 14px; line-height: 1.62; color: var(--text-muted); margin: 0 0 20px; flex: 1; }
.resource-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--border-soft);
  padding-top: 14px;
}
.resource-card__meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.resource-card .link-arrow { transition: transform .3s ease; }
.resource-card:hover .link-arrow { transform: translateX(5px); }

.resource-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
  border: 1px dashed var(--border-soft);
  border-radius: 20px;
  margin-top: 26px;
}
.resource-empty.is-visible { display: block; }

/* Franja de newsletter */
.strip { background: var(--accent); }
.strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.strip h3 { color: #fff; font-size: 25px; margin-bottom: 6px; }
.strip p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.85); }
.strip__form { display: flex; gap: 10px; flex: 1; max-width: 420px; min-width: 280px; }
.strip__form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.14);
  color: #fff;
  font-size: 14px;
}
.strip__form input::placeholder { color: rgba(255,255,255,.65); }

@media (max-width: 767.98px) {
  .video-feature { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .resource-stats { flex-direction: column; align-items: center; gap: 20px; }
  .resource-stats li { padding: 0; }
  .resource-stats li:not(:first-child)::before { display: none; }
  .resource-stats li:not(:first-child) { border-top: 1px solid var(--border-soft); padding-top: 20px; }
  .strip__inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   RECURSO · VALOR GANADO — TABLERO INTERACTIVO
   Sección "El modelo, en un solo tablero" de recursos/valor-ganado/ 
   Fondo blanco: reutiliza los mismos tokens de marca, sin paleta propia.
   ========================================================================= */
.vg-board {
  --b-bg: var(--bg-white);
  --b-text: var(--text);
  --b-muted: var(--text-muted);
  --b-faint: var(--text-faint);
  --b-line: rgba(26, 23, 20, .12);
  --b-grid: rgba(26, 23, 20, .07);
  --b-accent: var(--accent);

  background: var(--b-bg);
}
.vg-wrap { max-width: 1280px; margin: 0 auto; }

.vg-board__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--b-text);
}
.vg-board__head h3 { font-family: var(--font-heading); font-size: 26px; margin: 0 0 6px; color: var(--b-text); }
.vg-board__head p { margin: 0; font-size: 13.5px; color: var(--b-muted); max-width: 52ch; }
.vg-board__cuts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.vg-board__cuts-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--b-faint);
}
.vg-cuts { display: flex; border: 2px solid var(--b-text); border-radius: 4px; overflow: hidden; }
.vg-cuts button {
  appearance: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 9px 16px;
  border: 0;
  border-left: 1px solid var(--b-line);
  cursor: pointer;
  background: transparent;
  color: var(--b-text);
  transition: background .15s ease, color .15s ease;
}
.vg-cuts button:first-child { border-left: 0; }
.vg-cuts button:hover { background: rgba(224, 31, 26, .08); }
.vg-cuts button.is-active { background: var(--b-accent); color: #fff; }

/* Indicadores del corte */
.vg-kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 2px solid var(--b-line);
}
.vg-kpi {
  padding: 22px 16px 26px;
  min-width: 0;
  border-left: 1px solid var(--b-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vg-kpi:first-child { border-left: 0; padding-left: 0; }
.vg-kpi.is-sep { border-left: 2px solid var(--b-text); }
.vg-kpi__label {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--b-faint);
}
.vg-kpi__value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--b-text);
}
.vg-kpi__foot { font-size: 10.5px; color: var(--b-faint); }
.vg-kpi.is-accent .vg-kpi__label,
.vg-kpi.is-accent .vg-kpi__value { color: var(--b-accent); }
.vg-kpi__value.is-bad,
.vg-kpi__foot.is-bad { color: var(--b-accent); }

/* Curva S */
.vg-chart { padding: 32px 0 36px; border-bottom: 2px solid var(--b-line); }
.vg-chart__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.vg-chart__head h3 { font-family: var(--font-heading); font-size: 24px; margin: 0 0 5px; color: var(--b-text); }
.vg-chart__head p { margin: 0; font-size: 13px; color: var(--b-muted); }
.vg-legend { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.vg-legend span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.vg-legend i { display: block; width: 26px; height: 3px; background: currentColor; }
.vg-legend i.dash { height: 0; border-top: 3px dashed currentColor; background: none; }

.vg-plot { position: relative; }
.vg-plot svg { width: 100%; height: auto; display: block; overflow: visible; }

/* La tipografía de las gráficas se aplica por CSS y no como atributo SVG,
   porque var() dentro de font-family no es fiable en todos los navegadores. */
.vg-board svg text { font-family: var(--font-body); }

.vg-tip {
  position: absolute;
  top: 0;
  /* El top real lo fija showTip() en JS, según la altura del punto activo;
     translateY(-100%) ancla el recuadro por su borde inferior a ese punto,
     para que quede arriba y no lo cubra en los meses donde la curva ya está
     cerca del techo del tablero. */
  transform: translate(-50%, -100%);
  background: var(--text);
  color: #fff;
  padding: 11px 15px;
  min-width: 172px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  box-shadow: 0 18px 40px rgba(26, 23, 20, .28);
  z-index: 3;
}
.vg-tip.is-on { opacity: 1; }
.vg-tip__mes {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #FF8A79;
  margin-bottom: 7px;
}
.vg-tip dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 16px;
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.vg-tip dt { color: rgba(255, 255, 255, .68); }
.vg-tip dd { margin: 0; text-align: right; font-weight: 700; }
.vg-tip .is-dev dt, .vg-tip .is-dev dd { color: #FF8A79; }

.vg-trends { display: grid; grid-template-columns: 1fr 1fr; }
.vg-trend { padding: 32px 36px 34px 0; }
.vg-trend + .vg-trend { padding: 32px 0 34px 36px; border-left: 1px solid var(--b-line); }
.vg-trend h4 { font-family: var(--font-heading); font-size: 19px; margin: 0 0 3px; font-weight: 700; color: var(--b-text); }
.vg-trend p { margin: 0 0 16px; font-size: 12.5px; color: var(--b-muted); }
.vg-trend svg { width: 100%; height: auto; display: block; }

.vg-board__foot {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--b-faint);
  border-top: 2px solid var(--b-line);
}

@media (max-width: 1199.98px) {
  .vg-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vg-kpi { border-left: 1px solid var(--b-line); padding-left: 16px; }
  .vg-kpi:nth-child(4n+1) { border-left: 0; padding-left: 0; }
  .vg-kpi.is-sep { border-left: 1px solid var(--b-line); }
}
@media (max-width: 991.98px) {
  .vg-trends { grid-template-columns: 1fr; }
  .vg-trend { padding: 28px 0; border-bottom: 1px solid var(--b-line); }
  .vg-trend + .vg-trend { padding: 28px 0; border-left: 0; border-bottom: 0; }
}
@media (max-width: 767.98px) {
  .vg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg-kpi:nth-child(4n+1) { border-left: 1px solid var(--b-line); padding-left: 16px; }
  .vg-kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .vg-board__head { align-items: flex-start; }
}

/* =========================================================================
   RECURSO · VALOR GANADO — RESTO DEL ARTÍCULO
   Índice pegajoso, "en corto", definiciones, tablas de ejemplo y
   conclusiones. Reutiliza los componentes del sitio (section-heading,
   card-grid/card--dynamic, callout, timeline, tag) y solo agrega lo que
   no tiene equivalente: índice, caja de resumen, tablas y veredictos.
   ========================================================================= */

#punto-de-partida, #que-es, #ejemplo-costo,
#ejemplo-programa, #tablero, #errores, #emsi {
  scroll-margin-top: calc(var(--vg-header-h, 96px) + 60px);
}

/* ---------- Índice pegajoso ---------- */
.vg-subnav {
  position: sticky;
  top: var(--vg-header-h, 96px);
  z-index: 40;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.vg-subnav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vg-subnav__inner::-webkit-scrollbar { display: none; }
.vg-subnav a {
  flex: none;
  padding: 15px 2px;
  margin-right: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.vg-subnav a:hover { color: var(--text); }
.vg-subnav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.vg-subnav__pdf {
  margin-left: auto;
  margin-right: 0;
  padding-left: 16px;
  border-left: 1px solid var(--border-soft);
  color: var(--accent) !important;
}
.vg-subnav__pdf:hover { color: var(--accent-hover) !important; }

/* ---------- Sigla grande (tarjetas VP · VG · C) ---------- */
.vg-sigla {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

/* ---------- Chip de fórmula (indicadores y encabezados de tabla) ---------- */
.formula-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(26, 23, 20, .05);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---------- Tablas de datos (ejemplos de costo y programa) ---------- */
.vg-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
}
.vg-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
}
.vg-table th {
  text-align: right;
  padding: 16px 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--text);
  white-space: nowrap;
}
.vg-table th:first-child,
.vg-table td:first-child { text-align: left; padding-left: 24px; }
.vg-table th:last-child,
.vg-table td:last-child { padding-right: 24px; }
.vg-table td {
  text-align: right;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.vg-table tr:last-child td { border-bottom: 0; }
.vg-table tbody tr { transition: background .15s ease; }
.vg-table tbody tr:hover td { background: rgba(224, 31, 26, .06); }
.vg-table tr.is-total td {
  font-weight: 800;
  font-size: 15.5px;
  border-bottom: 2px solid var(--text);
}
.vg-table tr.is-group td {
  font-weight: 700;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}
.vg-table tr.is-child td:first-child { padding-left: 46px; color: var(--text-muted); }
.vg-table .neg { color: var(--accent); font-weight: 600; }

.vg-bar {
  position: relative;
  height: 10px;
  min-width: 120px;
  background: rgba(26, 23, 20, .07);
  border-radius: 2px;
}
.vg-bar__zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--text); }
.vg-bar__fill {
  position: absolute;
  top: 0; bottom: 0;
  width: 0;
  background: var(--text);
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(.16, 1, .3, 1);
}
.vg-bar__fill.neg { background: var(--accent); }
.vg-table td.vg-bar-cell { width: 22%; }

/* ---------- Conclusión ejecutiva ---------- */
.vg-verdict {
  margin-top: 32px;
  background: var(--text);
  color: rgba(251, 249, 245, .82);
  border-radius: 22px;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
.vg-verdict__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.vg-verdict__kpis { display: grid; gap: 18px; }
.vg-verdict__kpi strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.vg-verdict__kpi span {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(251, 249, 245, .55);
}
.vg-verdict__kpi.is-bad strong { color: #FF8A79; }
.vg-verdict p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.68; }
.vg-verdict p:last-child { margin-bottom: 0; }
.vg-verdict strong.hl { color: #fff; font-weight: 700; }

@media (max-width: 991.98px) {
  .vg-subnav__inner { padding: 0 24px; }
  .vg-verdict { grid-template-columns: 1fr; gap: 26px; padding: 32px 26px; }
  .vg-verdict__kpis { grid-template-columns: repeat(2, 1fr); display: grid; }
}
@media (max-width: 575.98px) {
  .vg-subnav__inner { padding: 0 20px; }
  .vg-verdict__kpis { grid-template-columns: 1fr; }
  .vg-verdict__kpi strong { font-size: 34px; }
}

/* =========================================================================
   ORBIT — diagrama circular con foto central
   Usado en "La supervisión en el sitio" (gerencia-supervision.php):
   dos columnas de puntos a los lados de una foto con anillo decorativo,
   en vez de una cuadrícula de tarjetas.
   ========================================================================= */
.orbit {
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.orbit__col { display: flex; flex-direction: column; gap: 64px; }
.orbit__item { display: flex; gap: 20px; align-items: flex-start; }
.orbit__item .icon {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(224, 31, 26, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.orbit__item .icon svg { stroke: var(--accent); width: 30px; height: 30px; }
.orbit__item:hover .icon { background: var(--accent); transform: scale(1.08) rotate(-8deg); }
.orbit__item:hover .icon svg { stroke: #fff; }
.orbit__item h3 { font-size: 20px; margin: 0 0 8px; }
.orbit__item p { font-size: 15.5px; line-height: 1.62; color: var(--text-muted); margin: 0; }

.orbit__center { display: flex; align-items: center; justify-content: center; }
.orbit-ring {
  position: relative;
  width: 360px;
  height: 360px;
}
.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px dashed rgba(26, 23, 20, .18);
}
.orbit-ring__img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 54px rgba(26, 23, 20, .22);
}
.orbit-ring__dot {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 4px solid var(--accent);
  transform: translate(-50%, -50%);
}
.orbit-ring__dot--tl { top: 14.6%; left: 14.6%; }
.orbit-ring__dot--tr { top: 14.6%; left: 85.4%; }
.orbit-ring__dot--bl { top: 85.4%; left: 14.6%; }
.orbit-ring__dot--br { top: 85.4%; left: 85.4%; border-color: rgba(26, 23, 20, .3); }

/* Cuarto del anillo que se ilumina al pasar el cursor sobre la tarjeta
   correspondiente (ver el toggle de la clase .is-on en main.js). El anillo
   arranca "vacío" (solo el trazo punteado de .orbit-ring::before): cada
   .orbit-ring__quad es un anillo completo recortado a un solo cuadrante con
   clip-path, apagado por defecto, para que la iluminación de cada uno se
   note al pasar el cursor. */
.orbit-ring__quad {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.orbit-ring__quad.is-on { opacity: 1; }
.orbit-ring__quad--tl { clip-path: inset(0 50% 50% 0); }
.orbit-ring__quad--tr { clip-path: inset(0 0 50% 50%); }
.orbit-ring__quad--bl { clip-path: inset(50% 50% 0 0); }
.orbit-ring__quad--br { clip-path: inset(50% 0 0 50%); }

@media (max-width: 991.98px) {
  .orbit { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .orbit__center { order: -1; }
  .orbit-ring { width: 300px; height: 300px; }
  .orbit__col { flex-direction: row; flex-wrap: wrap; max-width: 640px; }
  .orbit__col > .orbit__item { flex: 1 1 240px; }
}
@media (max-width: 575.98px) {
  .orbit-ring { width: 240px; height: 240px; }
  .orbit__col { flex-direction: column; }
}

/* =========================================================================
   FICHA DE ARTÍCULO — usado en recursos/analisis-riesgo-presupuestos/
   Ficha de la publicación de origen (bajo el hero), subencabezado de
   bloque y tarjeta de descarga del PDF completo.
   ========================================================================= */
.art-source { background: var(--bg-white); border-bottom: 1px solid var(--border-soft); }
.art-source__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 32px;
}
.art-source__item { border-left: 1px solid var(--border-soft); padding-left: 22px; min-width: 0; }
.art-source__item:first-child { border-left: 0; padding-left: 0; }
.art-source__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.art-source__value {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.art-source__value small { display: block; font-weight: 500; font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.art-source__grab {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.art-source__grab p { margin: 0; font-size: 14px; color: var(--text-muted); }
.art-source__grab p strong { color: var(--text); font-weight: 700; }

.art-subhead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 52px 0 18px;
}
.art-subhead h3 { font-family: var(--font-heading); font-size: 20px; margin: 0; }

.art-pdf {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 34px 36px;
  margin-top: 56px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.art-pdf:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(26, 23, 20, .1); }
.art-pdf__icon {
  flex: none;
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224, 31, 26, .08);
  color: var(--accent);
}
.art-pdf__icon svg { display: block; }
.art-pdf h3 { font-family: var(--font-heading); font-size: 21px; margin: 0 0 7px; }
.art-pdf p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); max-width: 62ch; }
.art-pdf__meta {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--text-faint);
}

@media (max-width: 991.98px) {
  .art-source__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; }
  .art-source__item:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 767.98px) {
  .art-subhead { margin-top: 40px; }
  .art-pdf { grid-template-columns: auto 1fr; gap: 18px 20px; padding: 26px 24px; }
  .art-pdf .btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 575.98px) {
  .art-source__inner { grid-template-columns: 1fr; }
  .art-source__item { border-left: 0; padding-left: 0; }
}

/* ---------- Lista de ideas del modelo, numerada con ordinal en contorno ---------- */
.art-ideas { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--text); }

.art-idea {
  position: relative;
  display: grid;
  grid-template-columns: minmax(96px, 150px) 1fr;
  align-items: start;
  gap: 0 40px;
  padding: 38px 0 36px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .35s ease;
}
.art-idea::before {
  content: '';
  position: absolute;
  left: -28px; top: 0; bottom: -1px;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.art-idea:hover::before { transform: scaleY(1); }

.art-idea__num {
  font-family: var(--font-heading);
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(26, 23, 20, .22);
  transition: -webkit-text-stroke-color .4s ease, color .4s ease;
  user-select: none;
}
.art-idea:hover .art-idea__num {
  -webkit-text-stroke-color: var(--accent);
  color: rgba(224, 31, 26, .06);
}

.art-idea__body { padding-top: 6px; max-width: 60ch; }
.art-idea__body h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
.art-idea__body p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); }

.art-idea__tag {
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(224, 31, 26, .3);
  border-radius: 999px;
  padding: 4px 10px;
}

@media (max-width: 767.98px) {
  .art-idea { grid-template-columns: 1fr; gap: 6px; padding: 26px 0 24px; }
  .art-idea::before { left: -14px; }
  .art-idea__num { font-size: 46px; }
  .art-idea__body { padding-top: 0; }
  .art-idea__tag { margin: 8px 0 0; display: block; width: max-content; }
}

/* ---------- Marquesina de la fuente (PDF), cierra el resumen del artículo ---------- */
.art-marquee {
  position: relative;
  overflow: hidden;
  background: var(--text);
  color: var(--bg-white);
  border-radius: 24px;
  padding: 54px 56px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.art-marquee::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 31, 26, .38), transparent 68%);
  pointer-events: none;
}
.art-marquee > * { position: relative; z-index: 1; }

.art-marquee__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.art-marquee__eyebrow i {
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.art-marquee h3 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  color: var(--bg-white);
}
.art-marquee p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
  max-width: 52ch;
}
.art-marquee__meta {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .42);
}

.art-marquee__go {
  flex: none;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .3s ease;
}
.art-marquee__go:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.07);
}
.art-marquee__go svg { display: block; }

@media (max-width: 767.98px) {
  .art-marquee {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 28px;
    padding: 38px 28px;
    border-radius: 18px;
  }
  .art-marquee__go { width: 108px; height: 108px; }
}

/* ---------- Tarjeta "¿Le sirvió este artículo?" (cierre de cada ficha) ---------- */
.art-share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px 48px;
  border-radius: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 56px rgba(26, 23, 20, .07);
}
.art-share-card__text h3 { font-size: 25px; margin: 0 0 8px; }
.art-share-card__text p { font-size: 15.5px; color: var(--text-muted); margin: 0; max-width: 420px; }

.art-share { display: flex; gap: 12px; flex-wrap: wrap; }
.art-share a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--bg-cream);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.art-share a i { font-size: 16px; }
.art-share a:hover { transform: translateY(-3px); }
.art-share__x:hover { background: #000; color: #fff; }
.art-share__fb:hover { background: #1877F2; color: #fff; }
.art-share__li:hover { background: #0A66C2; color: #fff; }

@media (max-width: 767.98px) {
  .art-share-card { flex-direction: column; text-align: center; padding: 36px 28px; }
  .art-share-card__text p { max-width: none; }
  .art-share { width: 100%; justify-content: center; }
  .art-share a { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================================
   RISK-FLOW — diagrama simplificado del modelo de gestión de riesgos
   Usado en "Los cinco procesos del modelo"
   (recursos/gestion-riesgos-proyectos/): dos etapas (Planeación,
   Seguimiento) con sus pasos en secuencia y el ciclo de retroalimentación.
   ========================================================================= */
.risk-flow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding-bottom: 36px;
}

.risk-flow__lines { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.risk-flow__flow-line { animation: riskFlowDash 1.1s linear infinite; }
.risk-flow__flow-arrow { animation: riskFlowArrow 1.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@keyframes riskFlowDash { to { stroke-dashoffset: -18; } }
@keyframes riskFlowArrow {
  0%, 100% { opacity: .5; }
  50% { opacity: .95; }
}
@media (prefers-reduced-motion: reduce) {
  .risk-flow__flow-line,
  .risk-flow__flow-arrow { animation: none; }
}

.risk-flow__zone {
  border: 2px dashed rgba(26, 23, 20, .18);
  border-radius: 20px;
  padding: 32px 24px 24px;
  position: relative;
}
.risk-flow__zone--plan { flex: 1 1 auto; min-width: 0; }
.risk-flow__zone--seg { flex: 0 0 220px; align-self: center; display: flex; flex-direction: column; justify-content: center; }

.risk-flow__zone-label {
  position: absolute;
  top: -13px;
  left: 22px;
  margin: 0;
  padding: 0 10px;
  background: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.risk-flow__row { display: flex; align-items: stretch; gap: 4px; }
.risk-flow__col { flex: 1 1 0; min-width: 150px; display: flex; flex-direction: column; gap: 5px; }

.risk-flow__step {
  flex: 1 1 0;
  min-width: 150px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(26, 23, 20, .05);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
/* !important porque AOS aplica [data-aos^="fade"].aos-animate{transform:translateZ(0)}
   con más especificidad que esta clase, y si no se fuerza aquí el hover nunca se ve. */
.risk-flow__step:hover { transform: translateY(-5px) !important; box-shadow: 0 18px 36px rgba(26, 23, 20, .13); }
.risk-flow__col .risk-flow__step { min-width: 0; flex: 0 0 auto; }
.risk-flow__zone--seg .risk-flow__step { flex: 0 0 auto; }

.risk-flow__step-head {
  position: relative;
  background: var(--rf-color, var(--accent));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  padding: 13px 18px;
  overflow: hidden;
}
.risk-flow__step-head::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, .18);
  transform: rotate(45deg);
}
.risk-flow__step p {
  margin: 0;
  padding: 13px 18px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.risk-flow__arrow,
.risk-flow__connector {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--text-faint);
  font-size: 17px;
  padding: 0 2px;
}
.risk-flow__arrow--v { align-self: center; padding: 2px 0; }

@media (max-width: 991.98px) {
  .risk-flow { flex-direction: column; align-items: stretch; padding-bottom: 0; padding-left: 24px; }
  .risk-flow__row { flex-direction: column; }
  /* En columna, el eje principal del flex pasa a ser vertical: sin esto, cada
     tarjeta se repartiría el alto total en vez de medir según su contenido. */
  .risk-flow__row > .risk-flow__step,
  .risk-flow__row > .risk-flow__col { flex: 0 0 auto; }
  .risk-flow__col { min-width: 0; }
  .risk-flow__arrow:not(.risk-flow__arrow--v) i { transform: rotate(90deg); }
  .risk-flow__connector i { transform: rotate(90deg); }
  .risk-flow__zone--seg { flex-basis: auto; }
}

/* =========================================================================
   MVV — "Misión y visión", equipo.php
   Declaración editorial con una marca de cita gigante de fondo (en vez de
   tarjetas) y los valores como una fila de etiquetas subrayadas.
   ========================================================================= */
.mvv { position: relative; max-width: 920px; margin: 0 auto; padding-top: 8px; }

.mvv__quote-mark {
  position: absolute;
  top: -64px;
  left: -18px;
  font-family: var(--font-heading);
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: .08;
  pointer-events: none;
  user-select: none;
}

.mvv__statement {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  color: var(--text);
  margin: 20px 0 22px;
  max-width: 760px;
}

.mvv__sub {
  position: relative;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 48px;
}

.mvv__values-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 18px;
}

.mvv__values {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mvv__values li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  cursor: default;
  transition: color .3s ease, transform .3s ease;
}
.mvv__values li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: mvvPulse 2.4s ease-in-out infinite;
}
.mvv__values li:nth-child(2)::before { animation-delay: .35s; }
.mvv__values li:nth-child(3)::before { animation-delay: .7s; }
/* !important: estos <li> traen data-aos, y AOS aplica transform:translateZ(0)
   con más especificidad que esta clase (mismo caso que .risk-flow__step:hover). */
.mvv__values li:hover { color: var(--accent); transform: translateY(-4px) !important; }

@keyframes mvvPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.5); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mvv__values li::before { animation: none; }
}

@media (max-width: 575.98px) {
  .mvv__quote-mark { font-size: 140px; top: -40px; left: -8px; }
  .mvv__statement { font-size: 25px; }
  .mvv__values { gap: 22px 30px; }
  .mvv__values li { font-size: 18px; }
}

/* =========================================================================
   TEAM-MANIFEST — "Equipo", equipo.php
   Tres párrafos como un manifiesto numerado con cifras gigantes de fondo, y
   los clientes citados como etiquetas insertadas en el propio texto.
   ========================================================================= */
.team-manifest {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.team-manifest__item {
  position: relative;
  padding-left: 104px;
}

.team-manifest__num {
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  opacity: .1;
  pointer-events: none;
  user-select: none;
  transition: opacity .3s ease;
}
.team-manifest__item:hover .team-manifest__num { opacity: .7; }

.team-manifest__item p {
  position: relative;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.name-hl { font-weight: 700; color: var(--text); }

@media (max-width: 575.98px) {
  .team-manifest__item { padding-left: 68px; }
  .team-manifest__num { font-size: 48px; top: -12px; left: -6px; }
}

/* =========================================================================
   BREADCRUMBS — include/breadcrumbs.php, presente en todas las páginas
   excepto index.php.
   ========================================================================= */
.breadcrumbs { border-bottom: 1px solid var(--border-soft); }
.breadcrumbs__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 40px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a,
.breadcrumbs span[aria-current] {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-current] { color: var(--text-faint); font-weight: 500; }
.breadcrumbs__sep { color: var(--text-faint); font-size: 13px; }

@media (max-width: 575.98px) {
  .breadcrumbs__inner { padding: 14px 24px; }
  .breadcrumbs a, .breadcrumbs span[aria-current] { font-size: 12px; }
}
