/* ==========================================================================
   Plantilla Caso Destacado v2 — compartida por todos los casos.
   Prefijo cd-. Hereda tokens de style.css (--bg, --ink, --c-web, etc.).
   Teal (--accent) queda SOLO para CTAs de WhatsApp (.btn-g).
   Breakpoint: 980px (mobile flat: sin pin, sin dibujo, sin animaciones).
   ========================================================================== */

.cd-page {
  --c: 0,104,94;
  --c-client: 239,106,0; /* color del cliente: se define por página en el body */
  background: var(--bg);
}
.cd-page main { overflow-x: clip; } /* clip y no hidden: hidden rompe position:sticky */

/* El dot global de .tag-pill es teal; en esta plantilla toma el color del bloque */
.cd-page .tp-dot { background: rgb(var(--c)); }
/* CTA final: acento teal igual que el prefooter del home (hereda de style.css) */

/* Color por servicio ------------------------------------------------------ */
[data-svc="web"]  { --c: var(--c-web); }
[data-svc="id"]   { --c: var(--c-id); }
[data-svc="mkt"]  { --c: var(--c-mkt); }
[data-svc="veh"]  { --c: var(--c-veh); }
[data-svc="sis"]  { --c: var(--c-sis); }
[data-svc="base"] { --c: 170,170,170; }
[data-svc="client"] { --c: var(--c-client); }

/* Dato provisional (solo prototipo) */
.cd-prov {
  text-decoration: underline dotted rgba(255,196,0,.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: help;
}

/* Placeholder con degradé ------------------------------------------------- */
.cd-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink-2);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(var(--c), .34), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(var(--c), .16), transparent 62%),
    linear-gradient(160deg, #1c1e1f 0%, #0c0d0e 100%);
}
.cd-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
          mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.cd-ph-k {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(var(--c));
}
.cd-ph-t { font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff; }
.cd-ph-s { font-size: 11.5px; line-height: 1.45; color: var(--dim); }

/* Tipografía de bloque ---------------------------------------------------- */
.cd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.cd-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--c));
  box-shadow: 0 0 0 4px rgba(var(--c), .16);
}
.cd-h2 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.cd-h2 span { color: rgba(255,255,255,.46); }
.cd-p { color: var(--ink-2); font-size: 17px; line-height: 1.68; }
.cd-p + .cd-p { margin-top: 14px; }

/* ==========================================================================
   01 · PORTADA
   ========================================================================== */
.cd-cover {
  position: relative;
  min-height: min(960px, 100svh);
  padding-top: 132px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: #090b0d;
}
.cd-cover-art.cd-ph {
  position: absolute;
  inset: 0;
  z-index: -2;
  border: 0;
  border-radius: 0;
  padding: 0;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(var(--c-client), .26), transparent 70%),
    radial-gradient(45% 55% at 98% 95%, rgba(var(--c-client), .14), transparent 70%),
    linear-gradient(160deg, #15171a 0%, #08090a 100%);
}
.cd-cover-art .cd-ph-label {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  top: 46%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
}
.cd-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7,9,11,.85) 0%, rgba(7,9,11,.4) 50%, transparent 78%);
  pointer-events: none;
}
.cd-cover-grid { flex: 1; display: flex; align-items: center; padding-bottom: 64px; }
.cd-cover-copy { max-width: 760px; }

.cd-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: var(--dim); font-size: 13px; }
.cd-crumb a { color: var(--ink-2); transition: color .25s; }
.cd-crumb a:hover { color: #fff; }
.cd-crumb i { font-style: normal; color: var(--dim); }
.cd-crumb b { color: var(--ink); font-weight: 600; }

.cd-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(12,14,16,.42);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.cd-meta b { color: rgba(255,255,255,.34); font-weight: 500; }

.cd-cover h1 {
  margin-top: 24px;
  color: #fff;
  font-size: clamp(44px, 5.6vw, 84px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.cd-cover h1 span { display: block; margin-top: .18em; color: rgba(255,255,255,.5); font-size: .6em; line-height: 1.06; letter-spacing: -.035em; }
.cd-lead { max-width: 640px; margin-top: 26px; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.62; }

.cd-layers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cd-layer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(var(--c), .32);
  border-radius: 999px;
  background: rgba(var(--c), .10);
  color: rgb(var(--c));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s, border-color .25s;
}
.cd-layer::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
a.cd-layer:hover { background: rgba(var(--c), .2); border-color: rgba(var(--c), .55); }
.cd-cover .btn-g { margin-top: 32px; }

.cd-facts {
  border-top: 1px solid var(--line);
  background: rgba(9,11,13,.62);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.cd-facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cd-fact { padding: 24px 24px 24px 0; }
.cd-fact + .cd-fact { padding-left: 24px; border-left: 1px solid var(--line); }
.cd-fact b { display: block; color: #fff; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cd-fact span { display: block; margin-top: 6px; color: var(--dim); font-size: 12px; letter-spacing: .02em; }

/* ==========================================================================
   02 · MAPA DE LA MARCA (pin + explosión al scroll, solo desktop)
   ========================================================================== */
.cd-map { --mp: 1; position: relative; background: var(--bg); }
.cd-anim .cd-map { height: 270vh; } /* el pin solo existe si el JS controla el scroll */
.cd-map-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 104px;
  overflow: hidden;
}
.cd-map-sticky::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 70vmin;
  height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-client), .16), transparent 65%);
  transform: translate(-50%, -50%) scale(calc(.6 + .6 * var(--mp)));
  pointer-events: none;
}
.cd-map-head { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding: 0 20px; text-align: center; }
.cd-map-head .cd-p { max-width: 520px; margin: 14px auto 0; font-size: 15.5px; }
.cd-map-stage { position: relative; flex: 1; width: min(1320px, calc(100% - 64px)); margin: 8px auto 28px; }

.cd-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: var(--w);
  aspect-ratio: var(--ar);
  display: block;
  transform:
    translate(-50%, -50%)
    translate(calc(var(--x) * 1vw * var(--mp)), calc(var(--y) * 1vh * var(--mp)))
    rotate(calc(var(--r) * 1deg * (1 - var(--mp))))
    scale(calc(.5 + .5 * var(--mp)));
  will-change: transform;
}
.cd-piece .cd-ph { width: 100%; height: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transition: border-color .3s, box-shadow .3s; }
.cd-piece-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: clamp(0, calc((var(--mp) - .82) * 6), 1);
}
.cd-piece-cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); }
.cd-piece-cap i { font-style: normal; color: var(--dim); transition: transform .3s, color .3s; }
a.cd-piece:hover .cd-ph { border-color: rgba(var(--c), .6); box-shadow: 0 30px 70px -18px rgba(var(--c), .35); }
a.cd-piece:hover .cd-piece-cap i { color: #fff; transform: translateX(3px); }
.cd-piece--core { z-index: 4; }
.cd-piece--core .cd-ph { border-radius: 28px; justify-content: center; align-items: center; text-align: center; }

/* ==========================================================================
   03 · HISTORIA: riel fijo + capítulos
   ========================================================================== */
.cd-story { position: relative; padding: 140px 0 40px; background: var(--bg); border-top: 1px solid var(--line); }
.cd-story-intro { max-width: 760px; margin-bottom: 72px; }
.cd-story-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 72px; }

