/* ============================================
   ESTILOS GLOBALES — Matemática a Pedal
============================================ */

body {
  font-family: 'Roboto Mono', monospace;
  color: #7f6000;
  line-height: 1.6;
  background: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  color: #783f04;
  margin-top: 0;
}

a {
  color: #783f04;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section, main, .contenido, .page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

/* Más ancho en pantallas grandes */
@media (min-width: 1600px) {
  section, main, .contenido, .page-content {
    max-width: 1320px;
  }
}

/* Estilo general de listas y párrafos */
p, li {
  font-size: 17px;
  line-height: 1.6;
}

/* Resalta bloques y tarjetas */
div, article {
  box-sizing: border-box;
}
/* Ajuste de ancho para todas las páginas de contenido */
section {
  max-width: 1180px !important;
  margin: 0 auto;
  padding: 20px;
}

/* --- Barra de progreso con bici --- */
.unit-progress {
  border: 1px solid #FFD580;
  border-radius: 12px;
  padding: 14px;
  background: #FFF6E6; /* mismo fondo que las tarjetas */
  color: #7f6000;
  margin: 18px 0;
  width: 100%;
  box-sizing: border-box;
}

.unit-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: #783f04;
}

.unit-progress__bar {
  position: relative;
  height: 14px;
  border: 1px solid #FFD580;
  border-radius: 999px;
  background: #FFF3DA;
  overflow: visible; /* deja ver la bici 🚲 */
}

.unit-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #FFA559, #FFD580);
  width: 0%;
  transition: width 0.35s ease;
}

.unit-progress__bike {
  position: absolute;
  top: 50%;
  left: 0;
  height: 26px;
  width: 26px;
  transform: translate(-50%, -50%);
  transition: left 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.unit-progress__bike span {
  font-size: 22px;
  line-height: 1;
  color: #783f04;
}
.unit-progress__bike span {
  font-size: 22px;
  line-height: 1;
  color: #783f04;
  display: inline-block;
  transform: scaleX(-1); /* 🚲 gira horizontalmente */
}

