/* Portada: plano editorial, paleta azul y verde. */
.consultor-home { color:var(--ink-0); }
.c-wrap, .plan-wrap { width:min(100% - 3rem,1180px); margin-inline:auto; }
.plan-hero { background:#f8faf9; }
.plan-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.94fr); align-items:center; gap:clamp(3rem,6vw,6rem); padding-block:clamp(4rem,6vw,6rem); }
.plan-copy h1 { color:var(--ink-0); font-family:var(--font-heading); font-size:clamp(3rem,4.5vw,4.5rem); font-weight:700; line-height:1.08; letter-spacing:-.03em; max-width:12ch; margin:0; text-wrap:balance; }
.plan-copy h1 em { display:block; color:#076b68; font-style:normal; }
.plan-copy > p:not(.plan-note) { color:#344f5c; font-size:1.125rem; line-height:1.65; max-width:46ch; margin:1.5rem 0 0; }
.plan-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.75rem; margin-top:2rem; }
.plan-button, .c-button { display:inline-flex; align-items:center; justify-content:center; gap:1rem; min-height:52px; padding:.85rem 1.3rem; background:#102b3b; color:#fff; border-radius:8px; font-weight:700; text-decoration:none; transition:background .2s; }
.plan-button:hover, .c-button:hover { background:#075e5c; color:#fff; }
.plan-secondary, .c-text-link { display:inline-flex; align-items:center; gap:.6rem; color:#075e5c; font-weight:700; text-decoration:underline; text-underline-offset:.25em; }
.plan-secondary:hover, .c-text-link:hover { color:#102b3b; }
.plan-note { color:#526d76; font-size:.875rem; margin:1rem 0 0; }
.plan-art { margin:0; background:#eef4f0; overflow:hidden; border-radius:12px; }
.plan-art img { display:block; width:100%; aspect-ratio:1.2; height:auto; object-fit:cover; object-position:center 25%; }
.plan-art figcaption { padding:1rem 1.3rem; color:#435e69; font-size:.875rem; font-weight:600; }
.plan-highlights { background:#e8f3ef; border-top:1px solid #d5e5e0; }
.plan-highlights-grid { display:grid; grid-template-columns:repeat(3,1fr); padding-block:2rem; }
.plan-highlights-grid > div { display:flex; gap:1rem; padding:0 2rem; border-right:1px solid #c7ded7; }
.plan-highlights-grid > div:first-child { padding-left:0; }
.plan-highlights-grid > div:last-child { border:0; }
.plan-highlights-grid svg { flex:0 0 30px; width:30px; height:30px; fill:none; stroke:#076b68; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.plan-highlights-grid strong, .plan-highlights-grid span { display:block; }
.plan-highlights-grid strong { font-size:1rem; color:#102b3b; }
.plan-highlights-grid span { margin-top:.35rem; color:#435e69; font-size:.9375rem; line-height:1.5; }
.c-section { padding:clamp(4.5rem,8vw,7.5rem) 0; }
.c-section-grid, .c-work-grid { display:grid; grid-template-columns:.9fr 1fr; gap:clamp(3rem,9vw,8rem); }
.consultor-home h2 { margin:0; max-width:18ch; font-size:clamp(2.25rem,4vw,3.6rem); line-height:1.1; letter-spacing:-.03em; font-weight:700; }
.c-intro { color:#435e69; font-size:1.125rem; line-height:1.65; margin:1.25rem 0 1.5rem; max-width:54ch; }
.c-service-list article { padding:0 0 1.6rem; margin-bottom:1.6rem; border-bottom:1px solid #d4e1de; }
.c-service-list article:last-child { margin-bottom:0; }
.consultor-home h3 { margin:0 0 .5rem; font-size:1.25rem; color:#102b3b; }
.c-service-list p, .c-steps p, .c-project-list p { color:#435e69; line-height:1.6; margin:0; }
.c-process { background:#e9f2ef; }
.c-section-heading { max-width:760px; }
.c-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:2.5rem; list-style:none; padding:0; margin:3rem 0 0; }
.c-steps li { border-top:2px solid #087b78; padding-top:1.25rem; }
.c-steps li:before, .c-steps li:after { content:none !important; }
.c-steps span { display:block; color:#076b68; font-weight:700; margin-bottom:1.25rem; }
.c-project-list { border-top:1px solid #cddbd8; }
.c-project-list a { display:flex; justify-content:space-between; gap:1rem; padding:1.6rem 0; border-bottom:1px solid #cddbd8; text-decoration:none; }
.c-project-list a:hover h3 { color:#076b68; }
.c-project-list a div > span { display:block; color:#076b68; font-size:.875rem; font-weight:700; margin-bottom:.55rem; }
.c-arrow { color:#076b68; font-size:1.5rem; }
.c-contact { background:#102b3b; color:#fff; padding:clamp(4.5rem,8vw,7rem) 0; }
.c-contact-inner { display:grid; grid-template-columns:1fr auto; gap:3rem; align-items:end; }
.c-contact h2 { color:#fff; }
.c-contact p { color:#c7dcd9; max-width:52ch; line-height:1.65; margin:1.25rem 0 0; }
.c-button-light { background:#fff; color:#102b3b; }
.c-button-light:hover { background:#cde9e2; color:#102b3b; }
.c-contact .c-email { font-size:.875rem; }
@media(max-width:800px) {
 .plan-hero-grid, .c-section-grid, .c-work-grid, .c-contact-inner { grid-template-columns:1fr; }
 .plan-hero-grid { gap:2.5rem; padding-block:3.5rem; }
 .plan-copy h1 { font-size:clamp(2.75rem,8vw,4rem); }
 .plan-art img { aspect-ratio:1.4; }
 .c-steps { gap:1.5rem; }
}
@media(max-width:600px) {
 .c-wrap, .plan-wrap { width:calc(100% - 2.5rem); }
 .plan-copy h1 { font-size:clamp(2.6rem,9vw,3.3rem); }
 .plan-highlights-grid, .c-steps { grid-template-columns:1fr; gap:1.5rem; }
 .plan-highlights-grid > div, .plan-highlights-grid > div:first-child { padding:0; border:0; }
 .c-steps li { padding-top:1rem; }
 .c-steps span { margin-bottom:.5rem; }
 .c-contact-inner { gap:1rem; }
}
@media(prefers-reduced-motion:reduce) { .plan-button, .c-button { transition:none; } }
/* Escena narrativa conservada con texto siempre legible. */
.consultor-home .o-fase { opacity:1; }
.consultor-home .o-fase.is-active .n { color:#075e5c; }
.consultor-home .o-scene { box-shadow:0 12px 30px rgba(16,43,59,.09); border-color:#cddbd8; border-radius:12px; }
.consultor-home .o-scene .wall { fill:#e6f0ed; }
.consultor-home .o-scene .win { fill:#cce5e0; }
.consultor-home .o-scene .data { stroke:#087b78; }
.consultor-home .o-scene.on-6 .g6 .win { fill:#cce5e0; }
.consultor-home .o-callout { border:1px solid #cddbd8; background:#e9f2ef; }
.consultor-home .o-callout strong { background:none; color:#075e5c; }
.consultor-home .o-hero-art .layer, .plan-art img { will-change:auto; }
.consultor-home .o-section { padding-top:clamp(4.5rem,8vw,7.5rem); }
@media(max-width:860px) { .consultor-home .o-scene svg { max-height:24vh; } .consultor-home .o-fase { min-height:48vh; } }
/* Planos reales como geometría de fondo; transición vinculada al scroll. */
.plan-hero { position:relative; isolation:isolate; }
.hero-blueprints { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.hero-blueprints::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(248,250,249,.94),rgba(248,250,249,.65) 42%,rgba(248,250,249,.12)); }
.hero-blueprint { position:absolute; inset:-30px; background-position:center; background-size:cover; background-repeat:no-repeat; }
.hero-blueprint-architecture { background-image:url('../assets/blueprint-arquitectura.svg'); opacity:calc(.55 * (1 - var(--blueprint-progress,0))); transform:translateY(calc(var(--blueprint-progress,0) * -18px)); }
.hero-blueprint-software { background-image:url('../assets/blueprint-software.svg'); opacity:calc(.6 * var(--blueprint-progress,0)); transform:translateY(calc((1 - var(--blueprint-progress,0)) * 18px)); }
.plan-highlights { position:relative; }
@media(max-width:600px) { .hero-blueprint { background-size:auto 100%; background-position:60% center; } .hero-blueprints::after { background:rgba(248,250,249,.76); } }
@media(prefers-reduced-motion:reduce) { .hero-blueprint { transform:none; } .hero-blueprint-architecture { opacity:.3; } .hero-blueprint-software { opacity:0; } }
/* Secuencia de imágenes: mismo lienzo y encuadre en todas las fases. */
.consultor-home .o-scene { background:#f1f4f5; padding:.75rem; }
.construction-frames { position:relative; aspect-ratio:1; width:100%; overflow:hidden; border-radius:6px; }
.construction-frame { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity 320ms ease; }
.construction-frame:last-child { opacity:1; }
.js .construction-frame:last-child { opacity:0; }
.js .o-scene[data-stage="1"] [data-frame="1"],
.js .o-scene[data-stage="2"] [data-frame="2"],
.js .o-scene[data-stage="3"] [data-frame="3"],
.js .o-scene[data-stage="4"] [data-frame="4"],
.js .o-scene[data-stage="5"] [data-frame="5"],
.js .o-scene[data-stage="6"] [data-frame="6"] { opacity:1; }
@media(min-width:861px) { .construction-frames { max-height:65vh; } }
@media(max-width:860px) {
 .construction-frames { aspect-ratio:auto; height:28vh; height:28svh; }
 .consultor-home .o-scene { padding:.5rem; }
}
@media(prefers-reduced-motion:reduce) { .construction-frame { transition:none; } }
.software-story { margin-top:5rem; background:#e9f2ef; }
.software-story-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:4rem; align-items:start; margin-top:3rem; }
.software-assembly { margin:0; position:sticky; top:6rem; background:#f8faf9; border:1px solid #cddbd8; padding:1.5rem; border-radius:12px; }
.assembly-screen { overflow:hidden; border:1px solid #a9c4be; border-radius:8px; background:white; }
.assembly-chrome { display:flex; justify-content:space-between; gap:1rem; padding:.65rem .8rem; background:#102b3b; color:white; font-size:.75rem; }
.assembly-tabs { display:flex; gap:1rem; padding:.7rem 1rem; background:#e9f2ef; color:#075e5c; font-size:.875rem; font-weight:600; }
.assembly-view { padding:1rem; min-height:120px; }
.assembly-view strong { display:block; font-size:1.125rem; margin-bottom:.75rem; }
.assembly-row { display:flex; justify-content:space-between; gap:.5rem; border-top:1px solid #e4edea; padding:.5rem 0; font-size:.8125rem; color:#435e69; }
.js .assembly-view { display:none; }
.js .assembly-view.is-current { display:block; animation:assembly-enter 350ms ease-out; }
.assembly-trunk { width:1px; height:28px; background:#087b78; margin:auto; position:relative; }
.assembly-trunk::after { content:""; position:absolute; width:7px; height:7px; background:#087b78; left:-3px; top:0; animation:assembly-flow 1.7s ease-in-out infinite; }
.assembly-modules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; }
.assembly-module { padding:.85rem .6rem; border:1px solid #a9c4be; border-radius:6px; background:#e9f2ef; text-align:center; }
.assembly-module span { display:block; font-size:.6875rem; color:#435e69; margin-bottom:.3rem; }
.assembly-module strong { display:block; color:#075e5c; font-size:1rem; }
.assembly-module small { display:block; margin-top:.35rem; font-size:.75rem; line-height:1.4; color:#435e69; }
.assembly-data { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.5rem; padding:.75rem; border:1px solid #a9c4be; border-radius:6px; font-size:.875rem; }
.assembly-data > span:last-child { color:#435e69; font-size:.75rem; }
.assembly-quality { margin-top:1rem; text-align:center; color:#075e5c; font-size:.8125rem; }
.software-assembly figcaption { color:#435e69; border-top:1px solid #cddbd8; padding-top:1rem; margin-top:1rem; font-size:.875rem; }
.js [data-appears] { opacity:0; transform:translateY(12px); transition:opacity 350ms ease,transform 350ms ease; }
.js [data-appears].is-assembled { opacity:1; transform:none; }
.software-increments { list-style:none; padding:0; margin:0; }
.software-increments li { min-height:65vh; display:flex; flex-direction:column; justify-content:center; border-top:1px solid #c3d8d1; padding:2rem 0; }
.software-increments li::before, .software-increments li::after { content:none !important; }
.software-increments p { color:#435e69; line-height:1.65; margin:.5rem 0; }
.software-increments .software-outcome { color:#075e5c; font-weight:600; }
@keyframes assembly-enter { from { opacity:.5; transform:translateY(8px); } }
@keyframes assembly-flow { from { transform:translateY(0); opacity:0; } 30% { opacity:1; } to { transform:translateY(24px); opacity:0; } }
@media(max-width:860px) {
 .software-story-grid { grid-template-columns:1fr; gap:1.5rem; }
 .software-assembly { top:4.5rem; z-index:6; padding:.75rem; }
 .assembly-chrome { padding:.4rem .6rem; }
 .assembly-tabs { padding:.4rem .6rem; }
 .assembly-view { min-height:100px; padding:.6rem; }
 .assembly-row { padding:.3rem 0; }
 .assembly-trunk { height:16px; }
 .assembly-module { padding:.5rem .25rem; }
 .assembly-module > span, .assembly-module small { display:none; }
 .assembly-module strong { font-size:.875rem; }
 .assembly-quality { margin-top:.6rem; }
 .software-assembly figcaption { margin-top:.6rem; padding-top:.6rem; }
 .software-increments li { min-height:80svh; justify-content:end; padding-bottom:3rem; scroll-margin-top:420px; }
}
@media(prefers-reduced-motion:reduce) { .assembly-trunk::after, .js .assembly-view { animation:none; } .js [data-appears] { transition:none; transform:none; } }
.assembly-modules { position:relative; }
.assembly-modules::before { content:""; position:absolute; top:-14px; left:16.66%; right:16.66%; height:1px; background:#087b78; }
.assembly-module { position:relative; }
.assembly-module::before { content:""; position:absolute; top:-14px; left:50%; height:14px; width:1px; background:#087b78; }
@media(max-width:860px) { .assembly-modules::before { top:-8px; } .assembly-module::before { top:-8px; height:8px; } }
@media(max-width:860px) { .software-increments li { min-height:65svh; justify-content:center; padding-block:2rem; } }
/* Componentes representados como pequeñas pantallas y objetos de interfaz. */
.assembly-view { min-height:175px; }
.visual-customers > div { display:flex; align-items:center; gap:.65rem; padding:.45rem 0; }
.visual-avatar { width:40px; height:40px; flex-shrink:0; }
.visual-customers span { color:#102b3b; font-size:.875rem; }
.visual-customers small { display:block; color:#526d76; font-size:.75rem; margin-top:.15rem; }
.visual-customers i { margin-left:auto; color:#075e5c; background:#e9f2ef; font-size:.7rem; border-radius:4px; padding:.25rem .4rem; font-style:normal; }
.visual-order { display:flex; align-items:center; gap:.85rem; padding:.65rem 0; }
.visual-product { width:78px; height:70px; flex-shrink:0; }
.visual-order b, .visual-order span, .visual-order small { display:block; }
.visual-order b { font-size:.9rem; }
.visual-order span, .visual-order small { color:#526d76; font-size:.75rem; margin-top:.35rem; }
.visual-check { width:30px; height:30px; flex-shrink:0; }
.visual-order > .visual-check { margin-left:auto; }
.visual-payment { display:flex; align-items:center; gap:1.25rem; padding:.25rem 0; }
.visual-card { width:150px; height:92px; }
.visual-payment b, .visual-payment span { display:block; font-size:.875rem; margin-top:.3rem; }
.visual-payment span { color:#526d76; font-size:.75rem; }
.assembly-module { background:white; padding:.7rem .6rem; }
.module-visual { height:70px; display:flex; align-items:center; justify-content:center; margin-bottom:.6rem; }
.mini-contact, .mini-order { display:flex; align-items:center; gap:.4rem; width:100%; }
.mini-contact .visual-avatar { width:40px; height:40px; }
.mini-order .visual-product { width:45px; height:42px; }
.module-visual b, .module-visual span { display:block; height:4px; margin:5px 0; border-radius:2px; background:#b7cec7; min-width:30px; }
.module-visual b { background:#507b8c; width:40px; }
.mini-payment { position:relative; }
.mini-payment .visual-card { width:92px; height:57px; }
.mini-payment > svg:last-child { position:absolute; bottom:-5px; right:-8px; width:25px; height:25px; }
.assembly-trunk, .assembly-modules::before, .assembly-module::before { opacity:.4; }
@media(max-width:860px) {
 .assembly-view { min-height:145px; }
 .module-visual { height:42px; margin-bottom:.3rem; }
 .mini-contact .visual-avatar { width:30px; height:30px; }
 .module-visual b, .module-visual span { min-width:15px; height:3px; margin:4px 0; }
 .module-visual b { width:20px; }
 .mini-order .visual-product { width:30px; height:30px; }
 .mini-payment .visual-card { width:60px; height:38px; }
 .mini-payment > svg:last-child { width:20px; height:20px; }
 .visual-payment .visual-card { width:115px; height:72px; }
 .visual-product { width:52px; height:52px; }
 .visual-order { gap:.5rem; }
 .visual-order b { font-size:.8125rem; }
 .assembly-data { display:none; }
}
/* Connexions ancrées aux ports réels des composants. */
.software-assembly { isolation:isolate; }
.assembly-connections { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index:-1; }
.assembly-connections path { fill:none; stroke:#087b78; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1; opacity:0; transition:stroke-dashoffset 500ms ease,opacity 200ms ease; }
.assembly-connections path.is-connected { stroke-dashoffset:0; opacity:1; }
.js .assembly-trunk { background:transparent; }
.js .assembly-trunk::after, .js .assembly-modules::before, .js .assembly-module::before { display:none; }
.js .software-assembly [data-appears] { transform:none; }
.assembly-data { background:#f8faf9; }
.assembly-chrome { align-items:center; min-height:50px; }
.assembly-brand { display:flex; align-items:center; gap:.4rem; font-weight:600; font-size:.875rem; }
.assembly-brand img { display:block; width:48px; height:40px; object-fit:contain; }
@media(max-width:860px) {
 .assembly-chrome { min-height:44px; }
 .assembly-brand { font-size:.75rem; gap:.2rem; }
 .assembly-brand img { width:38px; height:32px; }
 .assembly-chrome > span:last-child { font-size:.6875rem; }
 .assembly-data { display:flex; padding:.4rem; }
 .assembly-data > span:last-child { display:none; }
 .assembly-view { min-height:130px; }
}
@media(prefers-reduced-motion:reduce) { .assembly-connections path { transition:none; } }

.c-project-list a.project-with-capture { display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:1.25rem; align-items:center; }
.project-with-capture > img { display:block; width:100%; height:auto; border:1px solid #bcd2c8; border-radius:6px; }
@media(max-width:600px) { .c-project-list a.project-with-capture { grid-template-columns:80px minmax(0,1fr) auto; gap:.75rem; } }

/* Recorrido más breve, con las seis fases y sus conexiones intactas. */
.story-shortcut { margin:0 0 2rem; min-height:44px; }
.consultor-home .o-fase { min-height:48vh; }
.software-increments li { min-height:50vh; }
@media(max-width:860px) {
 .consultor-home .o-fase { min-height:36svh; }
 .software-increments li { min-height:52svh; }
 .consultor-home .o-section, .consultor-home .c-section { padding-block:3.5rem; }
 .software-story { margin-top:2rem; }
}