.cd-rail { --sp: 0; position: sticky; top: 112px; align-self: start; }
.cd-rail-k { display: block; margin-bottom: 18px; color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cd-rail ol { position: relative; list-style: none; padding-left: 20px; }
.cd-rail ol::before,
.cd-rail ol::after { content: ""; position: absolute; left: 2px; top: 8px; width: 2px; border-radius: 2px; }
.cd-rail ol::before { bottom: 8px; background: var(--line-2); }
.cd-rail ol::after {
  height: calc((100% - 16px) * var(--sp));
  background: linear-gradient(to bottom, rgb(var(--c-id)), rgb(var(--c-web)), rgb(var(--c-mkt)), rgb(var(--c-sis)));
}
.cd-rail li + li { margin-top: 4px; }
.cd-rail a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 9px 0; color: var(--dim); transition: color .3s; }
.cd-rail a::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(var(--c), .45);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.cd-rail a small { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.cd-rail a span { font-size: 14px; font-weight: 600; }
.cd-rail a:hover { color: var(--ink-2); }
.cd-rail a.is-active { color: #fff; }
.cd-rail a.is-active small { color: rgb(var(--c)); }
.cd-rail a.is-active::before { background: rgb(var(--c)); border-color: rgb(var(--c)); box-shadow: 0 0 0 5px rgba(var(--c), .18); }

.cd-ch { padding: 0 0 130px; scroll-margin-top: 100px; }
.cd-ch-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 20px 56px; align-items: end; margin-bottom: 40px; }
.cd-ch-year {
  display: block;
  margin-bottom: 18px;
  color: transparent;
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.055em;
  -webkit-text-stroke: 1.5px rgba(var(--c), .6);
}
.cd-ch-side .cd-p { font-size: 16px; }
.cd-deliv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.cd-deliv span { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 12px; }
.cd-ch-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.cd-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(var(--c), .5); padding-bottom: 3px; transition: border-color .25s; }
.cd-link i { font-style: normal; transition: transform .25s; }
.cd-link:hover { border-color: #fff; }
.cd-link:hover i { transform: translateX(3px); }
.cd-link--quiet { color: var(--ink-2); border-color: var(--line-2); font-weight: 500; }

/* Grillas de media por capítulo */
.cd-media { display: grid; gap: 14px; }
.cd-media--split { grid-template-columns: 1.7fr 1fr; }
.cd-media--split > :first-child { grid-row: span 2; }
.cd-media--trio { grid-template-columns: 1.25fr 1fr 1fr; }
.cd-media--phones { grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; align-items: end; }
.cd-media--phones .cd-ph--sq { aspect-ratio: 1; }

/* Dato de la web (números del cliente) */
.cd-stat-strip {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 18px 32px;
  margin-top: 14px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}
.cd-stat-strip > span { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; max-width: 150px; }
.cd-stat-strip b { display: block; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.cd-stat-strip small { color: var(--dim); font-size: 12.5px; }

/* Logo que se dibuja ------------------------------------------------------ */
.cd-logo-stage {
  position: relative;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 18px 16px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(80% 80% at 50% 40%, rgba(var(--c), .10), transparent 70%), #0e0f10;
  overflow: hidden;
}
.cd-logo-stage svg { flex: 1; width: min(82%, 460px); height: auto; overflow: visible; }
.cd-logo-grid line, .cd-logo-grid circle { stroke: rgba(255,255,255,.09); stroke-width: 1; fill: none; }
.cd-logo-grid circle { stroke-dasharray: 4 6; }
.cd-logo-draw path { fill: none; stroke: rgb(var(--c)); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cd-logo-word { fill: #fff; font-family: var(--f); font-size: 21px; font-weight: 800; letter-spacing: .14em; }
.cd-logo-note { align-self: stretch; display: flex; flex-direction: column; gap: 4px; }

.cd-anim .cd-logo-draw path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1); }
.cd-anim .cd-logo-draw path:nth-child(2) { transition-delay: .35s; }
.cd-anim .cd-logo-draw path:nth-child(3) { transition-delay: .7s; }
.cd-anim .cd-logo-draw path:nth-child(4) { transition-delay: 1s; }
.cd-anim .cd-logo-word { opacity: 0; transition: opacity .8s 1.6s; }
.cd-anim .cd-logo-grid { opacity: 0; transition: opacity 1s; }
.cd-anim .is-in .cd-logo-draw path { stroke-dashoffset: 0; }
.cd-anim .is-in .cd-logo-word,
.cd-anim .is-in .cd-logo-grid { opacity: 1; }

/* Sistema: dashboard de datos ficticios ---------------------------------- */
.cd-sys { margin-top: 8px; }
.cd-dash {
  border: 1px solid rgba(var(--c), .28);
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d12;
  box-shadow: 0 50px 120px -40px rgba(var(--c), .45), 0 0 0 6px rgba(var(--c), .05);
  font-size: 12px;
}
.cd-dash-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06); background: #121218; }
.cd-dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cd-dash-bar span { margin-left: 14px; padding: 4px 14px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--dim); font-size: 11px; }
.cd-dash-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 460px; }
.cd-dash-side { padding: 18px 12px; border-right: 1px solid rgba(255,255,255,.06); background: #101015; }
.cd-dash-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; color: #fff; font-weight: 700; font-size: 13px; }
.cd-dash-brand::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, rgb(var(--c)), rgba(var(--c), .4)); }
.cd-dash-side a { display: block; padding: 9px 10px; border-radius: 9px; color: var(--dim); pointer-events: none; }
.cd-dash-side a.on { background: rgba(var(--c), .16); color: #fff; }
.cd-dash-main { padding: 22px 24px 24px; display: grid; gap: 16px; align-content: start; }
.cd-dash-top { display: flex; justify-content: space-between; align-items: baseline; }
.cd-dash-top b { color: #fff; font-size: 17px; letter-spacing: -.01em; }
.cd-dash-top span { color: var(--dim); }
.cd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cd-kpi { padding: 14px 16px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.025); }
.cd-kpi small { display: block; color: var(--dim); font-size: 11px; }
.cd-kpi b { display: block; margin-top: 6px; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cd-kpi em { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(var(--c), .16); color: color-mix(in srgb, rgb(var(--c)) 55%, #fff); font-size: 10.5px; font-style: normal; font-weight: 600; }
.cd-dash-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.cd-panel { padding: 16px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.02); }
.cd-panel-h { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--ink-2); font-weight: 600; }
.cd-panel-h span { color: var(--dim); font-weight: 400; }
.cd-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.cd-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, rgba(var(--c), .35), rgb(var(--c))); transform-origin: bottom; }
.cd-bars i:nth-child(odd) { opacity: .75; }
.cd-table { width: 100%; border-collapse: collapse; }
.cd-table th { padding: 0 0 10px; color: var(--dim); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.cd-table td { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.05); color: var(--ink-2); white-space: nowrap; }
.cd-table td:first-child { color: #fff; font-weight: 600; }
.cd-stage { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,.07); }
.cd-stage.s1 { background: rgba(var(--c-mkt), .16); color: rgb(140,170,255); }
.cd-stage.s2 { background: rgba(var(--c-id), .16); color: rgb(var(--c-id)); }
.cd-stage.s3 { background: rgba(var(--c), .18); color: color-mix(in srgb, rgb(var(--c)) 55%, #fff); }
.cd-stage.s4 { background: rgba(255,255,255,.08); color: var(--ink-2); }
.cd-prog { width: 70px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.cd-prog i { display: block; height: 100%; width: var(--v); background: rgb(var(--c)); border-radius: 5px; }
.cd-dash-note { margin-top: 12px; color: var(--dim); font-size: 12px; text-align: right; }

.cd-anim .cd-bars i { transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.cd-anim .cd-bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 50ms); }
.cd-anim .is-in .cd-bars i { transform: scaleY(1); }

/* Pipeline del sistema */
.cd-pipe { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; list-style: none; }
.cd-pipe::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: linear-gradient(90deg, rgba(var(--c), .2), rgba(var(--c), .6), rgba(var(--c), .2)); }
.cd-pipe li { position: relative; padding-top: 60px; }
.cd-pipe-n {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--c), .5);
  border-radius: 50%;
  background: #121217;
  color: color-mix(in srgb, rgb(var(--c)) 55%, #fff);
  font-size: 12px;
  font-weight: 700;
}
.cd-pipe b { display: block; color: #fff; font-size: 15px; }
.cd-pipe small { display: block; margin-top: 6px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.cd-anim .is-in .cd-pipe-n { animation: cdPipe 5s infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes cdPipe {
  0%, 22%, 100% { background: #121217; box-shadow: none; color: color-mix(in srgb, rgb(var(--c)) 55%, #fff); }
  6%, 16% { background: rgb(var(--c)); box-shadow: 0 0 0 8px rgba(var(--c), .18); color: #fff; }
}

/* Capa base: infraestructura */
.cd-base {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 40px;
  margin-bottom: 120px;
  padding: 30px 34px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px),
    #111;
}
.cd-base h3 { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cd-base .cd-p { font-size: 15px; max-width: 640px; }
.cd-base-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cd-base-tags span { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 12px; }

/* ==========================================================================
   04 · PRUEBA
   ========================================================================== */
.cd-proof { padding: 120px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cd-proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px 80px; align-items: center; }
.cd-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cd-num { padding: 26px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.cd-num b { display: block; color: #fff; font-size: clamp(40px, 4.4vw, 62px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.cd-num span { display: block; margin-top: 10px; color: var(--dim); font-size: 13px; line-height: 1.45; }

/* ==========================================================================
   05 · PARA TU EMPRESA (claro)
   ========================================================================== */
.cd-you { padding: 130px 0; background: var(--light); color: #141414; }
.cd-you .cd-eyebrow { color: #4b463b; }
.cd-you .cd-h2 { color: #141414; }
.cd-you .cd-h2 span { color: rgba(20,20,20,.42); }
.cd-you-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.cd-you-card { padding: 30px 26px; border: 1px solid rgba(0,0,0,.06); border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.cd-you-card i { display: block; margin-bottom: 26px; color: rgba(0,104,94,.35); font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .12em; }
.cd-you-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.cd-you-card p { margin-top: 10px; color: #555; font-size: 14.5px; line-height: 1.6; }

/* ==========================================================================
   06 · SIGUIENTE CASO
   ========================================================================== */
.cd-next { display: block; position: relative; border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.cd-next .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.cd-next-k { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cd-next-name { display: flex; align-items: center; gap: 18px; margin-top: 12px; color: #fff; font-size: clamp(44px, 6vw, 92px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.cd-next-name i { font-style: normal; font-weight: 400; color: var(--dim); transition: transform .4s, color .4s; }
.cd-next-desc { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.cd-next-img { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--bg-card); }
.cd-next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 981px) {
  .cd-next:hover .cd-next-name i { color: #fff; transform: translateX(10px); }
  .cd-next:hover .cd-next-img img { transform: scale(1.04); }
}

/* ==========================================================================
   RESPONSIVE — mobile flat (≤980)
   ========================================================================== */
@media (max-width: 1200px) {
  .cd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-dash-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .cd-cover { min-height: 0; padding-top: 112px; }
  .cd-cover-grid { padding-bottom: 40px; }
  .cd-cover::after { background: linear-gradient(180deg, rgba(7,9,11,.55) 0%, rgba(7,9,11,.85) 100%); }
  .cd-cover-art .cd-ph-label { position: static; margin: 0 clamp(14px,4vw,32px) 24px; max-width: none; }
  .cd-cover-art.cd-ph { position: relative; order: 3; inset: auto; min-height: 260px; display: flex; justify-content: flex-end; }
  .cd-facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-fact { padding: 18px 16px 18px 0; }
  .cd-fact + .cd-fact { padding-left: 16px; }
  .cd-fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .cd-fact:nth-child(n+3) { border-top: 1px solid var(--line); }

  /* Mapa: sin pin, sin explosión — grilla estática */
  .cd-map { --mp: 1; height: auto; padding: 96px 0 72px; }
  .cd-map-sticky { position: static; height: auto; padding-top: 0; overflow: visible; }
  .cd-map-sticky::before { display: none; }
  .cd-map-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; width: auto; margin: 40px clamp(14px,4vw,32px) 0; }
  .cd-piece { position: relative; left: auto; top: auto; width: auto; transform: none; will-change: auto; }
  .cd-piece--core { grid-column: 1 / -1; width: 60%; justify-self: center; }
  .cd-piece-cap { opacity: 1; white-space: normal; text-align: center; }

  .cd-story { padding-top: 96px; }
  .cd-story-grid { grid-template-columns: 1fr; gap: 0; }
  .cd-rail { display: none; }
  .cd-ch { padding-bottom: 88px; }
  .cd-ch-head { grid-template-columns: 1fr; }
  .cd-media--split, .cd-media--trio { grid-template-columns: 1fr 1fr; }
  .cd-media--split > :first-child, .cd-media--trio > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .cd-media--phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-media--phones .cd-ph--sq { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .cd-logo-stage { grid-column: 1 / -1; min-height: 320px; }
  .cd-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; }
  .cd-stat-strip > span { grid-column: 1 / -1; max-width: none; }
  .cd-stat-strip b { font-size: 22px; }

  .cd-dash-body { grid-template-columns: 1fr; min-height: 0; }
  .cd-dash-side { display: none; }
  .cd-dash-main { padding: 16px; }
  .cd-table th:nth-child(2), .cd-table td:nth-child(2) { display: none; }
  .cd-pipe { grid-template-columns: 1fr; gap: 22px; }
  .cd-pipe::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .cd-pipe li { padding: 8px 0 0 64px; min-height: 44px; }
  .cd-base { grid-template-columns: 1fr; padding: 24px; margin-bottom: 88px; }
  .cd-base-tags { justify-content: flex-start; }

  .cd-proof { padding: 88px 0; }
  .cd-proof-grid { grid-template-columns: 1fr; }
  .cd-you { padding: 88px 0; }
  .cd-you-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .cd-next .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }

  /* Mobile flat: todo en estado final, sin animaciones */
  .cd-anim .cd-logo-draw path { stroke-dashoffset: 0; transition: none; }
  .cd-anim .cd-logo-word, .cd-anim .cd-logo-grid { opacity: 1; transition: none; }
  .cd-anim .cd-bars i { transform: none; transition: none; }
  .cd-anim .is-in .cd-pipe-n { animation: none; }
}

@media (max-width: 560px) {
  .cd-media .cd-ph { padding: 14px; }
  .cd-media .cd-ph-s { display: none; }
  .cd-nums { grid-template-columns: 1fr; }
  .cd-kpi b { font-size: 18px; }
  .cd-media--phones { gap: 8px; }
  .cd-piece--core { width: 80%; }
  .cd-stat-strip { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cd-map { --mp: 1; }
  .cd-anim .cd-logo-draw path { stroke-dashoffset: 0; transition: none; }
  .cd-anim .cd-logo-word, .cd-anim .cd-logo-grid { opacity: 1; transition: none; }
  .cd-anim .cd-bars i { transform: none; transition: none; }
  .cd-anim .is-in .cd-pipe-n { animation: none; }
}

/* Offcanvas: redes (mismo estilo que los casos anteriores, sin hover teal) */
.lab-oc-socials { display: flex; flex-direction: column; gap: 10px 18px; }
.lab-oc-socials a { width: fit-content; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 16px; transition: border-color .25s; }
.lab-oc-socials a:hover { border-color: #fff; }

/* ==========================================================================
   BLOQUES ADICIONALES (se usan según el caso)
   ========================================================================== */

/* Flujo "una oferta, todos los canales" ------------------------------------ */
.cd-flow {
  display: grid;
  grid-template-columns: minmax(0, .9fr) 56px minmax(0, 1.6fr) 56px minmax(0, .62fr);
  align-items: center;
  gap: 0 6px;
}
.cd-flow-step { display: flex; flex-direction: column; gap: 14px; }
.cd-flow-step figcaption { display: flex; gap: 10px; align-items: baseline; }
.cd-flow-step figcaption i { color: rgb(var(--c)); font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .1em; }
.cd-flow-step figcaption b { display: block; color: #fff; font-size: 15px; }
.cd-flow-step figcaption small { display: block; margin-top: 3px; color: var(--dim); font-size: 13px; line-height: 1.45; }
.cd-flow-arrow { position: relative; height: 2px; margin-bottom: 64px; background: rgba(var(--c), .25); overflow: visible; }
.cd-flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(var(--c), .7);
  border-right: 2px solid rgba(var(--c), .7);
  transform: rotate(45deg);
}
.cd-flow-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--c));
  box-shadow: 0 0 12px rgba(var(--c), .9);
  opacity: 0;
}
.cd-anim .is-in .cd-flow-arrow::before { animation: cdFlow 2.4s cubic-bezier(.6,0,.4,1) infinite; }
.cd-anim .is-in .cd-flow-arrow + .cd-flow-step + .cd-flow-arrow::before { animation-delay: 1.2s; }
@keyframes cdFlow {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* Modalidades de servicio (ej. ploteo) ------------------------------------ */
.cd-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cd-mode { position: relative; padding: 26px 24px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255,255,255,.02); }
.cd-mode i { display: block; color: var(--dim); font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .12em; }
.cd-mode h3 { margin-top: 14px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.cd-mode p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.cd-mode.is-main { border-color: rgba(var(--c), .55); background: linear-gradient(160deg, rgba(var(--c), .12), rgba(255,255,255,.02) 70%); }
.cd-mode.is-main i { color: rgb(var(--c)); }
.cd-mode-tag {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(var(--c));
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cd-modes-k { margin-top: 44px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Reseña ------------------------------------------------------------------ */
.cd-quote { padding: 34px 34px 30px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.cd-quote-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cd-stars { color: #fbbc04; font-size: 18px; letter-spacing: 3px; }
.cd-quote-src { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; }
.cd-quote-src img { width: 16px; height: 16px; }
.cd-quote blockquote { margin-top: 22px; color: #fff; font-size: clamp(17px, 1.45vw, 21px); font-weight: 500; line-height: 1.55; letter-spacing: -.01em; }
.cd-quote figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.cd-quote figcaption strong { display: block; color: #fff; font-size: 15px; }
.cd-quote figcaption span { display: block; margin-top: 3px; color: var(--dim); font-size: 13px; }
.cd-proof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.cd-proof-stats div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.cd-proof-stats b { display: block; color: #fff; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.cd-proof-stats span { display: block; margin-top: 4px; color: var(--dim); font-size: 12.5px; line-height: 1.4; }

@media (max-width: 980px) {
  .cd-flow { grid-template-columns: 1fr; gap: 0; }
  .cd-flow-step { max-width: 520px; }
  .cd-flow-step:first-child .cd-ph, .cd-flow-step:last-child .cd-ph { max-width: 320px; }
  .cd-flow-arrow { width: 2px; height: 40px; margin: 14px 0 14px 22px; }
  .cd-flow-arrow::after { right: auto; left: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .cd-modes { grid-template-columns: 1fr; gap: 22px; }
  .cd-quote { padding: 26px 22px; }
}

/* Publicidad: Google (búsqueda) + Meta (descubrimiento) ----------------- */
.cd-ads { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.cd-ads-col { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.cd-ads-k small { display: block; color: rgb(var(--c)); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cd-ads-k b { display: block; margin-top: 8px; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cd-ads-k span { display: block; margin-top: 4px; color: var(--dim); font-size: 14px; }
.cd-ads-phone { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.cd-ads-phone .cd-ph { width: min(100%, 250px); }
.cd-kw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.cd-kw em { margin-right: 4px; color: var(--dim); font-size: 12px; font-style: normal; }
.cd-kw span { padding: 7px 12px; border: 1px solid rgba(var(--c), .35); border-radius: 8px; background: rgba(var(--c), .08); color: #fff; font-size: 13px; }
.cd-kw span::before { content: "⌕ "; color: rgb(var(--c)); }
.cd-ads-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; margin-top: 14px; padding: 20px 24px; border: 1px dashed rgba(var(--c), .4); border-radius: 16px; transition: border-color .25s, background .25s; }
.cd-ads-note span { color: rgb(var(--c)); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cd-ads-note p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.cd-ads-note i { color: #fff; font-size: 13px; font-style: normal; font-weight: 600; white-space: nowrap; }
.cd-ads-note:hover { border-color: rgba(var(--c), .8); background: rgba(var(--c), .05); }
@media (max-width: 980px) {
  .cd-ads { grid-template-columns: 1fr; }
  .cd-ads-col { padding: 18px; }
  .cd-ads-note { grid-template-columns: 1fr; padding: 18px; }
}

/* Métricas públicas de campañas --------------------------------------- */
.cd-metrics { margin-top: 14px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.cd-metrics-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cd-metrics-h span { color: rgb(var(--c)); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cd-metrics-h small { color: var(--dim); font-size: 12.5px; }
.cd-metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.cd-metrics-grid div { padding-top: 14px; border-top: 1px solid var(--line-2); }
.cd-metrics-grid b { display: block; color: #fff; font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.cd-metrics-grid span { display: block; margin-top: 6px; color: var(--dim); font-size: 13px; line-height: 1.4; }
.cd-metrics-src { margin-top: 16px; color: var(--dim); font-size: 11.5px; }
@media (max-width: 980px) { .cd-metrics { padding: 20px 18px; } .cd-metrics-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   v2.1 · Sección prueba en teal Duclos + hovers
   ========================================================================== */
[data-svc="duclos"] { --c: 0,202,167; }

/* Prueba ------------------------------------------------------------------ */
.cd-proof[data-svc="duclos"] { position: relative; overflow: hidden; isolation: isolate; }
.cd-proof[data-svc="duclos"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,202,167,.16), rgba(0,104,94,.08) 40%, transparent 68%);
  transform: translateY(-50%);
  pointer-events: none;
}
.cd-proof[data-svc="duclos"] .cd-h2 span {
  background: linear-gradient(100deg, #00caa7 0%, #00e0bb 45%, #00685e 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.cd-num {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 28px;
  border-color: rgba(0,202,167,.14);
  background: linear-gradient(165deg, rgba(0,202,167,.07), rgba(255,255,255,.015) 55%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.cd-num::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 3px;
  background: rgb(var(--c, 0,202,167));
  transition: width .45s cubic-bezier(.2,.7,.2,1);
}
.cd-num small { display: block; margin-bottom: 18px; color: rgb(var(--c, 0,202,167)); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cd-num b {
  font-size: clamp(54px, 5.6vw, 84px);
  background: linear-gradient(180deg, #fff 20%, #7ff0dc 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(0,202,167,.0);
}
.cd-proof-stats div { border-top-color: rgba(0,202,167,.35); }
.cd-proof-stats b { background: linear-gradient(180deg, #fff 30%, #7ff0dc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-quote { transition: border-color .35s, box-shadow .35s; }

/* Hovers: solo desktop con puntero real (mobile flat) --------------------- */
@media (hover: hover) and (min-width: 981px) {
  .cd-num:hover { transform: translateY(-6px); border-color: rgba(0,202,167,.45); box-shadow: 0 24px 60px -24px rgba(0,202,167,.45); }
  .cd-num:hover::before { width: 100%; }
  .cd-quote:hover { border-color: rgba(0,202,167,.4); box-shadow: 0 30px 70px -30px rgba(0,202,167,.35); }

  /* Media y placeholders */
  .cd-media .cd-ph, .cd-flow-step .cd-ph, .cd-ads-col .cd-ph, .cd-logo-stage, .cd-dash {
    transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .45s;
  }
  .cd-media .cd-ph:hover, .cd-flow-step .cd-ph:hover, .cd-ads-col .cd-ph:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(var(--c), .55);
    box-shadow: 0 30px 60px -28px rgba(var(--c), .55);
  }
  .cd-logo-stage:hover { border-color: rgba(var(--c), .45); box-shadow: 0 30px 70px -30px rgba(var(--c), .4); }
  .cd-dash:hover { transform: translateY(-4px); }

  /* Cards */
  .cd-you-card, .cd-mode, .cd-ads-col, .cd-kpi, .cd-base, .cd-stat-strip {
    transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s, background .35s;
  }
  .cd-you-card { position: relative; overflow: hidden; }
  .cd-you-card::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: #00caa7; transition: width .45s cubic-bezier(.2,.7,.2,1); }
  .cd-you-card:hover { transform: translateY(-6px); border-color: rgba(0,202,167,.25); box-shadow: 0 22px 46px -18px rgba(0,104,94,.35); }
  .cd-you-card:hover::before { width: 100%; }
  .cd-you-card:hover i { color: #00a98b; }
  .cd-you-card i { transition: color .3s; }
  .cd-mode:hover, .cd-ads-col:hover, .cd-stat-strip:hover { transform: translateY(-4px); border-color: rgba(var(--c), .45); box-shadow: 0 24px 50px -26px rgba(var(--c), .45); }
  .cd-kpi:hover { transform: translateY(-3px); border-color: rgba(var(--c), .45); background: rgba(var(--c), .07); }
  .cd-base:hover { border-color: rgba(255,255,255,.28); }
  .cd-deliv span, .cd-base-tags span { transition: border-color .25s, color .25s, background .25s; }
  .cd-deliv span:hover, .cd-base-tags span:hover { border-color: rgba(var(--c), .6); color: #fff; background: rgba(var(--c), .08); }

  /* Títulos de capítulo: el número se rellena y el título se ilumina */
  .cd-ch-year { transition: color .5s, -webkit-text-stroke-color .5s; }
  .cd-ch-head:hover .cd-ch-year { color: rgba(var(--c), .16); -webkit-text-stroke-color: rgb(var(--c)); }
  .cd-h2 span { transition: color .4s; }
  .cd-ch-head:hover .cd-h2 span, .cd-story-intro:hover .cd-h2 span, .cd-you .rev:hover .cd-h2 span { color: rgba(255,255,255,.75); }
  .cd-you .rev:hover .cd-h2 span { color: rgba(20,20,20,.7); }

  /* Links: subrayado que se completa */
  .cd-link { border-bottom: 0; padding-bottom: 4px; background: linear-gradient(rgb(var(--c)), rgb(var(--c))) 0 100% / 0 2px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; transition: background-size .45s cubic-bezier(.2,.7,.2,1), color .25s; }
  .cd-link:hover { background-size: 100% 2px, 100% 1px; }
  .cd-ads-note i { transition: transform .3s; }
  .cd-ads-note:hover i { transform: translateY(-3px); }

  /* Riel */
  .cd-rail a { transition: color .3s, transform .3s; }
  .cd-rail a:hover { transform: translateX(4px); }

  /* Botones de la plantilla: brillo al pasar */
  .cd-page .btn-g { box-shadow: 0 0 0 0 rgba(0,202,167,0); transition: box-shadow .4s, color .35s; }
  .cd-page .btn-g:hover { box-shadow: 0 12px 34px -8px rgba(0,202,167,.55); }
  .cd-page .btn-o:hover { box-shadow: 0 12px 30px -12px rgba(255,255,255,.25); }
  .cd-layer { transition: background .25s, border-color .25s, transform .25s; }
  a.cd-layer:hover { transform: translateY(-2px); }
}

@media (max-width: 980px) {
  .cd-num b { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-num, .cd-you-card, .cd-mode, .cd-ads-col, .cd-media .cd-ph, .cd-dash { transition: none !important; transform: none !important; }
}
.cd-nums { grid-template-columns: 1.35fr 1fr 1fr; }
.cd-num b { font-size: clamp(50px, 5vw, 76px); white-space: nowrap; }
@media (max-width: 560px) { .cd-nums { grid-template-columns: 1fr; } }

/* Base / infraestructura en teal Duclos -------------------------------- */
.cd-base[data-svc="duclos"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(0,202,167,.28);
  background:
    radial-gradient(60% 140% at 100% 50%, rgba(0,202,167,.14), transparent 60%),
    radial-gradient(40% 120% at 0% 0%, rgba(0,104,94,.22), transparent 70%),
    repeating-linear-gradient(135deg, rgba(0,202,167,.045) 0 10px, transparent 10px 20px),
    #0f1413;
}
.cd-base[data-svc="duclos"]::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00caa7, transparent);
  opacity: .7;
}
.cd-base h3 span {
  background: linear-gradient(100deg, #00caa7, #00e0bb 50%, #00685e);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.cd-base-side { display: flex; flex-direction: column; gap: 14px; }
.cd-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 11px 6px 9px;
  border: 1px solid rgba(0,202,167,.35);
  border-radius: 999px;
  background: rgba(0,202,167,.08);
  color: #7ff0dc;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.cd-status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #00caa7; }
.cd-status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #00caa7; animation: cdPing 2s ease-out infinite; }
@keyframes cdPing { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.cd-base[data-svc="duclos"] .cd-base-tags span { border-color: rgba(0,202,167,.28); color: #d6fff7; }
@media (hover: hover) and (min-width: 981px) {
  .cd-base[data-svc="duclos"]:hover { border-color: rgba(0,202,167,.6); box-shadow: 0 30px 70px -30px rgba(0,202,167,.4); transform: translateY(-4px); }
}
@media (max-width: 980px) { .cd-base-side { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .cd-status i::after { animation: none; } }

/* Para tu empresa: más vida ------------------------------------------- */
.cd-you { position: relative; overflow: hidden; isolation: isolate; }
.cd-you::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(45% 60% at 85% 10%, rgba(0,202,167,.16), transparent 70%),
    radial-gradient(40% 55% at 5% 100%, rgba(0,104,94,.12), transparent 70%);
}
.cd-you::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(0,104,94,.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.cd-you .cd-h2 span {
  background: linear-gradient(100deg, #00685e 0%, #00a98b 60%, #00caa7 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.cd-you-grid { align-items: stretch; }
.cd-you-card {
  position: relative;
  overflow: hidden;
  padding: 34px 28px 30px;
  border: 1px solid rgba(0,104,94,.12);
  box-shadow: 0 10px 30px -12px rgba(0,104,94,.18);
}
.cd-you-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,202,167,.18), rgba(0,104,94,.10));
  color: #00685e;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.cd-you-card h3 { font-size: 21px; }
.cd-you-card::after {
  content: attr(data-n);
  position: absolute;
  right: 18px;
  bottom: -18px;
  color: rgba(0,104,94,.06);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
}
.cd-you-card.is-featured {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(0,202,167,.28), transparent 60%),
    linear-gradient(160deg, #0f2420, #141414 70%);
  border-color: rgba(0,202,167,.35);
  box-shadow: 0 24px 50px -20px rgba(0,104,94,.55);
}
.cd-you-card.is-featured h3 { color: #fff; }
.cd-you-card.is-featured p { color: rgba(255,255,255,.72); }
.cd-you-card.is-featured i { background: #00caa7; color: #0d1513; }
.cd-you-card.is-featured::after { color: rgba(0,202,167,.10); }
@media (hover: hover) and (min-width: 981px) {
  .cd-you-card i { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s, color .35s; }
  .cd-you-card:hover i { transform: rotate(-6deg) scale(1.08); background: #00caa7; color: #0d1513; }
  .cd-you-card.is-featured:hover { box-shadow: 0 30px 60px -20px rgba(0,202,167,.5); }
}

/* Siguiente caso: highlights en lista -------------------------------- */
.cd-next-list { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 28px; margin-top: 26px; list-style: none; }
.cd-next-list li { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15.5px; font-weight: 600; }
.cd-next-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(0,202,167,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300caa7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cd-next-list li.is-more { color: var(--dim); font-weight: 500; }
.cd-next-list li.is-more::before { background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cd-next-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: #00caa7; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.cd-next-cta i { font-style: normal; transition: transform .35s; }
@media (hover: hover) and (min-width: 981px) { .cd-next:hover .cd-next-cta i { transform: translateX(6px); } }
@media (max-width: 560px) { .cd-next-list { grid-template-columns: 1fr; } }
.cd-cover .btn-wa { margin-top: 32px; }

/* Logo real: construcción + relleno ---------------------------------- */
.cd-logo-stage svg { width: min(78%, 420px); }
.cd-logo-stage .cd-logo-grid line, .cd-logo-stage .cd-logo-grid circle { stroke-width: .25; }
.cd-lg-stroke path { fill: none; stroke: #ef6a00; stroke-width: .7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cd-lg-stroke { opacity: 0; }
.cd-anim .cd-logo-stage .cd-lg-stroke { opacity: 1; }
.cd-anim .cd-logo-stage .cd-lg-stroke path { stroke-dashoffset: 1; }
.cd-anim .cd-logo-stage .cd-lg-fill, .cd-anim .cd-logo-stage .cd-lg-text { opacity: 0; }
.cd-anim .cd-logo-stage .cd-lg-text { transform: translateY(6px); }
/* Las transiciones viven solo en el estado .is-in: así el estado inicial se aplica sin animar */
.cd-anim .cd-logo-stage.is-in .cd-lg-stroke path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1); }
.cd-anim .cd-logo-stage.is-in .cd-lg-stroke path:nth-child(2) { transition-delay: .25s; }
.cd-anim .cd-logo-stage.is-in .cd-lg-stroke path:nth-child(3) { transition-delay: .5s; }
.cd-anim .cd-logo-stage.is-in .cd-lg-stroke path:nth-child(4) { transition-delay: .75s; }
.cd-anim .cd-logo-stage.is-in .cd-lg-fill { opacity: 1; transition: opacity .9s 1.7s; }
.cd-anim .cd-logo-stage.is-in .cd-lg-text { opacity: 1; transform: none; transition: opacity .8s 2.2s, transform .8s 2.2s; }
.cd-anim .cd-logo-stage.is-in .cd-logo-grid { opacity: .55; transition: opacity 1.2s 2.4s; }

/* Logo en el centro del mapa */
.cd-ph--logo { padding: 22px; justify-content: center; align-items: center; background: radial-gradient(80% 80% at 50% 30%, rgba(var(--c-client), .22), transparent 70%), #101112; }
.cd-ph--logo::before { display: none; }
.cd-logo-mark { width: 100%; height: auto; }

/* Paleta codeada */
.cd-palette { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #0e0f10; aspect-ratio: 4/3; }
.cd-palette-k { color: rgb(var(--c-client)); font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cd-palette-main { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; border-radius: 12px; background: linear-gradient(120deg, #f58700, #e63c00); }
.cd-palette-main b { color: #fff; font-size: 16px; }
.cd-palette-main small { color: rgba(255,255,255,.85); font-size: 12px; font-family: ui-monospace, monospace; }
.cd-palette-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-palette-row div { display: flex; flex-direction: column; gap: 6px; }
.cd-palette-row i { height: 34px; border-radius: 8px; background: var(--sw); border: 1px solid rgba(255,255,255,.08); }
.cd-palette-row small { color: var(--dim); font-size: 11px; font-family: ui-monospace, monospace; }
.cd-palette-tag { color: var(--ink-2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
@media (hover: hover) and (min-width: 981px) {
  .cd-palette { transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .45s; }
  .cd-palette:hover { transform: translateY(-6px); border-color: rgba(var(--c-client), .5); box-shadow: 0 30px 60px -28px rgba(var(--c-client), .5); }
}
@media (max-width: 980px) { .cd-palette { aspect-ratio: auto; } .cd-palette-main { min-height: 90px; } }
.cd-anim .cd-logo-stage.is-in .cd-lg-stroke { opacity: 0; transition: opacity .6s 2.6s; }

/* Sobre el cliente (antes del CTA) ------------------------------------ */
.cd-client { position: relative; padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.cd-client::before { content: ""; position: absolute; z-index: -1; left: -10%; top: 50%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-client), .10), transparent 65%); transform: translateY(-50%); }
.cd-client-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 80px; align-items: center; }
.cd-client-head { display: flex; align-items: center; gap: 18px; }
.cd-client-mark { width: 54px; height: auto; flex: none; }
.cd-client-k { display: block; color: rgb(var(--c-client)); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cd-client h2 { margin-top: 4px; color: #fff; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.cd-client-main p { margin-top: 22px; max-width: 600px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.cd-client-main .cd-link { margin-top: 24px; }
.cd-client-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cd-client-stats div { padding-top: 16px; border-top: 2px solid rgba(var(--c-client), .5); }
.cd-client-stats b { display: block; color: #fff; font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; }
.cd-client-stats span { display: block; margin-top: 6px; color: var(--dim); font-size: 13px; line-height: 1.4; }
@media (max-width: 980px) {
  .cd-client { padding: 72px 0; }
  .cd-client-grid { grid-template-columns: 1fr; }
  .cd-client-stats { grid-template-columns: 1fr 1fr; }
}
.cd-client-stats { grid-template-columns: .8fr 1fr 1.5fr; }
.cd-client-stats b { font-size: clamp(24px, 2.3vw, 34px); }
@media (max-width: 980px) { .cd-client-stats { grid-template-columns: 1fr 1fr; } }

/* Keywords: etiqueta arriba, pills en una fila */
.cd-kw em { flex-basis: 100%; margin: 0 0 2px; }
.cd-metrics-h small { text-decoration: none; }
.cd-metrics-src { line-height: 1.5; }

/* Logo MP en el dashboard */
.cd-dash-brand::before { display: none; }
.cd-dash-logo { width: 24px; height: auto; flex: none; }

/* Mini dashboard (pieza del mapa) */
.cd-mini { width: 100%; height: 100%; display: flex; flex-direction: column; border: 1px solid rgba(var(--c-sis), .35); border-radius: 14px; overflow: hidden; background: #0d0d12; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 20px 50px -25px rgba(var(--c-sis), .45); }
.cd-mini-bar { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.06); background: #121218; }
.cd-mini-bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.15); }
.cd-mini-body { flex: 1; display: grid; grid-template-columns: 17% 1fr; min-height: 0; }
.cd-mini-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-right: 1px solid rgba(255,255,255,.06); background: #101015; }
.cd-mini-logo { width: 60%; height: auto; margin-bottom: 4px; }
.cd-mini-side span { width: 80%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); }
.cd-mini-side span.on { background: rgba(var(--c-sis), .55); }
.cd-mini-main { display: flex; flex-direction: column; gap: 6px; padding: 8px; min-height: 0; }
.cd-mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cd-mini-kpis div { padding: 5px 6px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; background: rgba(255,255,255,.03); }
.cd-mini-kpis small { display: block; color: var(--dim); font-size: 6.5px; line-height: 1.2; }
.cd-mini-kpis b { display: block; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; }
.cd-mini-row { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 5px; min-height: 0; }
.cd-mini-bars { display: flex; align-items: flex-end; gap: 3px; padding: 6px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; }
.cd-mini-bars i { flex: 1; height: var(--h); border-radius: 2px 2px 1px 1px; background: linear-gradient(to top, rgba(var(--c-sis), .35), rgb(var(--c-sis))); }
.cd-mini-list { display: flex; flex-direction: column; justify-content: space-around; padding: 4px 6px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; }
.cd-mini-list span { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cd-mini-list b { width: 55%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.cd-mini-list em { width: 24%; height: 7px; border-radius: 3px; background: rgba(255,255,255,.1); }
.cd-mini-list em.s1 { background: rgba(var(--c-mkt), .5); }
.cd-mini-list em.s2 { background: rgba(var(--c-id), .55); }
.cd-mini-list em.s3 { background: rgba(var(--c-sis), .6); }
a.cd-piece:hover .cd-mini { border-color: rgba(var(--c-sis), .7); }
@media (max-width: 980px) { .cd-piece .cd-mini { aspect-ratio: 16 / 10; height: auto; } }

/* ==========================================================================
   Imágenes reales
   ========================================================================== */
.cd-cover-art { position: absolute; inset: 0; z-index: -2; display: block; }
.cd-cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }

.cd-img { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: #0c0d0e; }
.cd-img img, .cd-img video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cd-media--split > .cd-img:not(:first-child) { aspect-ratio: 1 / 1; }
.cd-media--split > .cd-img:first-child { aspect-ratio: auto; }

.cd-piece-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(0,0,0,.55)); }
.cd-piece-img--card { object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
a.cd-piece:hover .cd-piece-img { filter: drop-shadow(0 26px 34px rgba(var(--c), .35)); }

.cd-ads-phone-img { display: block; width: min(100%, 260px); height: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.6)); }

@media (hover: hover) and (min-width: 981px) {
  .cd-media .cd-img, .cd-ads-col .cd-img { transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .45s; }
  .cd-media .cd-img:hover, .cd-ads-col .cd-img:hover { transform: translateY(-6px); border-color: rgba(var(--c), .55); box-shadow: 0 30px 60px -28px rgba(var(--c), .55); }
  .cd-img img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .cd-img:hover img { transform: scale(1.03); }
  .cd-ads-phone-img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .cd-ads-col:hover .cd-ads-phone-img { transform: translateY(-6px) rotate(-1.5deg); }
}

@media (max-width: 980px) {
  .cd-cover::after { display: none; }
  .cd-cover-art { position: relative; inset: auto; order: 3; z-index: 0; aspect-ratio: 900 / 1200; }
  .cd-cover-art img { object-position: center bottom; }
  .cd-cover-art::before { content: ""; position: absolute; inset: 0 0 auto; height: 30%; background: linear-gradient(#090b0d, transparent); z-index: 1; }
  .cd-facts { order: 4; }
  .cd-media--phones .cd-img--feed { grid-column: 1 / -1; }
  .cd-media--split > .cd-img:first-child { aspect-ratio: 16 / 10; }
}

/* Grilla apilada: imagen principal arriba, dos abajo */
.cd-media--stack { grid-template-columns: 1fr 1fr; }
.cd-media--stack > :first-child { grid-column: 1 / -1; }
.cd-media--stack > .cd-img:not(:first-child) { aspect-ratio: 1 / 1; }

/* Hero con imagen: la composición se corre a la derecha y se funde con el fondo */
@media (min-width: 981px) {
  .cd-cover-art { left: 24%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%); }
  .cd-cover-art img { object-position: 60% center; }
  .cd-cover::after { background: linear-gradient(90deg, rgba(9,11,13,.9) 0%, rgba(9,11,13,.55) 32%, rgba(9,11,13,0) 55%); }
}
@media (min-width: 981px) {
  .cd-cover-art { left: 34%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
  .cd-cover-art img { object-position: 82% center; }
}
@media (min-width: 1700px) { .cd-cover-art { left: 38%; } }
@media (min-width: 981px) {
  .cd-cover-art { left: 46%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%); mask-image: linear-gradient(90deg, transparent 0%, #000 20%); }
  .cd-cover-art img { object-position: 78% center; }
  .cd-cover-copy { max-width: 640px; }
  .cd-cover .cd-lead { max-width: 560px; }
}
@media (min-width: 1700px) { .cd-cover-art { left: 44%; } }
@media (min-width: 981px) and (max-width: 1699px) { .cd-cover-art img { object-position: 92% center; } }
@media (min-width: 981px) and (max-width: 1249px) { .cd-cover-art { left: 52%; } .cd-cover-art img { object-position: 100% center; } }

/* ==========================================================================
   Hero v3: degradé suave, mockup completo, tablet y mobile con imagen
   ========================================================================== */
.cd-layers-br { flex-basis: 100%; height: 0; }

@media (min-width: 981px) {
  .cd-cover-art { left: 0; -webkit-mask-image: none; mask-image: none; }
  .cd-cover-art img { object-position: 100% center; }
  .cd-cover::after {
    background: linear-gradient(90deg,
      rgba(9,11,13,.96) 0%,
      rgba(9,11,13,.9) 22%,
      rgba(9,11,13,.62) 38%,
      rgba(9,11,13,.28) 52%,
      rgba(9,11,13,0) 66%);
  }
}
@media (min-width: 1700px) { .cd-cover-art { left: 0; } }

/* Tablet vertical: imagen vertical abajo, texto arriba */
@media (min-width: 981px) and (max-width: 1199px) and (orientation: portrait) {
  .cd-cover-art img { object-position: center bottom; }
  .cd-cover::after { background: linear-gradient(180deg, rgba(9,11,13,.96) 0%, rgba(9,11,13,.85) 38%, rgba(9,11,13,.2) 62%, rgba(9,11,13,0) 75%); }
  .cd-cover { min-height: min(1200px, 100svh); }
  .cd-cover-grid { align-items: flex-start; padding-top: 20px; }
}
/* Tablet horizontal / notebooks chicas */
@media (min-width: 981px) and (max-width: 1249px) and (orientation: landscape) {
  .cd-cover::after { background: linear-gradient(90deg, rgba(9,11,13,.96) 0%, rgba(9,11,13,.88) 30%, rgba(9,11,13,.45) 48%, rgba(9,11,13,0) 64%); }
}

/* Mobile: la imagen asoma debajo del botón */
@media (max-width: 980px) {
  .cd-cover { padding-bottom: 92vw; }
  .cd-cover-grid { padding-bottom: 0; }
  .cd-cover-art {
    position: absolute;
    inset: auto 0 0 0;
    order: 0;
    z-index: -2;
    aspect-ratio: 900 / 1200;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 32%);
  }
  .cd-cover-art::before { display: none; }
  .cd-cover-art img { object-position: center bottom; }
}
@media (min-width: 981px) {
  .cd-cover::after {
    background: linear-gradient(90deg,
      rgba(9,11,13,.97) 0%,
      rgba(9,11,13,.93) 30%,
      rgba(9,11,13,.76) 42%,
      rgba(9,11,13,.36) 56%,
      rgba(9,11,13,0) 70%);
  }
}
/* Tablet vertical: mismo esquema que mobile (imagen abajo, asomando bajo el botón) */
@media (min-width: 981px) and (max-width: 1199px) and (orientation: portrait) {
  .cd-cover { min-height: 0; padding-bottom: 66vw; }
  .cd-cover::after { display: none; }
  .cd-cover-grid { padding-bottom: 0; }
  .cd-cover-art {
    position: absolute;
    inset: auto 0 0 0;
    z-index: -2;
    aspect-ratio: 900 / 1200;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  }
}
@media (min-width: 981px) and (orientation: landscape), (min-width: 1200px) {
  .cd-cover::after {
    background: linear-gradient(90deg,
      rgba(9,11,13,.97) 0%,
      rgba(9,11,13,.94) 36%,
      rgba(9,11,13,.78) 46%,
      rgba(9,11,13,.4) 58%,
      rgba(9,11,13,.1) 68%,
      rgba(9,11,13,0) 74%);
  }
}
@media (min-width: 1700px) {
  .cd-cover::after { background: linear-gradient(90deg, rgba(9,11,13,.97) 0%, rgba(9,11,13,.9) 30%, rgba(9,11,13,.6) 42%, rgba(9,11,13,.2) 54%, rgba(9,11,13,0) 64%); }
}
@media (min-width: 1700px) {
  .cd-cover::after { background: linear-gradient(90deg, rgba(9,11,13,.97) 0%, rgba(9,11,13,.94) 38%, rgba(9,11,13,.78) 48%, rgba(9,11,13,.4) 60%, rgba(9,11,13,.1) 70%, rgba(9,11,13,0) 76%); }
}

/* Mobile: en la grilla de identidad todo a ancho completo */
@media (max-width: 980px) {
  .cd-media--split { grid-template-columns: 1fr; }
  .cd-media--split > * { grid-column: 1 / -1; }
}
.cd-next-img img { object-position: left top; }
.cd-next-img { aspect-ratio: 1300 / 731; } .cd-next-img img { object-position: center; }

/* Hero v4: imagen panorámica con aire a la izquierda → degradé corto */
@media (min-width: 981px) and (orientation: landscape), (min-width: 1200px) {
  .cd-cover-art img { object-position: 75% center; }
  .cd-cover::after { background: linear-gradient(90deg, rgba(9,11,13,.9) 0%, rgba(9,11,13,.55) 30%, rgba(9,11,13,0) 48%); }
}
@media (min-width: 1700px) {
  .cd-cover::after { background: linear-gradient(90deg, rgba(9,11,13,.85) 0%, rgba(9,11,13,.4) 28%, rgba(9,11,13,0) 42%); }
}
@media (min-width: 981px) and (max-width: 1699px) { .cd-cover-art img { object-position: 100% center; } }

/* ==========================================================================
   Hero tablet vertical (600–1199px portrait): imagen de fondo completa,
   texto arriba sobre la parte oscura, dispositivos abajo
   ========================================================================== */
@media (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
  .cd-cover {
    min-height: calc(100vw * 1446 / 1087);
    padding-top: 120px;
    padding-bottom: 0;
  }
  .cd-cover::after { display: none; }
  .cd-cover-art {
    position: absolute;
    inset: 0;
    order: 0;
    z-index: -2;
    aspect-ratio: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .cd-cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
  .cd-cover-grid { align-items: flex-start; padding-top: 0; padding-bottom: 0; }
  .cd-cover-copy { max-width: 100%; }
  .cd-crumb { margin-bottom: 22px; font-size: 15px; }
  .cd-cover h1 { max-width: 12ch; margin-top: 22px; font-size: clamp(64px, 9.5vw, 96px); }
  .cd-cover h1 span { max-width: 15ch; font-size: .62em; }
  .cd-lead { max-width: 560px; margin-top: 22px; font-size: 19px; }
  .cd-layers { gap: 10px; margin-top: 24px; }
  .cd-layer { padding: 7px 14px 7px 12px; font-size: 12px; }
  .cd-layers-br--m { display: none; }
  .cd-cover .btn-wa { margin-top: 28px; }
}
@media (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
  /* La imagen va anclada abajo con su proporción; se reserva lugar para los dispositivos */
  .cd-cover { min-height: 0; padding-bottom: calc(100vw * 1446 / 1087 * .5); background: #0a0c0e; }
  .cd-cover-art { inset: auto 0 0 0; aspect-ratio: 1087 / 1446; height: auto; }
  .cd-cover h1 span { max-width: 18ch; }
}

/* Base: en anchos medios (con el riel visible) se apila para que el texto respire */
@media (max-width: 1279px) {
  .cd-base { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .cd-base-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .cd-base-tags { justify-content: flex-start; }
}

/* Siguiente caso: nombres largos (ej. "HM Electromecánica") sin desbordar */
.cd-next .wrap > div { min-width: 0; }
.cd-next-name { flex-wrap: wrap; font-size: clamp(38px, 4.4vw, 72px); line-height: 1.02; overflow-wrap: anywhere; }
.cd-next-name { display: block; }
.cd-next-name i { display: inline-block; margin-left: .25em; vertical-align: baseline; }
.cd-next-name { font-size: clamp(34px, 3.8vw, 64px); }
.cd-nw { white-space: nowrap; }

/* Media: foto horizontal + reel vertical (gráfica vehicular) */
.cd-media--reel { grid-template-columns: 2.4fr 1fr; align-items: center; }
@media (max-width: 980px) {
  .cd-media--reel { grid-template-columns: 1fr; }
  .cd-media--reel > :last-child { width: 100%; max-width: 340px; margin: 0 auto; }
}

/* Base: tags en 2x2 en desktop para que el texto tenga más ancho y menos líneas */
@media (min-width: 1280px) {
  .cd-base { gap: 18px 48px; }
  .cd-base .cd-p { max-width: 720px; }
  .cd-base-tags { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; justify-content: end; }
  .cd-base-tags span { text-align: center; }
}

/* Sobre el cliente: con 2 datos, columnas iguales */
.cd-client-stats:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Media: captura de web a lo ancho + fila de 3 piezas verticales alineadas abajo */
.cd-media--browser { margin-bottom: 14px; }
.cd-media--row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
@media (max-width: 620px) { .cd-media--row3 { gap: 8px; } }

/* Media: pieza recortada sin recuadro a la izquierda + dos imágenes apiladas a la derecha */
.cd-media--print { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.cd-media--print > :first-child { grid-row: span 2; }
.cd-img--bare { border: 0; border-radius: 0; background: none; overflow: visible; }
.cd-img--bare img { object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
@media (max-width: 980px) {
  .cd-media--print { grid-template-columns: 1fr; }
  .cd-media--print > :first-child { grid-row: auto; max-width: 560px; margin: 0 auto; }
}

/* Pieza sin recuadro: al pasar el mouse se ilumina solo la silueta (sin caja ni borde) */
.cd-media .cd-img.cd-img--bare, .cd-media .cd-img.cd-img--bare:hover { border: 0; box-shadow: none; background: none; }
.cd-img--bare img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .45s; }
@media (hover: hover) {
  .cd-media .cd-img.cd-img--bare:hover img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 18px 36px rgba(var(--c), .45)); }
}

/* ==========================================================================
   Ajustes v4 (nov 2026)
   ========================================================================== */
/* Hero: texto un poco más chico y degradé más oscuro a la izquierda */
.cd-cover h1 { font-size: clamp(40px, 4.6vw, 70px); }
.cd-lead { font-size: clamp(15px, 1.15vw, 17px); }
@media (min-width: 981px) {
  .cd-cover .cd-lead { max-width: 520px; }
  .cd-cover::after {
    background: linear-gradient(90deg,
      rgba(9,11,13,.97) 0%,
      rgba(9,11,13,.93) 28%,
      rgba(9,11,13,.74) 40%,
      rgba(9,11,13,.38) 54%,
      rgba(9,11,13,0) 68%);
  }
}

/* Mapa: logo central en contenedor rectangular */
.cd-piece--core .cd-ph--logo { padding: 26px 34px; }

/* Leyenda técnica debajo de una imagen */
.cd-fig { margin: 0; }
.cd-cap { margin-top: 9px; color: var(--dim); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Papelería: columna derecha más angosta */
.cd-media--print { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px 28px; }

/* Piezas para redes: captura web + dos placas a la izquierda, historia a la derecha */
.cd-media--social { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); align-items: start; }
.cd-media--social .cd-social-web { grid-column: 1; grid-row: 1; }
.cd-media--social .cd-social-pair { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cd-media--social .cd-social-hist { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 980px) {
  .cd-media--social { grid-template-columns: 1fr; }
  .cd-media--social .cd-social-hist { grid-column: 1; grid-row: auto; width: 100%; max-width: 340px; margin: 0 auto; }
  .cd-media--social .cd-social-pair { grid-row: auto; }
}

/* ==========================================================================
   Ajustes v5: tablet y mobile (≤980px)
   ========================================================================== */
@media (max-width: 980px) {
  /* Mapa apilado (opt-in con .cd-map-stage--stack):
     piezas anchas solas y centradas, después un par alineado, el logo al final */
  .cd-map-stage--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 20px; }
  .cd-map-stage--stack .cd-piece--wide { order: 1; grid-column: 1 / -1; justify-self: center; width: 74%; }
  .cd-map-stage--stack .cd-piece--wide + .cd-piece--wide,
  .cd-map-stage--stack .cd-piece--veh { width: 64%; }
  .cd-map-stage--stack .cd-piece--pair { order: 2; align-self: stretch; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; padding-bottom: 34px; }
  .cd-map-stage--stack .cd-piece--pair .cd-piece-img { height: auto; }
  .cd-map-stage--stack .cd-piece--pair .cd-piece-cap { top: auto; bottom: 0; }
  .cd-map-stage--stack .cd-piece--core { order: 3; width: 38%; }

  /* Piezas para redes: nada al 100% */
  .cd-media--social { justify-items: center; }
  .cd-media--social .cd-social-web { width: 50%; }
  .cd-media--social .cd-social-pair { width: 72%; }
  .cd-media--social .cd-social-hist { width: 36%; max-width: none; }

  /* Papelería: tarjeta sola centrada; debajo dos imágenes iguales en fila */
  .cd-media--print { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .cd-media--print > :first-child { grid-column: 1 / -1; grid-row: auto; justify-self: center; width: 100%; max-width: 560px; }
  .cd-media--print .cd-fig .cd-img { aspect-ratio: 3 / 2 !important; }
}
@media (max-width: 600px) {
  .cd-map-stage--stack { gap: 44px 14px; }
  .cd-map-stage--stack .cd-piece--wide { width: 86%; }
  .cd-map-stage--stack .cd-piece--wide + .cd-piece--wide,
  .cd-map-stage--stack .cd-piece--veh { width: 80%; }
  .cd-map-stage--stack .cd-piece--core { width: 54%; }
  .cd-media--social .cd-social-web { width: 65%; }
  .cd-media--social .cd-social-pair { width: 100%; }
  .cd-media--social .cd-social-hist { width: 50%; }
}

/* ==========================================================================
   v6 · Metalúrgica Pampeana: mapa apilado (tablet + mobile), redes, ajustes
   ========================================================================== */
.cd-intro-p { margin-top: 18px; max-width: 560px; }

/* 03 · Placas y reels: flyer al centro, los dos verticales a los costados, feed abajo */
.cd-media--redes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 18px; align-items: end; }
.cd-media--redes .cd-redes-feed { grid-column: 1 / -1; justify-self: center; width: 60%; max-width: 520px; margin-top: 12px; }
.cd-media--redes .cd-cap { text-align: center; }

/* Mapa apilado: tablet en vertical y mobile */
@media (max-width: 980px), (max-width: 1199px) and (orientation: portrait) {
  .cd-map:has(.cd-map-stage--mp) { --mp: 1; height: auto; padding: 96px 0 80px; }
  .cd-map:has(.cd-map-stage--mp) .cd-map-sticky { position: static; height: auto; padding-top: 0; overflow: visible; }
  .cd-map:has(.cd-map-stage--mp) .cd-map-sticky::before { display: none; }
  .cd-map-stage--mp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 24px;
    align-items: start;
    width: auto;
    max-width: 760px;
    margin: 48px auto 0;
    padding: 0 clamp(14px, 4vw, 32px);
  }
  .cd-map-stage--mp .cd-piece { position: relative; left: auto; top: auto; width: auto; transform: none; will-change: auto; justify-self: center; }
  .cd-map-stage--mp .cd-piece-cap { opacity: 1; white-space: normal; text-align: center; }
  .cd-map-stage--mp .cd-mp-logo   { order: 1; grid-column: 1 / -1; width: 40%; }
  .cd-map-stage--mp .cd-mp-web    { order: 2; grid-column: 1 / -1; width: 82%; }
  .cd-map-stage--mp .cd-mp-sis    { order: 3; width: 100%; }
  .cd-map-stage--mp .cd-mp-google { order: 4; width: 100%; }
  .cd-map-stage--mp .cd-mp-reel   { order: 5; width: 58%; }
  .cd-map-stage--mp .cd-mp-meta   { order: 6; width: 58%; }
  .cd-map-stage--mp .cd-mp-flyer  { order: 7; grid-column: 1 / -1; width: calc(50% - 12px); max-width: 260px; }
}
@media (max-width: 600px) {
  .cd-map-stage--mp { gap: 52px 14px; }
  .cd-map-stage--mp .cd-mp-logo { width: 56%; }
  .cd-map-stage--mp .cd-mp-web { width: 96%; }
  .cd-map-stage--mp .cd-mp-reel, .cd-map-stage--mp .cd-mp-meta { width: 74%; }
}

/* Tablet en vertical: frase de la historia en una línea, logo aplicado al 70% */
@media (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
  .cd-intro-p { max-width: none; }
  #cap-identidad .cd-media--split { grid-template-columns: 1fr; }
  #cap-identidad .cd-media--split > * { grid-column: 1 / -1; grid-row: auto; }
  #cap-identidad .cd-img--logoapp { justify-self: center; width: 70%; }
}

/* Mobile */
@media (max-width: 600px) {
  .cd-media--redes { gap: 22px 8px; }
  .cd-media--redes .cd-cap { font-size: 9px; letter-spacing: .08em; }
  .cd-media--redes .cd-redes-feed { width: 72%; }
}
@media (max-width: 980px) {
  .cd-ads-phone-img { width: min(100%, 200px); }
}
/* Sistema y Google Ads con la misma caja en el mapa apilado */
@media (max-width: 980px), (max-width: 1199px) and (orientation: portrait) {
  .cd-map-stage--mp .cd-mp-sis { --ar: 550 / 303; }
}
@media (max-width: 600px) {
  .cd-map-stage--mp .cd-mini-kpis b { font-size: 8.5px; }
  .cd-map-stage--mp .cd-mini-kpis small { font-size: 5.5px; }
  .cd-map-stage--mp .cd-mini-main { padding: 6px; gap: 5px; }
}
@media (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
  #cap-identidad .cd-palette { aspect-ratio: auto; }
  #cap-identidad .cd-palette-main { flex: none; min-height: 110px; }
  #cap-identidad .cd-logo-stage { min-height: 360px; }
}

/* ==========================================================================
   Paulo · layouts genéricos (nov 2026)
   - cd-media--fleet: foto horizontal grande arriba; abajo, una vertical a la izquierda y,
     a la derecha, una horizontal + una card. La card toma el alto que sobra:
     horizontal + card = alto de la vertical. Ninguna foto se recorta.
   - cd-media--tall: el primer ítem vertical de un split conserva proporción alta en tablet/mobile.
   - cd-cap--real: sello chico «Fotos reales».
   - cd-palette-row--3: paleta con 3 muestras. cd-piece--tall: pieza vertical del mapa apilado.
   ========================================================================== */
.cd-media--fleet { grid-template-columns: minmax(0, 1fr); }
.cd-fleet-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.cd-fleet-tall { align-self: start; }
.cd-fleet-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cd-fleet-col > .cd-img { flex: none; }
.cd-fleet-card { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.cd-fleet-card h3 { margin-top: 0; }
.cd-cap--real { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.cd-cap--real::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); }
.cd-palette-row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .cd-media--tall > .cd-img:first-child { aspect-ratio: var(--tall-ar, 8 / 9); }
  .cd-fleet-card { padding: 18px 18px; }
  .cd-fleet-card h3 { font-size: 16px; }
  .cd-fleet-card p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; }
  .cd-map-stage--stack .cd-piece--tall .cd-piece-img { width: auto; max-width: 52%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .cd-fleet-row { grid-template-columns: minmax(0, 1fr); }
  .cd-fleet-tall { max-width: 420px; justify-self: center; width: 100%; }
}

/* cd-media--fill: en desktop, el primer ítem de un split no define el alto de la fila;
   la foto se ajusta (recorte de alto) al alto de las dos de la derecha. */
@media (min-width: 981px) {
  .cd-media--fill > .cd-img:first-child { min-height: 0; }
  .cd-media--fill > .cd-img:first-child img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
}

/* Teléfonos muy angostos: el nombre del siguiente caso (nowrap + flecha) no debe pasarse de la columna */
@media (max-width: 380px) { .cd-next-name { font-size: 29px; } }
