/* =========================================================
   PÁGINA DIFERENCIADORES
   Archivo sugerido: /assets/css/diferenciadores.css
   Cargar después de /assets/css/styles.css
   ========================================================= */

.differentiators-page {
  background: #f4f4f4;
  color: var(--color-black);
}

.diff-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Futura PT Demi", sans-serif;
  font-size: 0.92rem;
}

.diff-breadcrumb a {
  color: rgba(255, 255, 255, 0.84);
}

.diff-breadcrumb a:hover {
  color: var(--color-yellow);
}

.diff-hero {
  --hero-position-desktop: 50% 50%;
  --hero-position-tablet: 64% 50%;
  --hero-position-mobile: 78% 50%;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.1)),
    url("/assets/img/empresa/cta-empresa.webp") var(--hero-position, 50% 50%) / cover no-repeat;
  color: var(--color-white);
}



.diff-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  min-height: 560px;
  padding-block: clamp(76px, 9vw, 118px);
}

.diff-hero .eyebrow {
  color: var(--color-yellow);
}

.diff-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--color-white);
  line-height: 0.98;
}

.diff-hero p:not(.eyebrow) {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-align: justify;
}

.diff-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.diff-btn--outline {
  border: 3px solid var(--color-yellow);
  background: rgba(0, 0, 0, 0.18);
  color: var(--color-yellow);
}

.diff-hero__panel {
  position: relative;
  padding: 30px;
  border-radius: 0 28px 28px 28px;
  background: linear-gradient(180deg, rgba(255, 242, 0, 0.96), rgba(245, 164, 0, 0.96));
  color: var(--color-black);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.32);
}

.diff-hero__panel strong {
  display: block;
  margin-bottom: 18px;
  font-family: "Futura PT Heavy", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.diff-hero__panel ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diff-hero__panel li {
  position: relative;
  padding-left: 24px;
  font-family: "Futura PT Demi", sans-serif;
  font-weight: 900;
}

.diff-hero__panel li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 1.45rem;
  line-height: 1;
}

.diff-collaboration,
.diff-results,
.diff-method {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 92px) 0;
  background: #f4f4f4;
}

.diff-section-header {
  margin-bottom: 36px;
}

.eyebrow--dark-diff {
  color: var(--color-yellow) !important;
}

.diff-section-header--wide {
  max-width: 1150px;
}

.diff-section-header--center {
  margin-inline: auto;
}

.diff-section-header h2 {
  margin: 0;
  color: var(--color-black);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.diff-section-header p:not(.eyebrow) {
  max-width: 1060px;
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.55;
}

/* ============================= */
/* COLABORACIÓN ESTRATÉGICA */
/* ============================= */

.diff-collaboration {
  background: #f4f4f4;
}

.diff-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  margin-top: 48px;
}

.diff-pillar {
  --diff-title-size: clamp(1.2rem, 1.65vw, 1.48rem);
  --diff-title-zone: calc(var(--diff-title-size) * 3.6);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 340px;
  display: grid;
  grid-template-rows: 72px var(--diff-title-zone) 1fr;
  align-content: start;
  justify-items: center;
  row-gap: 17px;
  padding: 28px clamp(22px, 2.4vw, 34px) 34px;
  color: #242424;
  text-align: center;
}

