/* Generado por herramientas/generar.py a partir de herramientas/secciones: no editar aquí */
/* ===== Piezas comunes de las páginas de servicios y sectores =====
   Cada página tiene su color (--p, brillante, pensado para fondo oscuro; --p2, fondo oscuro de su tono). */

/* Cabecera: lienzo de la ilustración propia (va dentro de .phero, siempre en oscuro) */
.sv { min-height: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; isolation: isolate; }
.sv::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%); }
.sv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 .7rem/1 var(--mono);
  letter-spacing: .04em; color: var(--p); background: color-mix(in srgb, var(--p) 14%, transparent); border: 1px solid color-mix(in srgb, var(--p) 35%, transparent); }

/* Sección estrella */
.sf .sec-head .kicker { color: var(--p); }
.t-light.sf .sec-head .kicker { color: var(--accent); }
.sf-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sf-panel { position: relative; padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--p2) 55%, transparent); box-shadow: var(--shadow); }
.t-light .sf-panel { background: var(--surface); }
.sf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-opt { min-height: 40px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 500 .9rem/1.2 var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.sf-opt:hover { border-color: var(--p); }
.sf-opt[aria-pressed="true"], .sf-opt[aria-selected="true"] { border-color: var(--p); background: color-mix(in srgb, var(--p) 18%, transparent); }
.t-light .sf-opt[aria-pressed="true"], .t-light .sf-opt[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.sf-note { margin-top: 14px; color: var(--muted); font-size: .82rem; }
.sf-live { min-height: 1.5em; }
@media (max-width: 900px) { .sf-grid { grid-template-columns: minmax(0, 1fr); } .sv { min-height: 380px; } }
/* Ilustración ya reproducida: se queda quieta donde está */
.sv.quieto, .sv.quieto *, .sv.quieto *::before, .sv.quieto *::after { animation-play-state: paused !important; }

/* ===== estrategia: hoja de ruta viva (cabecera) y autodiagnóstico de madurez (sección estrella) ===== */
.sv-estrategia { --hoy: .42; --lw: 76px; --T0: 1.4s; --D: 8.4s; }
.sv-estrategia .es-win { position: relative; z-index: 1; width: min(100% - 14px, 500px); margin: 92px 0 0 auto; padding: 14px 16px 12px; border-radius: 18px;
  background: linear-gradient(170deg, rgba(11, 39, 36, .95), rgba(14, 15, 13, .96) 60%); border: 1px solid rgba(45, 212, 191, .2);
  box-shadow: 0 40px 80px -34px #000, 0 0 70px -24px rgba(45, 212, 191, .35), inset 0 1px rgba(255, 255, 255, .06); }
.sv-estrategia .es-top { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.sv-estrategia .es-dots { display: flex; gap: 5px; }
.sv-estrategia .es-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.sv-estrategia .es-top .sv-chip { margin-left: auto; }
.sv-estrategia .es-gantt { position: relative; }
.sv-estrategia .es-qs { display: grid; grid-template-columns: repeat(4, 1fr); margin-left: var(--lw); color: var(--muted); font: 600 .68rem/1 var(--mono); letter-spacing: .08em; }
.sv-estrategia .es-qs span { padding: 0 0 8px 6px; border-left: 1px solid var(--line-2); }
.sv-estrategia .es-lane { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); height: 56px; border-top: 1px solid var(--line); }
.sv-estrategia .es-ln { align-self: center; color: var(--text); font-size: .76rem; font-weight: 600; }
.sv-estrategia .es-trk { position: relative; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 25%), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8.333%); }
.sv-estrategia .es-b { position: absolute; left: calc(var(--a) * 100%); width: calc(var(--w) * 100%); bottom: 12px; height: 10px; }
.sv-estrategia .es-b::before, .sv-estrategia .es-b::after { content: ""; position: absolute; inset: 0; border-radius: 6px; transform-origin: left; }
.sv-estrategia .es-b::before { background: rgba(45, 212, 191, .1); border: 1px dashed rgba(45, 212, 191, .5); }
.sv-estrategia .es-b::after { background: linear-gradient(90deg, #14a395, var(--p)); box-shadow: 0 0 16px rgba(45, 212, 191, .5); transform: scaleX(clamp(0, (var(--hoy) - var(--a)) / var(--w), 1)); }
.sv-estrategia .es-b em, .sv-estrategia .es-m em { position: absolute; font: 500 .7rem/1 var(--font); font-style: normal; white-space: nowrap; }
.sv-estrategia .es-b em { left: 1px; bottom: 16px; color: #d5f2ee; }
.sv-estrategia .es-m { --tx: -50%; position: absolute; left: calc(var(--x) * 100%); bottom: 9px; width: 16px; height: 16px; margin-left: -8px; }
.sv-estrategia .es-m::before, .sv-estrategia .es-m::after { content: ""; position: absolute; inset: 2px; border-radius: 3px; transform: rotate(45deg); }
.sv-estrategia .es-m::before { background: #0b1a19; border: 1.5px solid rgba(45, 212, 191, .65); }
.sv-estrategia .es-m::after { background: #ccfbf1; box-shadow: 0 0 14px 3px rgba(45, 212, 191, .8); opacity: clamp(0, (var(--hoy) - var(--x)) * 1000, 1); }
.sv-estrategia .es-m em { left: 50%; bottom: 25px; z-index: 2; padding: 6px 9px; border-radius: 8px; background: var(--p); color: var(--p2); font-weight: 650; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .7); opacity: 0; transform: translateX(var(--tx)); }
.sv-estrategia .es-m.es-r { --tx: 0%; }
.sv-estrategia .es-m.es-r em { left: auto; right: -2px; }
.sv-estrategia .es-cur em { opacity: 1; }
.sv-estrategia .es-now { position: absolute; z-index: 1; left: var(--lw); right: 0; top: 17px; bottom: 0; pointer-events: none; transform: translateX(calc(var(--hoy) * 100%)); }
.sv-estrategia .es-now::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(#e7f8f6, rgba(231, 248, 246, .25)); box-shadow: 0 0 12px rgba(196, 238, 234, .7); }
.sv-estrategia .es-now b { position: absolute; top: -17px; left: 0; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--p) 22%, #fff); color: var(--p2); font: 700 .62rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transform: translateX(-50%); }
.sv-estrategia .es-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.sv-estrategia .es-leg span::before { content: ""; display: inline-block; width: 14px; height: 7px; margin-right: 6px; border-radius: 4px; border: 1px dashed rgba(45, 212, 191, .6); background: rgba(45, 212, 191, .12); }
.sv-estrategia .es-leg span:nth-child(2)::before { border: 0; background: var(--p); }
.sv-estrategia .es-leg span:nth-child(3)::before { width: 7px; border: 0; border-radius: 2px; background: #ccfbf1; transform: rotate(45deg); }
.sv-estrategia .es-pri { position: absolute; z-index: 0; left: 6%; top: 7%; width: 190px; padding: 11px 13px 12px; border-radius: 14px; font-size: .72rem;
  background: linear-gradient(160deg, #0d2624, #0b1416); border: 1px solid rgba(45, 212, 191, .3); box-shadow: 0 26px 50px -18px #000, 0 0 40px -18px rgba(45, 212, 191, .5); transform: rotate(-4deg); }
.sv-estrategia .es-pri > p { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 650; }
.sv-estrategia .es-pri > p span { color: var(--muted); font: 500 .62rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sv-estrategia .es-pri ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sv-estrategia .es-pri li { display: grid; grid-template-columns: 18px 58px 1fr; align-items: center; gap: 6px; color: #d5f2ee; }
.sv-estrategia .es-pri li b { display: grid; place-items: center; height: 18px; border-radius: 5px; background: rgba(45, 212, 191, .16); color: var(--p); font: 700 .62rem/1 var(--mono); }
.sv-estrategia .es-pri li i { height: 6px; border-radius: 4px; background: linear-gradient(90deg, #14a395, var(--p)); transform-origin: left; transform: scaleX(var(--v)); }
/* Animación: barras que crecen, «Hoy» que avanza, hitos que se encienden */
.sv-estrategia.run .es-b::before { animation: es-grow .8s var(--ease-out) calc(var(--k) * .12s) both; }
.sv-estrategia.run .es-b em { animation: es-in .6s var(--ease) calc(var(--k) * .12s + .3s) both; }
.sv-estrategia.run .es-b::after { animation: es-grow calc(var(--w) * var(--D)) linear calc(var(--T0) + var(--a) * var(--D)) both; }
.sv-estrategia.run .es-now { animation: es-go var(--D) linear var(--T0) both; }
.sv-estrategia.run .es-m::after { animation: es-lit .7s var(--ease-out) calc(var(--T0) + var(--x) * var(--D)) both; }
.sv-estrategia.run .es-m em { animation: es-call 3.4s var(--ease) calc(var(--T0) + var(--x) * var(--D)) both; }
.sv-estrategia.run .es-pri { animation: es-bob 7s ease-in-out infinite; }
.sv-estrategia.run .es-pri i { animation: es-v 1s var(--ease-out) .5s both; }
.sv-estrategia.end .es-b, .sv-estrategia.end .es-m, .sv-estrategia.end .es-now { opacity: 0; transition: opacity .6s; }
@keyframes es-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes es-v { from { transform: scaleX(0); } }
@keyframes es-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes es-go { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes es-lit { from { opacity: 0; transform: rotate(45deg) scale(.3); } 60% { opacity: 1; transform: rotate(45deg) scale(1.5); } to { opacity: 1; transform: rotate(45deg); } }
@keyframes es-call { from { opacity: 0; transform: translate(var(--tx), 8px) scale(.94); } 10%, 85% { opacity: 1; transform: translate(var(--tx), 0); } to { opacity: 0; transform: translate(var(--tx), -4px); } }
@keyframes es-bob { 50% { transform: rotate(-3deg) translateY(-8px); } }
@media (max-width: 560px) {
  .sv-estrategia { --lw: 60px; padding: 22px 12px; }
  .sv-estrategia .es-win { width: 100%; margin-top: 78px; padding: 12px 10px 10px; }
  .sv-estrategia .es-ln { font-size: .66rem; }
  .sv-estrategia .es-b em { font-size: .64rem; }
  .sv-estrategia .es-pri { width: 158px; left: 5%; top: 4%; font-size: .66rem; }
  .sv-estrategia .es-pri li { grid-template-columns: 16px 50px 1fr; }
}

/* Sección estrella: autodiagnóstico */
.sf-estrategia { overflow: hidden; }
.sf-estrategia::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 480px at 85% 30%, rgba(45, 212, 191, .09), transparent 70%); }
.sf-estrategia .es-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "f c" "r r"; gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 64px); align-items: start; }
.sf-estrategia .es-form { grid-area: f; }
.sf-estrategia .es-chart { grid-area: c; }
.sf-estrategia .es-res { grid-area: r; }
.sf-estrategia .es-scale { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: var(--muted); font-size: .8rem; }
.sf-estrategia .es-scale b { margin-right: 4px; color: var(--p); font-family: var(--mono); }
.sf-estrategia .es-dim { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.sf-estrategia .es-dim legend { float: left; padding: 0; }
.sf-estrategia .es-dim legend b { display: block; font-family: var(--display); font-size: 1.08rem; font-weight: 650; }
.sf-estrategia .es-dim legend span { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.sf-estrategia .es-seg { display: grid; grid-template-columns: repeat(5, 44px); gap: 4px; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.sf-estrategia .es-seg label { position: relative; }
.sf-estrategia .es-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sf-estrategia .es-seg span { display: grid; place-items: center; height: 40px; border-radius: 9px; color: var(--muted); font: 600 .92rem/1 var(--mono); transition: background .25s, color .25s, box-shadow .25s; }
.sf-estrategia .es-seg label:hover span { color: var(--text); background: rgba(255, 255, 255, .05); }
.sf-estrategia .es-seg label:has(~ label input:checked) span { color: var(--text); background: rgba(45, 212, 191, .14); }
.sf-estrategia .es-seg input:checked + span { color: var(--p2); background: var(--p); box-shadow: 0 8px 20px -8px var(--p); }
.sf-estrategia .es-seg input:focus-visible + span { outline: 2px solid var(--p); outline-offset: 2px; }
.sf-estrategia .es-tag { position: absolute; left: 22px; top: 20px; padding: 6px 10px; border-radius: 999px; color: var(--p); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .3); font: 600 .74rem/1 var(--mono); letter-spacing: .04em; }
.sf-estrategia .es-radar { position: relative; aspect-ratio: 5 / 4; margin-top: 8px; }
.sf-estrategia .es-radar svg { position: absolute; left: 50%; top: 50%; height: 80%; width: auto; overflow: visible; transform: translate(-50%, -50%); }
.sf-estrategia .es-rings polygon, .sf-estrategia .es-rings path { fill: none; stroke: rgba(255, 255, 255, .1); }
.sf-estrategia .es-rings polygon:first-child { fill: rgba(255, 255, 255, .02); stroke: rgba(255, 255, 255, .18); }
.sf-estrategia .es-area { fill: url(#es-grad); stroke: var(--p); stroke-width: 2; stroke-linejoin: round; }
.sf-estrategia .es-glow { fill: none; stroke: var(--p); stroke-width: 9; stroke-opacity: .14; stroke-linejoin: round; }
.sf-estrategia .es-dots circle { fill: #0b1a19; stroke: var(--p); stroke-width: 2.5; }
.sf-estrategia .es-lab { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: 9px; font-size: .84rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, -50%); background: rgba(14, 15, 13, .7); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.sf-estrategia .es-lab b { min-width: 22px; padding: 2px 0; border-radius: 6px; text-align: center; color: var(--p); background: rgba(45, 212, 191, .12); font: 700 .8rem/1.2 var(--mono); }
.sf-estrategia .es-lab.es-low { border-color: color-mix(in srgb, var(--p) 55%, transparent); background: var(--p2); }
.sf-estrategia .es-lab.es-low::before, .sf-estrategia .es-lab.es-low::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p); }
.sf-estrategia .es-lab.es-low::after { position: absolute; left: 9px; top: 50%; margin-top: -3.5px; opacity: 0; }
.sf-estrategia.vis .es-lab.es-low::after { animation: es-ping 1.8s ease-out 3; }
.sf-estrategia .es-level { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.sf-estrategia .es-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.sf-estrategia .es-score span { flex-basis: 100%; color: var(--muted); font: 600 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sf-estrategia .es-score strong { color: var(--p); font: 700 3rem/1 var(--display); letter-spacing: -.04em; }
.sf-estrategia .es-score small { color: var(--muted); font-size: 1rem; }
.sf-estrategia .es-score b { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: rgba(45, 212, 191, .14); border: 1px solid rgba(45, 212, 191, .4); font-family: var(--display); font-size: 1.05rem; }
.sf-estrategia .es-meter { position: relative; height: 8px; margin: 14px 0 12px; border-radius: 5px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), var(--p2, var(--p2)) calc(25% - 2px) 25%), rgba(255, 255, 255, .08); overflow: hidden; }
.sf-estrategia .es-meter i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #14a395, var(--p)); transform-origin: left; transform: scaleX(var(--m)); transition: transform .6s var(--ease-out); }
.sf-estrategia .es-desc { color: var(--muted); font-size: .94rem; }
.sf-estrategia .es-res h3 { margin-bottom: 16px; font-family: var(--display); font-size: 1.4rem; letter-spacing: -.02em; }
.sf-estrategia .es-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: es; }
.sf-estrategia .es-recs li { position: relative; padding: 20px 22px 20px 64px; border-radius: 18px; border: 1px solid rgba(45, 212, 191, .22); background: linear-gradient(150deg, rgba(45, 212, 191, .08), rgba(255, 255, 255, .02)); color: var(--muted); counter-increment: es; }
.sf-estrategia .es-recs li::before { content: counter(es); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--p); color: var(--p2); font: 700 .9rem/1 var(--mono); }
.sf-estrategia .es-recs li[hidden] { display: none; }
.sf-estrategia .es-recs li:last-child { grid-column: 1 / -1; }
.sf-estrategia .es-recs li:last-child::before { content: "✓"; }
.sf-estrategia .es-recs li.es-new { animation: es-in .5s var(--ease-out) both; }
.sf-estrategia .es-rh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.sf-estrategia .es-rh b { color: var(--text); font-family: var(--display); font-size: 1.12rem; }
.sf-estrategia .es-rh span { color: var(--p); font: 600 .8rem/1 var(--mono); }
@keyframes es-ping { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(2.2); opacity: 0; } }
@media (max-width: 900px) {
  .sf-estrategia .es-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "c" "f" "r"; }
  .sf-estrategia .es-recs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sf-estrategia .es-dim { grid-template-columns: minmax(0, 1fr); }
  .sf-estrategia .es-seg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sf-estrategia .es-scale { flex-direction: column; gap: 2px; }
  .sf-estrategia .es-tag { position: static; display: inline-block; }
  .sf-estrategia .es-radar { aspect-ratio: 1 / 1; }
  .sf-estrategia .es-radar svg { height: 64%; }
  .sf-estrategia .es-lab { font-size: .76rem; }
  .sf-estrategia .es-recs li { padding: 18px 18px 18px 58px; }
  .sf-estrategia .es-recs li::before { left: 16px; top: 18px; }
}
.es-cta { margin-top: 16px; }
@media (max-width: 720px) { .sf-estrategia .es-tag, .sf-estrategia .es-score span { font-size: .75rem; } }
