

/* ---- Shape stage: one big picture, centred ---- */
.shape-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}
/* Corner dots sit on the outline, so they need to read against both the
   fill and the stroke: white centre, dark ring. */
.corner-dot {
  fill: var(--color-superficie);
  stroke: var(--color-texto);
  stroke-width: 3;
}
/* Everyday objects that stand in for the solids. */
.solid-object {
  font-size: 3rem;
  line-height: 1.1;
}
.solid-big {
  font-size: 5rem;
}

/* A net drawn open, piece by piece, so the faces can be counted. */
.net-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}
.net-svg { overflow: visible; }
.net-piece {
  stroke: var(--color-texto);
  stroke-width: 2.5;
}
/* Each kind of face has its own fill AND its own shape, so they are never
   told apart by colour alone (WCAG 1.4.1). */
.net-square { fill: var(--mod-razonamiento, var(--color-superficie)); }
.net-rect { fill: var(--mod-secuencia, var(--color-superficie)); }
.net-tri { fill: var(--color-superficie); }
.solid-name {
  display: block;
  font-weight: 700;
}
.solid-gloss {
  display: block;
  font-size: 0.85em;
}

.gallery-card,
.real-card {
  align-items: center;
  border-color: var(--mod-razonamiento-suave);
}

.gallery-visual {
  width: 100%;
}

.gallery-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shape-compare-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--mod-razonamiento-suave);
  border-radius: 1rem;
  text-align: center;
}

.shape-compare-flat { background: var(--color-superficie); }
.shape-compare-solid { background: var(--mod-razonamiento-suave); }
.shape-compare-visual .shape-stage { min-height: 130px; }
.shape-compare-visual svg { width: 120px; height: 120px; }
.shape-compare-item h2,
.shape-compare-item p { margin: 0.25rem 0; }
.shape-compare-item h2 { font-size: 1.2rem; }
.shape-compare-item .intro-part {
  width: 100%;
  padding-top: 0.25rem;
  border-top: 1px solid var(--mod-razonamiento-suave);
  text-align: left;
}
.shape-compare-item .intro-part-side { border-top-color: var(--mod-memoria); }
.shape-compare-item .intro-part-corner { border-top-color: var(--mod-razonamiento); }
.gallery-part-intro { align-items: stretch; }
.shape-part-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid var(--mod-razonamiento-suave);
  border-radius: 1rem;
  background: var(--color-superficie);
  text-align: center;
}
.shape-part-visual svg { width: 112px; height: 112px; }
.shape-part-item h2 { margin: 0.25rem 0; font-size: 1.2rem; }
.shape-part-item p { margin: 0.25rem 0; }
.intro-side-mark {
  stroke: var(--mod-memoria);
  stroke-width: 8;
  stroke-linecap: round;
}
.intro-corner-mark {
  fill: var(--color-superficie);
  stroke: var(--mod-razonamiento);
  stroke-width: 4;
}
/* El perímetro es el camino entero, no un trozo: el contorno a trazos,
   por dentro del triángulo. Va en el color de superficie y no en un
   acento porque se apoya sobre el relleno del triángulo, que es
   --mod-razonamiento: un verde --mod-secuencia encima de ese teal se
   perdía, y la superficie contrasta con los dos temas. */
.intro-perimeter-mark {
  fill: none;
  stroke: var(--color-superficie);
  stroke-width: 4.5;
  stroke-dasharray: 9 7;
  stroke-linejoin: round;
}
/* El rayado del área: solo puede pintar dentro de la forma porque va
   recortado con un clipPath sobre su propio contorno. Sin el recorte las
   rayas saldrían por fuera y pasarían a ser otro borde más. */
.area-hatch line {
  stroke: var(--color-superficie);
  stroke-width: 3;
}
/* El hueco del volumen: la caja entera en trazos, con el cuerpo dentro. */
.intro-space-mark {
  fill: none;
  stroke: var(--color-texto);
  stroke-width: 4;
  stroke-dasharray: 9 7;
}
/* El eje de simetría se pinta con el color de superficie y no con un
   acento, por lo que seMeasura en app.js: se apoya sobre el relleno de la
   figura, que es teal oscuro en claro y teal claro en oscuro, y no hay
   ningún acento que contraste con los dos. --color-memoria sobre ese
   relleno daba 1,45:1 en claro, 1,02:1 en oscuro y 1,91:1 en alto
   contraste: una raya invisible. Por eso el eje no sale de la figura. */
.intro-axis-mark,
.axis-mark {
  stroke: var(--color-superficie);
  stroke-width: 4;
  stroke-dasharray: 8 6;
}