.diff-pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(255, 242, 0, 0.34) 0%,
    rgba(255, 242, 0, 0.14) 42%,
    rgba(255, 242, 0, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.diff-pillar + .diff-pillar {
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.diff-pillar:hover::before {
  opacity: 1;
}

.diff-pillar__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.diff-pillar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.diff-pillar h3 {
  align-self: start;
  max-width: 240px;
  margin: 0;
  color: var(--color-black);
  font-family: "Futura PT Demi", sans-serif;
  font-size: var(--diff-title-size);
  line-height: 1.2;
  text-align: center;
  font-weight: 900;
}

.diff-pillar p {
  align-self: start;
  max-width: 285px;
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.5;
  text-align: justify;
}

/* ============================= */
/* RESULTADOS / MOSAICO INTERACTIVO */
/* ============================= */

.diff-results {
  --diff-results-yellow: var(--color-yellow, #fff200);
  --diff-results-orange: var(--color-orange, #f5a400);
  --diff-results-light-gray: #b8b8b8;
  isolation: isolate;
  padding: clamp(54px, 6vw, 82px) 0 clamp(66px, 7vw, 96px);
  background:
    radial-gradient(circle at 92% 13%, rgba(255, 242, 0, 0.36), transparent 16%),
    radial-gradient(circle at 3% 64%, rgba(245, 164, 0, 0.34), transparent 20%),
    linear-gradient(180deg, #040404 0%, #000 100%);
}

.diff-results::before,
.diff-results::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(36vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(82px);
  pointer-events: none;
}

.diff-results::before {
  left: -22%;
  top: 38%;
  background: rgba(245, 164, 0, 0.2);
}

.diff-results::after {
  right: -20%;
  top: -8%;
  background: rgba(255, 242, 0, 0.18);
}

.diff-results .container {
  position: relative;
  z-index: 1;
}

.diff-results .diff-section-header {
  max-width: 980px;
  margin: 0 0 26px;
}

.diff-results .diff-section-header h2,
.diff-results .diff-section-header__description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.diff-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.45vw, 18px);
  align-items: stretch;
}

.diff-result-item {
  --result-accent: var(--diff-results-yellow);
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: clamp(12px, 1.45vw, 18px);
}

.diff-result-item--orange {
  --result-accent: var(--diff-results-orange);
}

.diff-result-item--yellow {
  --result-accent: var(--diff-results-yellow);
}

.diff-result-card,
.diff-result-decoration {
  min-width: 0;
  min-height: 220px;
  border-radius: clamp(14px, 1.7vw, 20px);
}

.diff-result-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(20px, 2.1vw, 28px);
  border: 2px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 48%),
    rgba(0, 0, 0, 0.9);
  color: var(--color-white, #fff);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.diff-result-item--text-top .diff-result-card {
  grid-row: 1;
}

.diff-result-item--text-top .diff-result-decoration {
  grid-row: 2;
}

.diff-result-item--text-bottom .diff-result-card {
  grid-row: 2;
}

.diff-result-item--text-bottom .diff-result-decoration {
  grid-row: 1;
}

.diff-result-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  text-align: justify;
  gap: 14px;
}

.diff-result-card__watermark {
  position: absolute;
  z-index: 0;
  right: -20%;
  bottom: -13%;
  width: clamp(170px, 17vw, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(16px, 16px) scale(0.86);
  transform-origin: center;
  pointer-events: none;
  transition:
    opacity 0.38s ease,
    transform 0.48s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.diff-result-card__watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.diff-result-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--result-accent), rgba(255, 255, 255, 0.92));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s ease;
}

