/* Rediseño de la presentación de la clase 1 (diseño en Figma: archivo «FQ3 · Clase 1
   Reservorios y flujos», página «Presentación clase 1»). Solo lo carga este deck:
   el estilo.css común del sistema queda igual para las otras presentaciones.
   Misma identidad que la página de la clase: verde del bloque, tarjetas, píldoras. */

:root {
  --azul: #1f6f5c;          /* acento del bloque (se mantiene el nombre del framework) */
  --azul-claro: #e6f2ee;
  --gris: #14181f;
  --gris-suave: #5a6474;
  --linea: #e3e7ee;
  --fq-bg: #f7f8fa;
  --fq-f: #2b5f9e;          /* intermedio / flujo */
  --fq-p: #6b3fa0;          /* pistas */
  --fq-m: #8a4f10;          /* lento */
  --fq-e: #8a3060;          /* error frecuente */
  --fq-sombra: 0 10px 28px rgba(16, 24, 40, .08);
}

.reveal-viewport { background: var(--fq-bg); }
.reveal-viewport::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 6px; background: var(--azul); z-index: 5;
}
.reveal { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--gris); }
.reveal button, .reveal input { font-family: inherit !important; }

.reveal h1, .reveal h2 { color: var(--gris); letter-spacing: -0.02em; }
.reveal h2 { font-size: 1.2em; margin-bottom: 1.1rem; }
.reveal strong { color: var(--azul); }

