/* Lo que está bajo la primera pantalla y se añadió con MM-1816: la tarjeta del test de nivel y el bloque de precios. Va en
   su propia hoja, enlazada en el cuerpo justo antes de la tarjeta, para que no cuente en la carga inicial del móvil (las
   variables y los botones son los de `estilo.css`). */
/* Test de nivel (MM-1816): la tarjeta tras la frase de la portada. Los dibujos se piden al acercarse (portada.js). */
.level {
  padding-block: 8px 72px;
}
.level-card {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 32px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.level-card h2 {
  margin-top: 12px;
}
.level-text {
  margin-top: 14px;
  max-width: 560px;
  font-size: 17px;
}
.level-pick {
  margin-top: 22px;
  color: var(--ink);
  font-weight: 700;
}
.level-instruments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.level-instrument {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f1d20;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}
.level-instrument:hover,
.level-instrument:focus-visible {
  border-color: var(--green);
  background: #17302b;
}
.level-instrument img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.level-example {
  position: relative;
  padding: 44px 20px 22px;
  border: 1px dashed #4c6a62;
  border-radius: 14px;
  background: #0f1d20;
  text-align: center;
}
.level-example-tag {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.level-example img {
  margin-inline: auto;
}
.level-league {
  margin-top: 8px;
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.level-headline {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 700;
}
.level-example p:last-child {
  margin-top: 8px;
  font-size: 14px;
}
@media (max-width: 860px) {
  .level-card {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
}
@media (max-width: 560px) {
  .level-instruments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .level-instrument {
    min-width: 0;
    min-height: 52px;
    gap: 6px;
    padding-right: 8px;
    font-size: 13px;
    line-height: 1.2;
  }
  .level-instrument img {
    flex: none;
    width: 36px;
    height: 36px;
  }
  .level-instrument span {
    min-width: 0;
  }
}
@media (max-width: 380px) {
  .level-card {
    padding-inline: 10px;
  }
  .level-instrument {
    gap: 4px;
    padding-right: 4px;
  }
  .level-instrument img {
    width: 32px;
    height: 32px;
  }
}
/* Precios (MM-1816): el selector de alumnos y las dos tarjetas, que por debajo de 480 px se apilan. */
.pricing {
  padding-block: 70px 56px;
  text-align: center;
}
.pricing-sub {
  margin-top: 14px;
  color: #d2e5d2;
  font-size: 18px;
}
.pricing-picker {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.pricing-label {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}
.pricing-tier {
  margin-top: 4px;
  color: var(--green);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-range {
  display: block;
  width: 100%;
  height: 44px;
  margin: 8px 0 0;
  background: none;
  accent-color: var(--green);
  cursor: pointer;
}
.pricing-range:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 8px;
}
.pricing-steps {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.pricing-steps span {
  flex: 1;
  text-align: center;
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f1d20;
}
.plan-pro {
  border-color: var(--green);
  background: linear-gradient(140deg, #1c3a30, #132326);
}
.plan h3 {
  font-size: 22px;
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 12px;
}
.plan-price strong {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.plan-unit {
  color: var(--muted);
  font-size: 14px;
}
.plan-offer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #4c6a62;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.plan-offer a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pricing-signup {
  margin-top: 24px;
}
.pricing-conditions {
  max-width: 780px;
  margin: 24px auto 0;
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .pricing {
    padding-block: 48px 36px;
  }
  .pricing-picker {
    padding: 20px 14px;
  }
  .pricing-steps {
    display: none;
  }
  .pricing-signup {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}