.diff-result-card::after {
  content: "ACTIVO";
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  padding: 7px 10px 6px;
  border-radius: 999px;
  background: var(--result-accent);
  color: #090909;
  font-family: "Futura PT Heavy", sans-serif;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.diff-result-card:hover {
  transform: translateY(-4px);
  border-color: var(--result-accent);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    0 0 24px color-mix(in srgb, var(--result-accent) 14%, transparent);
}

.diff-result-card.is-active {
  position: absolute;

  /* IMPORTANTE:
     La card activa siempre ocupa las 2 filas,
     sin importar si originalmente estaba arriba o abajo.
  */
  grid-row: 1 / -1;

  inset: 0;
  z-index: 3;

  width: 100%;
  height: 100%;
  min-height: 100%;

  display: flex;
  align-items: center;

  padding: clamp(28px, 2.7vw, 40px);

  border-color: var(--result-accent);

  background:
    radial-gradient(
      circle at 78% 38%,
      color-mix(in srgb, var(--result-accent) 17%, transparent),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(18, 18, 18, 0.99),
      rgba(0, 0, 0, 0.98)
    );

  box-shadow:
    inset 0 0 0 1px
      color-mix(in srgb, var(--result-accent) 30%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 38px
      color-mix(in srgb, var(--result-accent) 22%, transparent);

  /*
   * Mejor sin translateY.
   * Así cubre exactamente las dos cards.
   */
  transform: none;
}

.diff-result-card.is-active + .diff-result-decoration {
  opacity: 0;
  transform: scale(0.98);
}

.diff-result-card.is-active::before {
  transform: scaleX(1);
}

.diff-result-card.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.diff-result-card.is-active .diff-result-card__content {
  width: min(100%, 340px);
  gap: 18px;
}

.diff-result-card.is-active .diff-result-card__watermark {
  opacity: 0.14;
  transform: translate(0, 0) scale(1);
}

.diff-result-card:focus-visible {
  outline: 3px solid var(--color-white, #fff);
  outline-offset: 5px;
}

.diff-result-card h3 {
  align-self: start;
  margin: 0;
  color: var(--color-white, #fff);
  font-family: "Futura PT Heavy", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  text-align: left;
}

.diff-result-card p {
  align-self: start;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.38;
  text-align: justify;
}

.diff-result-card.is-active h3 {
  padding-right: 72px;
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
}

.diff-result-card.is-active p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.34vw, 1.12rem);
  text-align: justify;
}

.diff-result-decoration {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  isolation: isolate;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.diff-result-decoration::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  opacity: 0.55;
}

.diff-result-decoration--yellow {
  background: linear-gradient(145deg, #fff600 0%, #f4df00 52%, #c8a900 100%);
  box-shadow: 0 0 36px rgba(255, 242, 0, 0.18);
}

.diff-result-decoration--orange {
  background: linear-gradient(145deg, #ffb400 0%, #f39a00 52%, #b96c00 100%);
  box-shadow: 0 0 34px rgba(245, 164, 0, 0.18);
}

.diff-result-decoration__icon {
  position: relative;
  z-index: 1;
  width: clamp(82px, 9vw, 118px);
  height: clamp(82px, 9vw, 118px);
  display: grid;
  place-items: center;
  transition: transform 0.34s ease;
}

.diff-result-decoration__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
  opacity: 0.96;
}

.diff-result-item:hover .diff-result-decoration__icon {
  transform: scale(1.05);
}

/* ============================= */
/* GRÁFICAS */
/* ============================= */

.diff-chart-panels {
  position: relative;
  margin-top: clamp(34px, 5vw, 58px);
}

.diff-chart-card {
  --diff-chart-accent: var(--diff-results-yellow);
  --diff-chart-secondary: var(--diff-results-orange);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  animation: diffChartFade 0.34s ease both;
}

.diff-chart-card[hidden] {
  display: none;
}

@keyframes diffChartFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diff-chart-card figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(220px, 1fr);
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
}

.diff-chart-card figcaption::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--diff-chart-accent);
}

.diff-chart-card figcaption strong {
  color: var(--color-white, #fff);
  font-family: "Futura PT Heavy", sans-serif;
  font-size: clamp(0.98rem, 1.55vw, 1.22rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.diff-chart-card figcaption span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-family: "Futura PT Book", sans-serif;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.35;
}

.diff-chart {
  position: relative;
  width: 100%;
  height: clamp(320px, 36vw, 430px);
  overflow: hidden;
  padding: clamp(10px, 1.6vw, 18px);
  border: 2px solid rgba(255, 242, 0, 0.72);
  border-radius: clamp(18px, 2vw, 26px);
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 242, 0, 0.07), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 44%),
    #020202;
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 0, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.diff-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.diff-chart text {
  font-family: "Futura PT Demi", sans-serif;
}

.diff-chart__grid line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 5 8;
}

.diff-chart__axis {
  stroke: rgba(255, 242, 0, 0.66);
  stroke-width: 2;
  stroke-linecap: round;
}

.diff-chart__scale-label,
.diff-chart__axis-hint,
.diff-chart__x-label {
  fill: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.diff-chart__axis-title {
  fill: var(--diff-results-yellow);
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* Mensaje clave debajo de cada gráfica. */
.diff-chart__takeaway {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 12px 0 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--diff-results-yellow);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 242, 0, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Futura PT Book", sans-serif;
  font-size: clamp(0.92rem, 1.2vw, 1.04rem);
  line-height: 1.35;
}

.diff-chart__takeaway strong {
  color: var(--diff-results-yellow);
  font-family: "Futura PT Heavy", sans-serif;
  text-transform: uppercase;
}

/* Leyenda común. */
.diff-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  margin: 14px 0 10px;
}

.diff-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Futura PT Demi", sans-serif;
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
  font-weight: 900;
}

.diff-chart__legend i {
  width: 30px;
  height: 7px;
  display: inline-block;
  border-radius: 999px;
}

.diff-chart__legend-yellow {
  background: var(--diff-results-yellow);
}

.diff-chart__legend-orange {
  background: var(--diff-results-orange);
}

/* 1. COSTOS / INCIDENCIAS: tendencia en el tiempo. */
.diff-chart__trend-line {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: diffDrawTrend 1s 0.08s ease forwards;
}

