/* Solo esta página: enfoque, lectura de superficie y ruta de trabajo (prefijo cy-) */

/* ── Enfoque: tres tarjetas de texto ── */
.cy-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cy-why{padding:32px;display:flex;flex-direction:column;gap:10px}
.cy-why .mono{font:500 10px/1 var(--f-mono);letter-spacing:.08em;color:var(--fg-3)}
.cy-why h3{margin:10px 0 0;font:500 21px/1.2 var(--f-display);letter-spacing:-.025em;color:var(--fg-hi)}
.cy-why p{margin:0;color:var(--fg-2);font-size:15px}

/* ── Figuras: superficie expuesta y ruta acordada ── */
.cy-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cy-card{display:flex;flex-direction:column}
.cy-stage{position:relative;z-index:1;flex:1;padding:36px 32px 30px;
  background-image:radial-gradient(circle,var(--dot) 1px,transparent 1.2px);background-size:22px 22px}
.cy-svg{width:100%;height:auto;overflow:visible}
.cy-svg text{font:500 13px var(--f-body);fill:var(--fg);letter-spacing:-.005em}
.cy-svg text.m{font:500 10px var(--f-mono);letter-spacing:.07em;fill:var(--fg-3);text-transform:uppercase}
.cy-svg text.m.hi{fill:var(--fg-2)}
.cy-svg text.gt{fill:var(--green-text)}
.cy-svg text.hd{font:500 16px var(--f-display);letter-spacing:-.02em;fill:var(--fg-hi)}
.cy-svg text.sm{font:400 12.5px var(--f-body);fill:var(--fg-2)}
.cy-svg .ln{stroke:var(--line-2);stroke-width:1}
.cy-svg .rail{stroke:var(--line-2);stroke-width:1}

/* Severidad sin color de alarma: la lee la longitud y el peso de la barra. */
.cy-svg .trk{fill:var(--line);}
.cy-svg .bar.hi{fill:var(--fg-hi)}
.cy-svg .bar.md{fill:var(--fg-3)}
.cy-svg .bar.ok{fill:var(--green)}

.cy-svg .node{fill:var(--bg-1);stroke:var(--line-3);stroke-width:1}
.cy-svg .node.on{stroke:var(--green-line);fill:var(--green-tint)}

/* ── Nota de alcance bajo los planes ── */
.cy-note{margin:32px 0 0;max-width:820px;color:var(--fg-3);font-size:13.5px;line-height:1.65}

/* ── Forma de trabajar: cuatro pasos ── */
.cy-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line-2)}
.cy-steps li{position:relative;padding:40px 28px 0 0;display:flex;flex-direction:column}
.cy-steps li::before{content:"";position:absolute;top:-5px;left:0;width:9px;height:9px;border-radius:50%;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line-3)}
.cy-steps li.cy-last::before{background:var(--green);box-shadow:0 0 0 4px var(--green-tint)}
.cy-steps .mono{font:500 10px/1 var(--f-mono);letter-spacing:.08em;color:var(--fg-3)}
.cy-steps h3{font:500 clamp(19px,1.7vw,23px)/1.15 var(--f-display);letter-spacing:-.03em;color:var(--fg-hi);margin:16px 0 12px}
.cy-steps p{margin:0 0 24px;color:var(--fg-2);font-size:15px;max-width:250px}
.cy-out{margin-top:auto;display:flex;align-items:center;gap:8px;padding:14px 16px;border-radius:var(--r-in);
  background:var(--bg-1);box-shadow:inset 0 0 0 1px var(--line-2);
  font:500 10px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--fg-2)}
.cy-out svg{flex:none;width:14px;height:14px;fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cy-steps .cy-last .cy-out{box-shadow:inset 0 0 0 1px var(--green-line);background:var(--green-tint);color:var(--fg-hi)}

/* ── Nota del sector industrial ── */
.cy-ind{margin-top:72px;padding:40px;display:flex;flex-direction:column;gap:12px}
.cy-ind .mono{display:flex;align-items:center;gap:10px;font:500 10px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--fg-3)}
.cy-ind .mono i{width:6px;height:6px;border-radius:50%;background:var(--green);display:inline-block;flex:none}
.cy-ind h3{margin:6px 0 0;font:500 clamp(22px,2vw,28px)/1.15 var(--f-display);letter-spacing:-.03em;color:var(--fg-hi)}
.cy-ind p{margin:0;color:var(--fg-2);font-size:15.5px;max-width:860px}

@media (max-width:960px){
  .cy-trio{grid-template-columns:1fr}
  .cy-duo{grid-template-columns:1fr}
  .cy-steps{grid-template-columns:1fr 1fr;row-gap:48px}
}
@media (max-width:640px){
  /* El SVG se escala completo, así que en una pantalla de 375 px su texto de
     13 px acabaría en unos 7. Se agranda dentro del lienzo para compensar; las
     columnas tienen holgura de sobra para el texto más largo de ambos idiomas. */
  .cy-svg text{font-size:17px}
  .cy-svg text.m{font-size:13px}
  .cy-svg text.hd{font-size:21px}
  .cy-svg text.sm{font-size:16px}

  .cy-stage{padding:24px 20px 22px}
  .cy-why{padding:26px 22px}
  .cy-ind{padding:28px 22px;margin-top:56px}
  .cy-steps{grid-template-columns:1fr;border-top:0;border-left:1px solid var(--line-2);row-gap:40px;margin-left:4px}
  .cy-steps li{padding:0 0 0 28px}
  .cy-steps li::before{top:2px;left:-5px}
  .cy-steps h3{margin-top:12px}
}
