/* Transformación Digital — Hero (Claude redesign).
   Scoped to body.td-page. Content: dist/transformacion-digital.json via docs/render-transformacion-digital.cjs.
   Capacidades uses CODEX's horizontal-tab version: dist/digital-capabilities.{json,css,js}. */
.td-page{--td-blue:#0095e5;--td-cyan:#00b0d1;--td-pink:#cd0298;--td-purple:#873cec;--td-ink:#f5f7ff;--td-ease:cubic-bezier(.2,.7,.2,1)}
.td-page .td-main{overflow-x:clip}

/* Hero → Capacidades: no separator line. The photo and its shade fade into the page's #00010E through a long, eased vertical
   ramp (from about half the hero's height down to its edge), so there is no visible point where one section ends;
   Capacidades starts on that same #00010E (td-depth.css). */
.td-hero{position:relative;isolation:isolate;padding:clamp(48px,6vw,84px) 0 clamp(64px,7vw,104px);--td-hero-fade:linear-gradient(180deg,#000 0,#000 48%,rgba(0,0,0,.86) 60%,rgba(0,0,0,.62) 72%,rgba(0,0,0,.36) 83%,rgba(0,0,0,.14) 93%,transparent 100%)}
/* Photo + shade: same treatment as .security-hero-photo / .security-hero:after on the other solution heroes. */
.td-hero-photo{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-width:none;object-fit:cover;object-position:right center;pointer-events:none;-webkit-mask-image:var(--td-hero-fade);mask-image:var(--td-hero-fade)}
.td-hero::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#00010eeb 0%,#00010eaa 38%,#00010e22 72%,transparent);-webkit-mask-image:var(--td-hero-fade);mask-image:var(--td-hero-fade)}
.td-hero-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;min-height:clamp(440px,calc(100vw / 2.26 - 188px),700px)}
.td-hero-copy{position:relative;z-index:1;min-width:0;max-width:720px}
.td-page .td-back{display:inline-block;color:#94a3b9;font-size:.8rem;text-decoration:none;margin-bottom:38px;transition:color .25s}
.td-page .td-back:hover{color:#fff}
.td-page .td-back:focus-visible{outline:2px solid var(--td-cyan);outline-offset:4px;border-radius:4px}
.td-page .td-eyebrow{color:#5ec8ff;font-size:.75rem;letter-spacing:.18em;font-weight:500;margin:0 0 26px}
.td-hero h1{margin:0;font-size:clamp(2.5rem,4vw,3.9rem);font-weight:400;line-height:1.12;letter-spacing:-.045em;color:var(--td-ink)}
.td-hero .td-line{display:block;text-wrap:balance}
.td-hero .td-lead{max-width:600px;margin:32px 0 0;color:#b8c5d9;font-size:1.06rem;line-height:1.85}

@media (max-width:1000px){
 .td-hero-grid{min-height:0;padding:28px 0 8px}
}
@media (max-width:700px){
 .td-hero{padding:36px 0 64px}
 .td-hero-photo{object-position:68% center}
 .td-hero::before{background:linear-gradient(90deg,#00010eda,#00010e70)}
 .td-page .td-back{margin-bottom:30px}
 .td-page .td-eyebrow{font-size:.7rem;letter-spacing:.15em;margin-bottom:22px}
 .td-hero h1{font-size:clamp(2.05rem,8.6vw,2.9rem);line-height:1.16;letter-spacing:-.035em}
 .td-hero .td-lead{font-size:1rem;margin-top:26px}
}

@keyframes td-line{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes td-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:no-preference){
 .td-hero .td-back,.td-hero .td-eyebrow{animation:td-line .8s var(--td-ease) .1s both}
 .td-hero .td-line{animation:td-line 1s var(--td-ease) .25s both}
 .td-hero .td-line+.td-line{animation-delay:.4s}
 .td-hero .td-lead{animation:td-line .9s var(--td-ease) .65s both}
 .td-hero-photo{animation:td-fade 1.2s ease both}
}

/* Diferenciadores count-up (continuidad-experiencia.js): white number, cyan "+" — same as Continuidad Operativa. */
.td-page .security-difference .security-proof strong .co-count{color:#fff}

/* ---------- Ecosistema de innovación: editorial photo section ---------- */
.td-eco{position:relative;padding:clamp(90px,10vw,150px) 0 clamp(90px,10vw,140px)}
.td-eco-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,5vw,80px);align-items:end}
.td-eco-head h2{margin:0;font-size:clamp(2.1rem,3.4vw,3.2rem);font-weight:400;line-height:1.15;letter-spacing:-.04em;color:var(--td-ink);text-wrap:balance}
.td-eco-intro{margin:0;max-width:470px;color:#a9b6cc;font-size:1rem;line-height:1.85}
.td-eco-photo{position:relative;margin:clamp(40px,5vw,64px) 0 0;aspect-ratio:9/4;border-radius:14px;overflow:hidden;background:#050816}
.td-eco-photo::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff12;pointer-events:none}
.td-eco-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 73%}
.td-eco-pending{display:grid;place-content:center;gap:8px;height:100%;border:1px dashed #294156;border-radius:inherit;text-align:center;color:#8fa1bb;font-size:.85rem}
.td-eco-pending p{margin:0;color:#c9d6ea;font-size:1rem}
.td-eco-flow{display:flex;align-items:center;margin:16px 0 0;padding:0;list-style:none}
.td-eco-flow li{display:flex;align-items:center;flex:1 1 auto;min-width:0}
.td-eco-flow li:last-child{flex:0 0 auto}
.td-eco-flow span{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;color:#d3deef;font-size:.8rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase}
.td-eco-flow li{--dot:#0095e5;--next:#00a3db}
.td-eco-flow li:nth-child(2){--dot:#00a3db;--next:#00b0d1}
.td-eco-flow li:nth-child(3){--dot:#00b0d1;--next:#5b6fd8}
.td-eco-flow li:nth-child(4){--dot:#5b6fd8;--next:#cd0298}
.td-eco-flow li:nth-child(5){--dot:#cd0298}
.td-eco-flow span::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--dot);box-shadow:0 0 0 3px color-mix(in srgb,var(--dot) 18%,transparent)}
.td-eco-flow li:not(:last-child)::before{content:'';order:2;flex:1;height:1px;margin:0 10px 0 16px;background:linear-gradient(90deg,color-mix(in srgb,var(--dot) 70%,transparent),color-mix(in srgb,var(--next) 70%,transparent));opacity:.75;transform-origin:left}
.td-eco-flow li:not(:last-child)::after{content:'→';order:3;margin-right:16px;color:color-mix(in srgb,var(--next) 75%,transparent);font-size:.8rem;line-height:1}

/* Reveal (only after td-page.js opts in; never with reduced motion). */
.td-reveal-ready .td-eco [data-reveal]{opacity:0;transform:translateY(16px);transition:opacity .8s var(--td-ease),transform .8s var(--td-ease)}
.td-reveal-ready .td-eco .td-eco-photo{transform:none;clip-path:inset(6% 0 0 0 round 14px);transition:opacity 1s var(--td-ease) .1s,clip-path 1.1s var(--td-ease) .1s}
.td-reveal-ready .td-eco [data-reveal].is-revealed{opacity:1;transform:none;clip-path:inset(0 round 14px)}
.td-reveal-ready .td-eco-flow li::before{transform:scaleX(0);transition:transform .6s var(--td-ease) calc(var(--i) * .14s + .25s)}
.td-reveal-ready .td-eco-flow.is-revealed li::before{transform:scaleX(1)}

@media (max-width:1000px){
 .td-eco-head{grid-template-columns:minmax(0,1fr);align-items:start}
 .td-eco-photo{aspect-ratio:16/10}
 .td-eco-photo img{object-position:50% 80%}
}
@media (max-width:700px){
 .td-eco-head h2{font-size:clamp(1.85rem,7.4vw,2.4rem)}
 .td-eco-photo{aspect-ratio:4/3;border-radius:12px}
 .td-eco-photo img{object-position:50% 70%}
 .td-eco-flow{overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:4px;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
 .td-eco-flow::-webkit-scrollbar{display:none}
 .td-eco-flow li{flex:0 0 auto;scroll-snap-align:start}
 .td-eco-flow li:not(:last-child)::before{flex:0 0 22px;margin:0 8px 0 12px}
 .td-eco-flow li:not(:last-child)::after{margin-right:12px}
 .td-eco-flow li:last-child{padding-right:40px}
 .td-eco-flow span{font-size:.72rem;letter-spacing:.12em}
}
