body {
  background: url('/static/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Inter', sans-serif;
  color: #181a20;
  margin: 0;
  padding: 0;
}
/*body:before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.60);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: lighten;
}/*/
.main-panel {
  max-width: 500px;
  margin: 54px auto 80px auto;
  padding: 0 6px;
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 10px 48px rgba(120,108,220,0.13), 0 2px 18px rgba(120,108,220,0.07);
  border: 1.3px solid #eaeaf0;
  position: relative;
  z-index: 1;
}
.hero-perfil {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 24px rgba(120,108,220,0.09), 0 1.5px 7px rgba(120,108,220,0.04);
  border: 1.2px solid #f2f2f2;
  padding: 34px 24px 22px 24px;
  margin-bottom: 32px;
  text-align: center;
}
.foto-perfil {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px auto;
  background: #f4f4fa;
  border: 2.3px solid #eaeaf0;
  display: block;
}
.nombre-alumno {
  font-size: 2.1em;
  font-weight: 900;
  color: #181a20;
  margin-bottom: 2px;
  letter-spacing: 0;
}
.frase-alumno {
  color: #7d7d8b;
  font-size: 1.01em;
  margin-bottom: 7px;
  font-style: italic;
}
.editar-perfil-link {
  display: block;
  color: #7f3cff;
  font-size: 0.97em;
  margin: 34px auto 8px auto;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  width: max-content;
  opacity: 0.6;
}
.tarjeta {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 28px rgba(120,108,220,0.07), 0 1.5px 8px rgba(120,108,220,0.03);
  border: 1.2px solid #eaeaf0;
  margin-bottom: 26px;
  padding: 25px 20px 19px 20px;
  position: relative;
  transition: box-shadow 0.13s, border 0.13s;
}
.plan-main-label {
  display: block;
  text-align: center;
  font-size: 2.1em;
  font-weight: 900;
  color: #7f3cff;
  margin-bottom: 2px;
  margin-top: -5px;
  letter-spacing: .02em;
}
.fullpass-badge {
  display: inline-block;
  background: linear-gradient(95deg, #f9f7ef 60%, #ffe399 100%);
  color: #b89a18;
  border-radius: 15px;
  font-size: 1.18em;
  font-weight: 800;
  padding: 13px 32px 11px 32px;
  border: 2.1px solid #ffd700;
  letter-spacing: .01em;
  margin-bottom: 5px;
  box-shadow: 0 2.5px 8px rgba(255,215,0,0.09);
  margin-top: 0;
}
.plan-status {
  color: #2bb473;
  font-weight: 700;
  font-size: 1.05em;
  margin: 6px 0 12px 0;
  text-align: center;
}
.plan-status.pendiente {
  color: #fc717a;
}
.progreso-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 8px 0;
  font-size: 1em;
  justify-content: center;
}
.barra-label {
  color: #7f3cff;
  font-weight: 600;
  font-size: 1em;
  margin-right: 4px;
  min-width: 120px;
  text-align: right;
}
.progress-bar-wrap {
  width: 44%;
  background: #f3f3fa;
  height: 13px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1.1px 5px rgba(127,60,255,0.05);
  margin-left: 0;
}
.progress-bar-fill {
  height: 100%; border-radius:8px; transition: width .7s;
  background: linear-gradient(90deg, #b8aaff 10%, #7f3cff 90%);
}
.progress-bar-fill.oro {
  background: linear-gradient(90deg, #ffd700 0%, #ffe399 100%);
}
.progreso-icon {
  font-size: 1.17em;
  margin-left: 4px;
}
.medallas-barra {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  overflow-x: auto;
  margin: 0 auto 13px auto;
  max-width: 100vw;
  scroll-snap-type: x mandatory;
}
.medalla-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 43px;
  scroll-snap-align: center;
  margin: 0 1px;
}
.medalla-emoji-mini {
  font-size: 1.32em;
  margin-bottom: 3px;
  line-height: 1;
}
.medalla-titulo-mini {
  font-size: 0.84em;
  color: #7f3cff;
  margin: 0;
  margin-top: 2px;
  text-align: center;
  font-weight: 700;
  opacity: 0.89;
  white-space: nowrap;
}
.tarjeta-title, .tarjeta-title-pay {
  font-size: 1.07em;
  font-weight: 700;
  text-align: left;
  margin-bottom: 9px;
  color: #7f3cff;
  letter-spacing: .01em;
}
.horario-carrusel {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  scroll-snap-type: x mandatory;
  margin-bottom: 2px;
}
.horario-dia {
  min-width: 95px;
  flex: 0 0 95px;
  background: #f3f3fa;
  border-radius: 12px;
  padding: 9px 4px 7px 4px;
  text-align: center;
  scroll-snap-align: start;
  border: 1.1px solid #eaeaf0;
  font-size: 0.88em;
  color: #7f3cff;
}
.horario-dia.actual {
  border: 1.5px solid #7f3cff;
  background: #ede8ff;
  color: #32286d;
  font-weight: 700;
}
.clase-now {
  color: #22b573;
  font-weight: 700;
}
.horario-dia-title {
  font-size: 1em;
  color: #7f3cff;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.beneficios-lista {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.beneficios-lista li {
  margin-bottom: 9px;
  font-size: 1.03em;
  color: #7f3cff;
}
.evento-card {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.evento-img {
  width: 122px;
  height: 122px;
  border-radius: 19px;
  object-fit: cover;
  background: #f3f3fa;
  box-shadow: 0 2px 10px rgba(127,60,255,0.07);
  border: 1px solid #eaeaf0;
}
.evento-info {
  flex: 1;
  min-width: 130px;
}
.evento-estado {
  background: #f4f4fa;
  color: #7f3cff;
  padding: 7px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1em;
  display: inline-block;
  border: 1px solid #b8aaff;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.evento-estado.vip {
  background: #ffd700;
  color: #866505;
  border: 1.2px solid #ffe5a0;
}
.btn-qr, .logout-btn {
  background: #7f3cff;
  color: white;
  border-radius: 9px;
  border: none;
  padding: 12px 20px;
  font-size: 1.07rem;
  font-weight: 700;
  cursor: pointer;
  display: block;
  margin: 14px auto 0 auto;
  box-shadow: 0 2px 7px rgba(127,60,255,0.07);
  transition: background 0.15s;
  letter-spacing: .01em;
}
.btn-qr:hover, .logout-btn:hover {
  background: #6640d3;
}
.logout-btn {
  margin-top: 48px;
  margin-bottom: 38px;
}
.pagos-table {
  width: 100%;
  color: #23262f;
  border-collapse: collapse;
  font-size: 1em;
  margin-bottom: 2px;
}
.pagos-table td {
  padding: 5px 0;
  border-bottom: 1px solid #eaeaf0;
}
.pagos-table tr:last-child td { border-bottom: none; }

/* Formularios (Login, Registro, Admin) */
.form-panel {
  max-width: 460px;
  margin: 54px auto 70px auto;
  padding: 30px 18px 22px 18px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 10px 48px rgba(120,108,220,0.13), 0 2px 18px rgba(120,108,220,0.07);
  border: 1.3px solid #eaeaf0;
  position: relative;
  z-index: 1;
  text-align: center;
}
.form-panel h1 {
  font-size: 2.5em;
  font-weight: 900;
  margin-bottom: 26px;
  color: #181a20;
}
.form-panel input, .form-panel select, .form-panel textarea {
  width: 100%;
  font-size: 1.12em;
  padding: 15px 18px;
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1.2px solid #d2d2e3;
  background: #f7f7fb;
  font-family: 'Inter', sans-serif;
  transition: border .18s;
  outline: none;
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus {
  border: 1.4px solid #7f3cff;
  background: #fff;
}
.form-panel button {
  width: 100%;
  background: #7f3cff;
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 15px 0;
  font-size: 1.11em;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(127,60,255,0.08);
  transition: background .13s;
}
.form-panel button:hover { background: #6640d3; }
.form-panel .msg-success {
  background: #e6ffe6;
  color: #11a911;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 16px 0;
  font-size: 1.05em;
  display: inline-block;
}
.form-panel .msg-error {
  background: #ffecec;
  color: #d82929;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 16px 0;
  font-size: 1.05em;
  display: inline-block;
}
@media (max-width: 600px) {
  .main-panel, .form-panel { max-width: 99vw; padding: 0 2vw;}
  .tarjeta, .hero-perfil, .form-panel { padding: 10vw 3vw 7vw 3vw; }
  .evento-img { width: 75vw; height: 26vw; min-width:130px; min-height:82px; }
  .medalla-mini { min-width: 32px;}
  .medalla-emoji-mini { font-size: 1.22em; }
  .foto-perfil { width: 64px; height: 64px;}
  .nombre-alumno { font-size: 1.33em;}
}
/* ✅ Añadir al inicio para que el padding respete el ancho total */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ✅ Ajuste en el contenedor general del formulario */
.form-panel {
  max-width: 460px;
  margin: 54px auto 70px auto;
  padding: 36px 28px 24px 28px; /* más espacio horizontal */
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 10px 48px rgba(120,108,220,0.13), 0 2px 18px rgba(120,108,220,0.07);
  border: 1.3px solid #eaeaf0;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ✅ Ajuste en inputs y selects */
.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  font-size: 1.12em;
  padding: 15px 18px;  /* antes era 15px 18px, se mantiene pero garantizamos box-sizing */
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1.2px solid #d2d2e3;
  background: #f7f7fb;
  font-family: 'Inter', sans-serif;
  transition: border .18s;
  outline: none;
}
