/* Experimento conductual: gráfico de pendiente sobre una línea de tres estaciones.
   Ejes y escala reales; tinta para el modelo, azul para lo de la persona. La línea no cambia de color según baje o suba. */
.ex { display: grid; gap: 44px; }
.ex-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.ex-cab h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; text-wrap: balance; }
.ex-cab h2 em { color: var(--azul); }
.ex-cab-nota { margin: 0; font-size: 13.5px; color: var(--nota); }
.ex-chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-size: 15px; cursor: pointer; }
.ex-chip:hover { border-color: var(--tinta); }
.ex-icono { width: 42px; padding: 0; font-size: 18px; }
.ex-texto { margin: 18px 0 0; min-height: 2.8em; font-family: var(--display); font-style: italic; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.35; color: var(--azul); max-width: 52ch; }
.ex-mio { padding-top: 34px; border-top: 1px solid var(--linea); }
.ex-ej .ex-fig { max-width: 900px; }

/* ---------- el gráfico ---------- */
.ex-fig { position: relative; }
.ex-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ex-guia { stroke: var(--linea); stroke-width: 1; stroke-dasharray: 3 5; }
.ex-axis { stroke: var(--tinta); stroke-width: 1.5; }
.ex-conector { stroke: var(--tinta); stroke-width: 1; stroke-dasharray: 2 4; }
.ex-eje { font-family: var(--mono); font-size: 11px; fill: var(--nota); font-variant-numeric: tabular-nums; }
.ex-tit { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; fill: var(--tinta); }
.ex-sub { font-family: var(--display); font-style: italic; font-size: 16px; fill: var(--nota); }
.ex-estline { stroke: var(--tinta); stroke-width: 1.5; }
.ex-est { fill: #fff; stroke: var(--tinta); stroke-width: 1.6; }
.ex-estlab { font-family: var(--display); font-style: italic; font-size: 19px; fill: var(--tinta); }
.ex-esttxt { font-family: var(--display); font-size: 16.5px; fill: var(--tinta); }
.ex-svg.mia .ex-esttxt { fill: var(--azul); }
.ex-esttxt.vacio, .ex-svg.mia .ex-esttxt.vacio { fill: #75828B; font-style: italic; }
.ex-svg.estrecho .ex-esttxt { font-size: 15px; }
.ex-svg.estrecho .ex-estlab { font-size: 17px; }
.ex-linea { stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; }
.ex-punto { fill: var(--tinta); stroke: #fff; stroke-width: 3; }
.ex-val { font-family: var(--display); font-size: 24px; fill: var(--tinta); font-variant-numeric: tabular-nums; }
.ex-svg.mia .ex-linea { stroke: var(--azul); }
.ex-svg.mia .ex-punto { fill: var(--azul); }
.ex-svg.mia .ex-val { fill: var(--azul); }
.ex-fantasma { fill: #fff; stroke: var(--azul); stroke-width: 1.8; stroke-dasharray: 4 4; }
.ex-pista { font-family: var(--display); font-style: italic; font-size: 16px; fill: var(--azul); }
.ex-dyn { pointer-events: none; }
.ex-hit { fill: transparent; cursor: ns-resize; touch-action: none; }
@media (hover: hover) { .ex-hit:hover { fill: var(--azul-claro); stroke: var(--azul); stroke-width: 1.4; stroke-dasharray: 5 4; } }
.ex-svg * { pointer-events: none; }
.ex-svg .ex-hit { pointer-events: auto; }
.ex-hit:focus { outline: none; }
.ex-hit:focus-visible { stroke: var(--azul); stroke-width: 1.6; stroke-dasharray: 5 4; fill: var(--azul-claro); }
.ex-neutro { margin: 12px 0 0; min-height: 1.4em; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--azul); max-width: 46ch; }
/* A4 */
.ex-svg.a4 .ex-eje, .ex-svg.a4 .ex-tit { font-size: 9px; }
.ex-svg.a4 .ex-estlab { font-size: 13px; }
.ex-svg.a4 .ex-val { font-size: 16px; }
.ex-svg.a4 .ex-guia { stroke: #D9DEE1; }

/* ---------- editor ---------- */
.ex-mesa { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
.ex-figcol { position: sticky; top: 84px; }
body.session .ex-figcol { top: 16px; }
.ex-pasos { display: grid; gap: 26px; }
.ex-tiempo { display: grid; gap: 18px; padding-top: 12px; border-top: 1px solid var(--tinta); }
.ex-tlab { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--tinta); }
.ex-paso { display: grid; gap: 4px; }
.ex-paso label, .ex-plab { display: block; position: relative; min-height: 28px; padding: 3px 0 0 38px; font-family: var(--display); font-size: 19px; line-height: 1.2; }
.ex-paso label .ex-num, .ex-plab .ex-num { position: absolute; left: 0; top: 0; }
.ex-paso label small { margin-left: 8px; white-space: nowrap; }
.ex-paso small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--nota); }
.ex-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tinta); color: var(--papel); font-family: var(--mono); font-size: 13px; flex: none; }
.ex-ayuda { margin: 0 0 0 38px; font-size: 14px; color: var(--nota); }
.ex-paso textarea { width: calc(100% - 38px); margin-left: 38px; border: 0; border-bottom: 1.5px dotted var(--azul); background: transparent; font-family: var(--display); font-size: 19px; line-height: 1.3; color: var(--azul); padding: 6px 0; resize: none; overflow: hidden; outline: none; }
.ex-paso textarea:focus { border-bottom-style: solid; }
.ex-paso textarea::placeholder { color: #75828B; font-style: italic; }
.ex-aviso { margin: 4px 0 0 38px; padding: 10px 12px; background: var(--azul-claro); border-radius: 10px; font-size: 14px; color: var(--cuerpo); }
.ex-valor { margin: 2px 0 0 38px; font-family: var(--mono); font-size: 14px; color: var(--nota); }
.ex-valor b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--azul); }
.ex-irfig { display: none; justify-self: start; margin-left: 38px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-size: 14px; cursor: pointer; }
.ex-cautela { margin: 26px 0 0; padding: 10px 14px; background: #FBF0DD; border-radius: 10px; font-size: 14.5px; color: #6B4A12; max-width: 72ch; }
.ex-hecho { display: block; margin-top: 22px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--tinta); color: var(--papel); font-size: 16px; cursor: pointer; }
.ex-hecho:hover { background: #2C3B46; }

/* ---------- final ---------- */
.ex-final { display: grid; gap: 22px; }
.ex-final .ex-fig { max-width: 900px; }
.ex-final-h { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.ex-final-h em { color: var(--azul); }
.ex-resumen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; max-width: 1000px; }
.ex-r { padding-top: 10px; border-top: 1px solid var(--tinta); display: grid; gap: 10px; align-content: start; }
.ex-r p { margin: 0; font-family: var(--display); font-size: 18px; line-height: 1.3; color: var(--azul); overflow-wrap: anywhere; }
.ex-r p.vacio { color: #75828B; }
.ex-r small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--nota); margin-bottom: 2px; }
.ex-casa { display: grid; gap: 2px; padding: 14px 18px; background: var(--azul-claro); border-radius: 12px; max-width: 760px; font-size: 14.5px; color: var(--cuerpo); }
.ex-casa b { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--tinta); }

@media (max-width: 900px) {
  .ex-mesa { grid-template-columns: minmax(0, 1fr); }
  .ex-figcol { position: static; }
  .ex-irfig { display: inline-flex; align-items: center; }
  .ex-resumen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ex-ayuda, .ex-valor, .ex-aviso, .ex-irfig { margin-left: 0; }
  .ex-paso textarea { width: 100%; margin-left: 0; }
}