.diff-chart__trend-line--good {
  stroke: var(--diff-results-yellow);
}

.diff-chart__trend-line--bad {
  stroke: var(--diff-results-orange);
}

.diff-chart__trend-points circle {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: diffPointIn 0.34s 0.52s ease forwards;
}

.diff-chart__trend-points--good circle {
  fill: var(--diff-results-yellow);
  filter: drop-shadow(0 0 7px rgba(255, 242, 0, 0.55));
}

.diff-chart__trend-points--bad circle {
  fill: var(--diff-results-orange);
  filter: drop-shadow(0 0 7px rgba(245, 164, 0, 0.4));
}

.diff-chart__direct-label {
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 13px;
  font-weight: 900;
}

.diff-chart__direct-label--good {
  fill: var(--diff-results-yellow);
}

.diff-chart__direct-label--bad {
  fill: var(--diff-results-orange);
}

/* 2. ATENCIÓN: barras horizontales comparativas. */
.diff-chart__comparison-axis {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
}

.diff-chart__bar-category {
  fill: rgba(255, 255, 255, 0.94);
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 17px;
  font-weight: 900;
}

.diff-chart__bar-question {
  fill: rgba(255, 255, 255, 0.48);
  font-family: "Futura PT Book", sans-serif !important;
  font-size: 12px;
}