/* Rótulo como píldora; «error frecuente» con su propio color. */
.rotulo {
  border: 0; border-radius: 999px; padding: 0.3rem 0.95rem; margin-bottom: 1.1rem;
  background: var(--azul-claro); color: var(--azul); font-weight: 700; font-size: 0.42em; letter-spacing: 1.5px;
}
.rotulo.error { background: color-mix(in srgb, var(--fq-e) 12%, #fff); color: var(--fq-e); }

.nota { color: var(--gris-suave); }
.nota.pista {
  background: color-mix(in srgb, var(--fq-p) 8%, #fff); color: var(--gris);
  border-radius: 14px; padding: 0.7rem 1.1rem; font-weight: 500;
}
.nota.pista b { color: var(--fq-p); }

.destacado {
  background: var(--azul); color: #fff; border: 0; border-radius: 18px;
  padding: 1rem 1.5rem; font-weight: 600; box-shadow: var(--fq-sombra);
}
.destacado b { color: #fff; }

/* --- Portada con ilustración --- */
.portada.portada-g { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 1.5rem; }
.portada h1 { font-size: 2.1em; line-height: 1.05; margin: 0.2rem 0 0.9rem; }
.portada .subt { font-size: 0.85em; color: var(--gris-suave); line-height: 1.35; margin: 0; }
.portada .bajada { color: var(--azul); font-weight: 700; font-size: 0.55em; margin-top: 1.4rem; }
.ilustracion { width: 100%; height: auto; overflow: visible; }
.ilustracion circle, .ilustracion rect { stroke-width: 3; }
.ilustracion text { font-family: "Segoe UI", system-ui, Arial, sans-serif; }
/* Contorno blanco detrás del texto: se lee igual sobre el relleno y el borde de los círculos. */
.ilustracion text { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.ilustracion .nom { font-size: 21px; font-weight: 700; fill: var(--gris); }
.ilustracion .sub { font-size: 17px; font-weight: 600; fill: #2b313b; }
.il-rap { fill: color-mix(in srgb, var(--azul) 18%, #fff); stroke: var(--azul); }
.il-med { fill: color-mix(in srgb, var(--fq-f) 16%, #fff); stroke: var(--fq-f); }
.il-len { fill: color-mix(in srgb, var(--fq-m) 16%, #fff); stroke: var(--fq-m); }
.il-sin { fill: #fff; stroke: var(--gris-suave); stroke-dasharray: 6 5; }

/* --- Tarjetas --- */
.tarjeta {
  background: #fff; border: 1px solid var(--linea); border-radius: 18px;
  box-shadow: var(--fq-sombra); text-align: left;
}
.concepto {
  background: #fff; border: 2px solid var(--t); border-radius: 20px; padding: 1.3rem 1.5rem;
  box-shadow: var(--fq-sombra); font-size: 0.62em; line-height: 1.4;
}
.concepto .cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.concepto .titulo { color: var(--t); font-weight: 700; font-size: 1.6em; }
.concepto .unidad {
  color: var(--t); font-weight: 700; font-size: 1.05em; border-radius: 999px; padding: 0.15rem 0.8rem;
  background: color-mix(in srgb, var(--t) 12%, #fff);
}
.concepto p { margin: 0.25rem 0; }
.concepto .que { font-weight: 600; font-size: 1.1em; }
.concepto .mide { color: var(--gris-suave); }
.concepto .ej {
  margin-top: 0.8rem; border-radius: 12px; padding: 0.5rem 0.9rem; font-weight: 500;
  background: color-mix(in srgb, var(--t) 8%, #fff);
}

/* --- Opciones con letra --- */
.actividad .opciones { grid-template-columns: 1fr 1fr; gap: 0.8rem; counter-reset: op; }
.actividad .opciones button {
  display: flex; align-items: center; gap: 0.8em; text-align: left;
  color: var(--gris); font-weight: 600; background: #fff;
  border: 2px solid var(--linea); border-radius: 16px; padding: 0.85rem 1rem; box-shadow: var(--fq-sombra);
}
.actividad .opciones button::before {
  counter-increment: op; content: counter(op, upper-alpha); flex: none;
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 10px;
  background: var(--azul-claro); color: var(--azul); font-weight: 700;
}
.actividad .opciones button:hover:not(:disabled) { border-color: var(--azul); background: #fff; }
.actividad .opciones button.acierto::before { background: var(--verde); color: #fff; }
.actividad .opciones button.fallo::before { background: var(--rojo); color: #fff; }
.devolucion { border-radius: 14px; }
.consigna { color: var(--gris); }

/* --- Revelar, clasificar y botones --- */
.revelable { border-radius: 16px; background: #fff; box-shadow: var(--fq-sombra); border-style: solid; }
.revelable .rotulo-r { color: var(--gris); }
.revelable.abierta { background: var(--azul-claro); }
.ficha { border-radius: 14px; box-shadow: var(--fq-sombra); }
.comprobar { border-radius: 12px; }
#barra-modo button { border-radius: 999px; }

/* --- Barras de reservorios con color por velocidad --- */
.reservorios {
  background: #fff; border: 1px solid var(--linea); border-radius: 20px;
  padding: 1rem 1.4rem; box-shadow: var(--fq-sombra); gap: 0.6rem;
}
.res-fila .etiq { font-weight: 600; color: var(--gris); }
.res-fila .caja { height: 1.25rem; border: 0; border-radius: 999px; background: var(--azul); }
.res-fila.medio .caja { background: var(--fq-f); }
.res-fila.lento .caja { background: var(--fq-m); }
.res-fila.sin .caja { background: var(--gris-suave); }
/* El <style> del deck pinta las cifras con --azul: acá van en tinta y un poco más grandes. */
.reveal .res-fila .num { color: var(--gris); font-size: 0.48em; }
.reveal .res-fila .etiq { font-size: 0.5em; }
.ley-vel { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.ley-vel span {
  font-size: 0.42em; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.8rem;
  color: color-mix(in srgb, var(--c) 70%, #000); background: color-mix(in srgb, var(--c) 12%, #fff);
}
.reveal .aviso { font-size: 0.42em; color: var(--gris); border-color: var(--gris-suave); }

/* --- Tabla de flujos --- */
.tabla-mini { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--fq-sombra); }
.tabla-mini th { text-transform: uppercase; font-size: 0.8em; letter-spacing: 1px; }
.tabla-mini td.n { color: var(--gris); }

/* --- Cierre: pasos numerados --- */
.grilla.g3 { counter-reset: paso; }
.nivel {
  background: #fff; border: 1px solid var(--linea); border-top: 0; border-radius: 18px;
  padding: 1rem 1.2rem; box-shadow: var(--fq-sombra); font-size: 0.58em;
}
.nivel .titulo::before {
  counter-increment: paso; content: counter(paso); display: grid; place-items: center;
  width: 1.9em; height: 1.9em; border-radius: 10px; background: var(--azul); color: #fff; margin-bottom: 0.5rem;
}

/* --- Tiempo de residencia --- */
.cuenta { color: var(--gris); }
.fraccion span:first-child { border-bottom-color: var(--azul); }
