/* Tarifas (T013): las cuatro tarifas en tarjetas iguales, que se comparan de un vistazo, y la invitación a probar
   una clase en tarjeta de cristal (D015). En el móvil las tarjetas van compactas: nombre a un lado, precio al otro.
   Lo común está en web.css. */

.ta-tarifas { padding-top: clamp(40px, 6vw, 72px); }
.ta-tarifas .cabecera-seccion { margin-bottom: 18px; }
.ta-tarifas .cabecera-seccion + .ta-rejilla, .ta-tarifas .texto { margin-bottom: 0; }
.ta-tarifas .cabecera-seccion .texto { max-width: 60ch; margin-top: 8px; }

/* ---------- Las cuatro tarjetas ---------- */
.ta-rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.ta-tarifa {
  display: flex; flex-direction: column; align-items: center; padding: 30px 22px 24px; border-radius: 24px; text-align: center;
  background: var(--blanco); border: 1px solid var(--linea-tarjeta); box-shadow: 0 10px 30px rgba(84, 89, 95, 0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.ta-tarifa:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(84, 89, 95, 0.09); }
.ta-rejilla .aparece:nth-child(2) { transition-delay: 0.06s; }
.ta-rejilla .aparece:nth-child(3) { transition-delay: 0.12s; }
.ta-rejilla .aparece:nth-child(4) { transition-delay: 0.18s; }
.ta-cabeza { display: flex; flex-direction: column; align-items: center; }
/* Cuántas clases a la semana, de un vistazo: uno, dos o tres puntos; en la VIP, todas */
.ta-puntos { display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; margin-bottom: 14px; padding: 0 12px; border-radius: 13px; background: var(--naranja-suave); }
.ta-puntos i { width: 10px; height: 10px; border-radius: 50%; background: var(--naranja); }
.ta-puntos i.vacio { background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--naranja-borde); }
.ta-puntos--vip { font-size: 22px; font-weight: 700; line-height: 1; color: var(--naranja-oscuro); }
.ta-nombre { margin: 0 0 4px; font-size: 18.5px; font-weight: 800; letter-spacing: -0.2px; }
.ta-lema { font-size: 14.5px; font-weight: 500; color: var(--texto-tenue); }
.ta-precio { display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin: 18px 0 14px; color: var(--naranja); }
.ta-precio b { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -2.5px; }
.ta-precio span { display: flex; flex-direction: column; align-items: flex-start; padding-top: 5px; font-size: 24px; font-weight: 800; line-height: 1; }
.ta-precio small { margin-top: 5px; font-size: 13.5px; font-weight: 700; color: var(--gris); }
/* El pronto pago y la opción pareja: mismo sitio y mismo alto en las cuatro, para que las frases queden alineadas */
.ta-notas { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; min-height: 76px; margin-bottom: 20px; }
.ta-nota { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 17px; background: rgba(84, 89, 95, 0.045); font-size: 13.5px; font-weight: 600; color: var(--gris); }
.ta-nota strong { font-weight: 800; color: var(--naranja-oscuro); }
.ta-nota:not(.ta-nota--pronto) { display: inline-block; }
.ta-nota--pronto { background: var(--naranja-suave); box-shadow: inset 0 0 0 1px var(--naranja-borde); }
.ta-nota svg { width: 15px; height: 15px; color: var(--naranja-oscuro); }
.ta-frases { list-style: none; display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--linea); text-align: left; }
.ta-frases li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--texto-suave); }
.ta-frases svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--naranja); }
.ta-boton { width: 100%; margin-top: auto; }
.ta-letra { max-width: 760px; margin: 28px auto 0; font-size: 13.5px; line-height: 1.6; text-align: center; color: var(--texto-tenue); }

/* ---------- Probar una clase ---------- */
#probar { scroll-margin-top: 60px; }
.ta-probar { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.ta-probar-texto { display: flex; flex-direction: column; align-items: flex-start; }
.ta-probar-texto .lista-check { margin-bottom: 0; }
.ta-reserva { padding: 30px 28px; border-radius: 22px; background: var(--blanco); box-shadow: 0 16px 40px rgba(84, 89, 95, 0.08); }
.ta-reserva h3 { margin-bottom: 18px; font-size: 19px; font-weight: 800; }
/* El formulario de la clase de prueba (T024) */
.ta-reserva.formulario { gap: 16px; }
.ta-reserva h3 { margin-bottom: 2px; }
.ta-reserva .fila-campos { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ta-reserva .boton { width: 100%; }
.ta-reserva .casilla a, .ta-o a { color: var(--naranja-oscuro); font-weight: 600; }
.ta-ver-horario { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--naranja-oscuro); text-decoration: none; }
.ta-ver-horario svg { width: 14px; height: 14px; }
.ta-o { margin: -4px 0 0; text-align: center; font-size: 14px; color: var(--texto-tenue); }

/* ---------- Tableta ---------- */
@media (max-width: 1040px) {
  .ta-rejilla { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ta-probar { grid-template-columns: 1fr; }
  .ta-probar-texto { align-items: center; text-align: center; }
  .ta-probar-texto .lista-check { text-align: left; }
}
/* ---------- Móvil: tarjetas compactas (nombre a un lado, precio al otro) ---------- */
@media (max-width: 640px) {
  .ta-rejilla { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .ta-tarifa { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 22px 20px 20px; border-radius: 20px; text-align: left; }
  .ta-tarifa:hover { transform: none; }
  .ta-cabeza { align-items: flex-start; }
  .ta-puntos { margin-bottom: 10px; }
  .ta-precio { margin: 0; }
  .ta-precio b { font-size: 50px; }
  .ta-notas, .ta-frases, .ta-boton { grid-column: 1 / -1; }
  .ta-notas { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; min-height: 0; margin: 16px 0; }
  .ta-frases { padding-top: 16px; margin-bottom: 18px; }
  .ta-reserva { padding: 24px 20px; }
}