.diff-chart__bar-track {
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.diff-chart__hbar {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  animation: diffGrowHorizontal 0.72s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.diff-chart__hbar--good {
  fill: var(--diff-results-yellow);
}

.diff-chart__hbar--bad {
  fill: var(--diff-results-orange);
  animation-delay: 0.12s;
}

.diff-chart__bar-end-label {
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 11px;
  font-weight: 900;
}

.diff-chart__bar-end-label--good {
  fill: var(--diff-results-yellow);
}

.diff-chart__bar-end-label--bad {
  fill: var(--diff-results-orange);
}

/* Identificación dentro de las barras; aparece al terminar su crecimiento. */
.diff-chart__bar-inner-label {
  fill: #171717;
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  opacity: 0;
  animation: diffBarLabelReveal 0.12s ease 0.84s forwards;
}

.diff-chart__bar-inner-label--vertical {
  font-size: 16px;
}

@keyframes diffBarLabelReveal {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diff-chart__bar-inner-label {
    animation: none;
    opacity: 1;
  }
}

/* 3. CUMPLIMIENTO: barras verticales agrupadas. */
.diff-chart__vbar {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0);
  animation: diffGrowVertical 0.72s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.diff-chart__vbar--good {
  fill: var(--diff-results-yellow);
}

.diff-chart__vbar--bad {
  fill: var(--diff-results-orange);
  animation-delay: 0.12s;
}

.diff-chart__group-label {
  fill: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

/* 4. TECNOLOGÍA: gráfica mariposa / barras divergentes.
   Lectura: izquierda = información dispersa; derecha = información integrada. */
.diff-chart__butterfly-center {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.diff-chart__butterfly-side {
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.diff-chart__butterfly-side--good {
  fill: var(--diff-results-yellow);
}

.diff-chart__butterfly-side--bad {
  fill: var(--diff-results-orange);
}

.diff-chart__butterfly-side-sub {
  fill: rgba(255, 255, 255, 0.46);
  font-family: "Futura PT Demi", sans-serif !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.diff-chart__butterfly-track {
  fill: rgba(255, 255, 255, 0.055);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.diff-chart__butterfly-bar {
  transform-box: fill-box;
  animation: diffButterflyGrow 0.72s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.diff-chart__butterfly-bar--bad {
  fill: url(#diff-tech-left);
  transform-origin: right center;
  transform: scaleX(0);
}

.diff-chart__butterfly-bar--good {
  fill: url(#diff-tech-right);
  transform-origin: left center;
  transform: scaleX(0);
  animation-delay: 0.1s;
}

.diff-chart__butterfly-category {
  fill: rgba(255, 255, 255, 0.94);
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.diff-chart__butterfly-value {
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  dominant-baseline: middle;
}

.diff-chart__butterfly-value--good {
  fill: var(--diff-results-yellow);
}

.diff-chart__butterfly-value--bad {
  fill: var(--diff-results-orange);
}

.diff-chart__butterfly-hint {
  fill: rgba(255, 255, 255, 0.4);
  font-family: "Futura PT Heavy", sans-serif !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
}

.diff-chart__butterfly-hint--good {
  fill: rgba(255, 242, 0, 0.74);
}

@keyframes diffButterflyGrow {
  to {
    transform: scaleX(1);
  }
}

.diff-chart-card > p {
  max-width: 1220px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Futura PT Book", sans-serif;
  font-size: 21px;
  line-height: 1.55;
  text-align: justify;
}

@keyframes diffDrawTrend {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes diffGrowHorizontal {
  to {
    transform: scaleX(1);
  }
}

@keyframes diffGrowVertical {
  to {
    transform: scaleY(1);
  }
}

@keyframes diffDrawConnector {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes diffPointIn {
  to {
    transform: scale(1);
  }
}

.diff-method {
  background: var(--color-black);
  color: var(--color-white);
}

.diff-method__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.diff-method .eyebrow {
  color: var(--color-yellow);
}

.diff-method h2 {
  max-width: 620px;
  margin: 0;
  color: var(--color-white);
  line-height: 1.08;
}

.diff-method__intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
}

.diff-method__intro p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  text-align: justify;
}

.diff-method__steps {
  display: grid;
  gap: 16px;
}

.diff-method__steps article {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: center;
  padding:15px 24px;
  border-left: 4px solid var(--color-yellow);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.diff-method__steps article:hover {
background: #fffcfc;
background: linear-gradient(90deg, rgba(255, 252, 252, 0) 0%, rgba(255, 242, 0, 0.82) 100%);
}


.diff-method__steps span {
  color: var(--color-yellow);
  font-family: "Futura PT Heavy", sans-serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.diff-method__steps h3 {
  margin: 0 0 6px;
  color: var(--color-white);
  font-family: "Futura PT Demi", sans-serif;

  text-transform: uppercase;
}

.diff-method__steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 21px
}

.diff-cta {
  padding: clamp(58px, 7vw, 86px) 0;
  background: #f4f4f4;
}

.diff-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72)),
    url("/assets/img/clientes/clientes-bg.webp") center / cover no-repeat;
  color: var(--color-white);
}

.diff-cta .eyebrow {
  color: var(--color-white);
}

.diff-cta h2 {
  max-width: 860px;
  margin: 0;
  color: var(--color-white);
  line-height: 1.08;
}

.diff-cta p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.diff-cta .btn {
  min-width: 230px;
  min-height: 52px;
  flex-shrink: 0;
}

@media (max-width: 1180px) {
  .diff-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diff-pillar:nth-child(3) {
    border-left: 0;
  }

  .diff-pillar:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 0, 0, 0.18);
  }

  .diff-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .diff-hero__grid,
  .diff-method__grid,
  .diff-cta__box {
    grid-template-columns: 1fr;
  }

  .diff-hero__grid {
    min-height: auto;
  }

  .diff-hero__panel {
    max-width: 620px;
  }

  .diff-cta .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .diff-collaboration,
  .diff-results {
    padding-block: 48px 58px;
  }

  .diff-section-header {
    margin-bottom: 28px;
  }

  .diff-results-grid {
    gap: 10px;
  }

  .diff-result-item {
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    gap: 10px;
  }

  .diff-result-card,
  .diff-result-decoration {
    min-height: 190px;
    border-radius: 14px;
  }

  .diff-result-card {
    padding: 18px;
  }

  .diff-result-card.is-active {
    padding: 24px;
  }

  .diff-result-card h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.04rem);
  }

  .diff-result-card p {
    font-size: clamp(0.82rem, 2.2vw, 0.96rem);
    text-align: justify;
  }

  .diff-result-card.is-active h3 {
    padding-right: 62px;
    font-size: clamp(1.02rem, 2.8vw, 1.2rem);
  }

  .diff-result-card.is-active p {
    font-size: clamp(0.88rem, 2.35vw, 1rem);
  }

  .diff-result-card__watermark {
    width: clamp(150px, 26vw, 210px);
  }

  .diff-result-decoration__icon {
    width: clamp(72px, 18vw, 100px);
    height: clamp(72px, 18vw, 100px);
  }

  .diff-chart-panels {
    margin-top: 30px;
  }

  .diff-chart-card figcaption {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .diff-chart-card figcaption span {
    grid-column: 2 / -1;
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .diff-chart {
    height: 270px;
    padding: 8px;
    border-radius: 15px;
  }

  .diff-chart__scale-label,
  .diff-chart__x-label,
  .diff-chart__axis-hint {
    font-size: 11px;
  }

  .diff-chart__group-label,
  .diff-chart__bar-end-label {
    font-size: 10px;
  }

  .diff-chart__legend {
    gap: 10px 18px;
    margin: 14px 0 18px;
  }
}

@media (max-width: 640px) {
  .diff-hero {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.72)),
      url("/assets/img/empresa/cta-empresa.webp") var(--hero-position, 50% 50%) / cover no-repeat;
  }

  .diff-hero__grid {
    padding-block: 62px;
  }

  .diff-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .diff-hero__actions,
  .diff-hero__actions .btn {
    width: 100%;
  }

  .diff-pillars {
    grid-template-columns: 1fr;
  }

  .diff-pillar,
  .diff-pillar + .diff-pillar,
  .diff-pillar:nth-child(n + 3) {
    min-height: auto;
    grid-template-rows: 64px var(--diff-title-zone) 1fr;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
  }

  .diff-pillar:first-child {
    border-top: 0;
  }

  .diff-pillar {
    padding: 28px 20px 32px;
  }

  .diff-pillar__icon {
    width: 64px;
    height: 64px;
  }

  .diff-pillar p {
    max-width: 420px;
    text-align: justify;
  }

  .diff-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
  }

  .diff-result-item {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
  }

  .diff-result-item--text-top .diff-result-card,
  .diff-result-item--text-bottom .diff-result-card {
    grid-column: 1;
    grid-row: 1;
  }

  /* La misma ilustración ya vive dentro de cada card como watermark. */
  .diff-result-decoration {
    display: none;
  }

  .diff-result-card,
  .diff-result-card.is-active {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    min-width: 0;
    width: auto;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    padding: 14px;
    border-radius: 14px;
    overflow: visible;
    transform: none;
  }

  .diff-result-card__content,
  .diff-result-card.is-active .diff-result-card__content {
    width: 100%;
    min-width: 0;
    /* Reserva idéntica para el badge, también en cards inactivas. */
    padding-top: 22px;
    gap: 8px;
    text-align: justify;
  }

  .diff-result-card h3,
  .diff-result-card.is-active h3 {
    padding-right: 0;
    font-size: 13.5px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .diff-result-card p,
  .diff-result-card.is-active p {
    font-size: 12px;
    line-height: 1.4;
    text-align: justify;
    overflow-wrap: anywhere;
  }

  .diff-result-card::before {
    border-radius: 12px 12px 0 0;
  }

  .diff-result-card::after {
    content: none;
    top: 10px;
    right: 10px;
    padding: 5px 7px 4px;
    font-size: 9px;
  }

  .diff-result-card.is-active::after {
    content: "ACTIVO";
  }

  .diff-result-card__watermark,
  .diff-result-card.is-active .diff-result-card__watermark {
    right: 0;
    bottom: 0;
    width: min(100%, 120px);
    opacity: 0.1;
    transform: none;
  }

  .diff-chart-panels {
    margin-top: 14px;
  }

  .diff-method__steps {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .diff-method__steps article {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 34px auto;
    align-items: start;
    align-content: start;
    gap: 12px;
    padding: 18px 14px;
  }

  .diff-method__steps article > div {
    min-width: 0;
  }

  .diff-method__steps span {
    font-size: 34px;
  }

  .diff-method__steps h3 {
    font-size: 1.06rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .diff-method__steps p {
    font-size: 18px;
    line-height: 1.45;
    text-align: justify;
  }
}

@media (max-width: 440px) {
  .diff-chart {
    height: 245px;
  }

  .diff-chart__legend i {
    width: 26px;
  }

  .diff-hero__panel,
  .diff-cta__box {
    padding: 24px 18px;
  }

  
}

@media (prefers-reduced-motion: reduce) {
  .diff-pillar,
  .diff-pillar::before,
  .diff-result-card,
  .diff-result-card__watermark,
  .diff-result-decoration,
  .diff-result-decoration__icon,
  .diff-chart-card,
  .diff-chart__trend-line,
  .diff-chart__trend-points circle,
  .diff-chart__hbar,
  .diff-chart__vbar,
  .diff-chart__butterfly-bar {
    animation: none;
    transition: none;
  }

  .diff-chart__trend-points circle,
  .diff-chart__hbar,
  .diff-chart__vbar,
  .diff-chart__butterfly-bar {
    transform: none;
  }

  .diff-chart__trend-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