/* ---- Folding in half ----
   The fold line is dashed, so it reads as "fold here" and not as an edge. It
   runs past the figure on both ends, so it is visible on the card too. */
.fold-halo {
  stroke: var(--color-superficie);
  stroke-width: 6;
}
.fold-line {
  stroke: var(--color-texto);
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
}
.fold-answer { display: block; }

/* Lado y vértice van en paralelo arriba y el perímetro ocupa la fila
   entera debajo, porque no es un cuarto concepto suelto al lado: es lo que
   los dos anteriores sirven para medir. Sin esto la tercera tarjeta cae
   en la segunda columna y deja un hueco al lado. */
.shape-part-wide { grid-column: 1 / -1; }

@media (min-width: 601px) {
  .shape-part-wide {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: center;
    text-align: left;
  }
  .shape-part-wide .shape-part-visual {
    grid-row: 1 / span 2;
    grid-column: 1;
  }
  .shape-part-wide h2,
  .shape-part-wide p { grid-column: 2; }
  .shape-part-wide .shape-part-visual svg { width: 96px; height: 96px; }
}

/* Las opciones con dibujo: la misma figura que en la pregunta, a menor
   tamaño. El botón necesita holgura para que la figura no toque el borde
   del control táctil. */
.thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.thumb svg {
  width: 76px;
  height: 76px;
}
/* El cuerpo grande de la pregunta de volumen: se dibuja más grande a
   propósito, para que la respuesta y el dibujo no puedan discrepar. */
.thumb-big svg {
  width: 132px;
  height: 132px;
}

/* Las opciones con dibujo van en fila. Tres mini-figuras apiladas en
   columna son una torre que empuja el botón de siguiente fuera de la
   pantalla. La clase la pone app.js con `inline`, y aquí no había ninguna
   regla: el resto de actividades sí la tiene. */

.options.options-row .option-btn { display: flex;
  align-items: center;
  justify-content: center;
  text-align: center }

/* The name of a figure in the gallery, and the caption of a real-life example:
   the flow's classes, with the sizes of this activity. */
.concept-title,
.real-text {
  min-height: 3em;
  max-width: 560px;
  margin: 0;
  text-align: center;
}
.real-text { line-height: inherit }
.gallery-card .concept-title {
  color: var(--mod-razonamiento);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: capitalize;
}
/* The slides fill the card: the grid of the concept slides needs the full width. */
#introVisual { align-items: stretch; }
/* The button that starts the test sits in the middle, as in the other activities of the flow. */
#realContinue { align-self: center; }

.real-object {
  min-height: 1.2em;
  font-size: 5rem;
  line-height: 1.2;
}

.real-object svg { width: 160px; height: 140px; }

.solid-top { fill: var(--mod-razonamiento-suave); }
.solid-left { fill: var(--mod-secuencia-suave, var(--mod-razonamiento-suave)); }
.solid-right { fill: var(--mod-razonamiento); }
.solid-base { fill: var(--mod-secuencia-suave, var(--mod-razonamiento-suave)); }
.solid-sphere { fill: var(--mod-razonamiento); }
.solid-highlight { fill: var(--color-superficie); stroke: none; }
.solid-side { fill: var(--mod-razonamiento); }
.solid-bottom { fill: var(--mod-razonamiento-suave); }
.solid-cylinder-base { fill: var(--mod-razonamiento-suave); fill-opacity: 0.8; stroke: none; }
.solid-cylinder-back {
  fill: none;
  stroke: var(--mod-razonamiento-suave);
  stroke-dasharray: 3 3;
  stroke-width: 2;
}
.solid-cylinder-front { fill: none; stroke: var(--color-texto); stroke-width: 3; }

@media (max-width: 600px) {
  .gallery-intro { grid-template-columns: 1fr; }
  .gallery-part-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shape-part-item { padding: 0.5rem; }
  .shape-part-visual svg { width: 76px; height: 76px; }
  .shape-compare-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 0.75rem;
    text-align: left;
  }
  .shape-compare-item .intro-part { grid-column: 1 / -1; }
  .shape-compare-visual {
    grid-row: span 2;
    display: flex;
    align-items: center;
  }
  .shape-compare-visual .shape-stage { min-height: 76px; }
  .shape-compare-visual svg { width: 76px; height: 76px; }
}
/* The soft line under the figure. Same rule as money/numbers/measures. */
.hint { color: var(--color-texto-suave); font-size: var(--texto-base); }
/* Centred instead of left-hugging the screen edge. A lone button
   lands centred; back/next stay side by side. Same as scale. */

