@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
/* variables del sistema de diseño premium */
:root {
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bg-main: #090b11;
  --bg-card: rgba(20, 24, 39, 0.6);
  --bg-card-hover: rgba(28, 33, 53, 0.8);
  --bg-input: rgba(13, 16, 27, 0.8);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(212, 255, 0, 0.3);
  
  --accent-lime: #9d5cff;
  --accent-lime-rgb: 157, 92, 255;
  --accent-purple: #39ff14;
  --accent-purple-rgb: 57, 255, 20;
  --accent-rose: #ff4a75;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --glass-bg: rgba(13, 16, 27, 0.4);
  --glass-border: 1px solid rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
/* scrollbar personalizado */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}
body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
/* efecto de iluminación de fondo sutil */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(var(--accent-purple-rgb), 0.08) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(var(--accent-lime-rgb), 0.05) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}
/* layout del grid principal */
#app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 70px 1fr;
  grid-template-areas: 
    "sidebar header"
    "sidebar main";
  min-height: 100vh;
}
@media (max-width: 968px) {
  #app-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: 
      "header"
      "sidebar"
      "main";
  }
}
/* cabecera principal */
header {
  grid-area: header;
  background: rgba(9, 11, 17, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
@media (max-width: 968px) {
  header {
    padding: 1rem;
  }
}
.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo-svg {
  width: 35px;
  height: 35px;
  fill: var(--accent-purple);
  filter: drop-shadow(0 0 8px rgba(var(--accent-purple-rgb), 0.4));
}
.brand-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* selector de roles premium */
.role-selector-container {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.role-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.role-btn.active {
  color: #000;
  background: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(var(--accent-purple-rgb), 0.35);
  font-weight: 700;
}
.role-btn svg {
  width: 14px;
  height: 14px;
}
.role-btn:not(.active):hover {
  color: var(--text-primary);
}
/* barra lateral de navegación */
aside.sidebar {
  grid-area: sidebar;
  background: rgba(11, 14, 23, 0.95);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 9;
}
@media (max-width: 968px) {
  aside.sidebar {
    flex-direction: row;
    padding: 0.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    gap: 1rem;
  }
}
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 968px) {
  .nav-links {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }
}
.nav-item {
  width: 100%;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transform: translateX(4px);
}
@media (max-width: 968px) {
  .nav-link:hover {
    transform: none;
  }
}
.nav-link.active {
  background: rgba(var(--accent-purple-rgb), 0.15);
  color: var(--accent-purple);
  border-left: 3px solid var(--accent-purple);
  font-weight: 600;
}
.nav-link.active svg {
  stroke: var(--accent-purple);
}
.nav-link svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
  transition: var(--transition-smooth);
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-top: auto;
}
@media (max-width: 968px) {
  .profile-summary {
    display: none;
  }
}
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
}
.profile-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
/* contenedor de contenido principal */
main {
  grid-area: main;
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}
@media (max-width: 968px) {
  main {
    padding: 1.25rem;
    max-height: none;
  }
}
/* estilos generales de tarjetas premium (glassmorphism) */
.glass-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
/* titulos de sección */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title-wrapper {
  display: flex;
  flex-direction: column;
}
.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}
/* botones de acción premium */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #00cc44 100%);
  color: #000;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(var(--accent-purple-rgb), 0.3);
  transition: var(--transition-bounce);
}
.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(var(--accent-purple-rgb), 0.45);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-title);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-accent {
  background: var(--accent-lime);
  color: #fff;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(var(--accent-lime-rgb), 0.25);
  transition: var(--transition-bounce);
}
.btn-accent:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(var(--accent-lime-rgb), 0.4);
}
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-purple);
}
/* vistas del dashboard profe */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon-wrapper.purple {
  background: rgba(var(--accent-purple-rgb), 0.12);
  border: 1px solid rgba(var(--accent-purple-rgb), 0.2);
}
.stat-icon-wrapper.purple svg {
  stroke: var(--accent-purple);
}
.stat-icon-wrapper.lime {
  background: rgba(var(--accent-lime-rgb), 0.1);
  border: 1px solid rgba(var(--accent-lime-rgb), 0.2);
}
.stat-icon-wrapper.lime svg {
  stroke: var(--accent-lime);
}
.stat-icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke-width: 2;
}
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.1;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}
/* lista de alumnos */
.search-filter-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}
.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}
.input-premium {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px 12px 42px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
}
.input-premium:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(var(--accent-purple-rgb), 0.15);
}
.select-premium {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 24px 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  min-width: 150px;
  transition: var(--transition-smooth);
}
.select-premium:focus {
  border-color: var(--accent-purple);
}
/* tarjetas de alumnos */
.students-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.student-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.student-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-lime));
  opacity: 0;
  transition: var(--transition-smooth);
}
.student-card:hover::before {
  opacity: 1;
}
.student-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.student-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.student-card-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.student-card-title p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}
.badge.active {
  background: rgba(var(--accent-purple-rgb), 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(var(--accent-purple-rgb), 0.2);
}
.badge.inactive {
  background: rgba(255, 74, 117, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(255, 74, 117, 0.2);
}
.student-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.student-detail-item:last-of-type {
  border-bottom: none;
}
.student-detail-label {
  color: var(--text-secondary);
}
.student-detail-value {
  color: var(--text-primary);
  font-weight: 600;
}
.student-card-footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}
.student-card-footer button {
  flex: 1;
  font-size: 0.8rem;
  padding: 10px 14px;
}
/* modal / detalle extendido de alumno */
.student-profile-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .student-profile-container {
    grid-template-columns: 1fr;
  }
}
.side-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.side-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-purple);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(157, 92, 255, 0.2);
}
.profile-main-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-title);
}
.profile-main-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.tab-nav {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-lime);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* rutina asignada editor y visualizador */
.routine-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.routine-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-smooth);
}
.routine-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.routine-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.routine-item-name {
  font-weight: 700;
  font-size: 1rem;
}
.routine-item-stats {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.routine-item-actions {
  display: flex;
  gap: 8px;
}
/* creador/formulario de rutina */
.routine-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input, .form-group select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  font-size: 0.9rem;
}
.form-group input:focus {
  border-color: var(--accent-purple);
}
/* comparador de fotos (slider antes y despues) */
.photo-comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .photo-comparison-container {
    grid-template-columns: 1fr;
  }
}
.comparison-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/5;
  background: #000;
}
.comparison-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
/* slider interactivo superpuesto */
.slider-compare-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 1.5rem;
}
.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.slider-img.img-after {
  /* se posiciona detrás */
}
.slider-img.img-before {
  /* se posiciona delante y se recorta con clip-path */
  width: 50%;
  border-right: 2px solid var(--accent-purple);
}
.slider-control {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background: transparent;
  outline: none;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  z-index: 5;
}
.slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 4px solid #141827;
  cursor: ew-resize;
  box-shadow: 0 0 15px rgba(var(--accent-purple-rgb), 0.5);
  transition: transform 0.1s;
}
.slider-control::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
/* gráficos de progresiones SVG interactivos */
.chart-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 16px;
  padding: 10px;
  margin-top: 1rem;
}
.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1;
}
.chart-line-path {
  fill: none;
  stroke: url(#chart-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(var(--accent-purple-rgb), 0.3));
}
.chart-area-path {
  fill: url(#area-gradient);
  opacity: 0.15;
}
.chart-point {
  fill: var(--accent-purple);
  stroke: var(--bg-main);
  stroke-width: 2.5;
  cursor: pointer;
  transition: r 0.2s;
}
.chart-point:hover {
  r: 8px;
}
.chart-tooltip {
  position: absolute;
  background: rgba(11, 14, 23, 0.95);
  border: 1px solid var(--accent-purple);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: var(--glass-shadow);
  z-index: 10;
}
.chart-labels-x {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}
/* vista del alumno */
.workout-card {
  border-left: 4px solid var(--accent-purple);
  margin-bottom: 1.5rem;
}
.workout-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.workout-item:last-child {
  border-bottom: none;
}
.workout-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.workout-item-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.check-circle.checked {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #000;
}
.check-circle.checked svg {
  display: block;
}
.check-circle svg {
  display: none;
  width: 14px;
  height: 14px;
  stroke: #000;
  stroke-width: 3;
}
.workout-item-content {
  margin-top: 1rem;
  padding-left: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .workout-item-content {
    grid-template-columns: 1fr;
  }
}
.workout-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.workout-stat-box {
  display: flex;
  flex-direction: column;
}
.workout-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.workout-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-primary);
}
/* media e instructivo de ejercicios */
.workout-item-media {
  width: 180px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workout-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workout-item-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}
.workout-item-media:hover::before {
  background: rgba(0, 0, 0, 0.1);
}
.media-play-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(157, 92, 255, 0.4);
  transition: var(--transition-bounce);
  z-index: 2;
}
.workout-item-media:hover .media-play-icon {
  transform: scale(1.1);
}
.media-play-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  stroke: none;
  margin-left: 2px;
}
/* modal del visualizador multimedia */
.media-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 17, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}
.media-modal-card {
  max-width: 800px;
  width: 100%;
  background: #0d101b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.media-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.media-modal-body {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-modal-body video, .media-modal-body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* cronómetro / temporizador de descanso */
.rest-timer-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(var(--accent-purple-rgb), 0.04);
  border: 1px solid rgba(var(--accent-purple-rgb), 0.15);
  border-radius: 16px;
  padding: 12px 20px;
  margin-top: 1rem;
  transition: var(--transition-smooth);
}
.rest-timer-container.active {
  background: rgba(var(--accent-lime-rgb), 0.08);
  border-color: rgba(var(--accent-lime-rgb), 0.3);
}
.timer-icon-wrapper {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.timer-text-info {
  display: flex;
  flex-direction: column;
}
.timer-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.timer-countdown {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-lime);
}
.rest-timer-container.active .timer-countdown {
  color: var(--accent-purple);
}
/* seccion tienda */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.product-image-container {
  aspect-ratio: 1/1;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}
.product-image-svg {
  width: 100%;
  height: 100%;
  max-width: 120px;
  max-height: 120px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
  transition: var(--transition-bounce);
}
.product-card:hover .product-image-svg {
  transform: scale(1.1) rotate(5deg);
}
.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 11, 17, 0.8);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.product-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-lime);
}
.product-card button {
  width: 100%;
  margin-top: 1rem;
}
/* carrito de compras */
.cart-card {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 140px);
}
.cart-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.cart-item-details {
  flex: 1;
}
.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price-qty {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.cart-summary {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.cart-card button {
  width: 100%;
}
/* pasarela de pago simulada */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 17, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 1.5rem;
}
.checkout-card {
  max-width: 450px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
}
.checkout-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.checkout-header h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
}
.checkout-header p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.payment-badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1rem 0;
}
.payment-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.credit-card-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.credit-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
/* pantalla de éxito del pago */
.payment-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--accent-purple-rgb), 0.1);
  border: 2px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(var(--accent-purple-rgb), 0.3);
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-icon-wrapper svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-purple);
  stroke-width: 3;
}
@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.receipt-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  width: 100%;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
  font-size: 0.85rem;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.receipt-row:last-child {
  margin-bottom: 0;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  font-weight: 700;
}
.receipt-label {
  color: var(--text-secondary);
}
/* spinner de carga */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-left-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 1.5rem;
}
/* lista de órdenes en la vista del profesor */
.orders-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.orders-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.orders-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}
.orders-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}
/* notificacion flotante de temporizador */
.timer-overlay-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0d101b;
  border: 1px solid var(--accent-purple);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--glass-shadow);
  z-index: 90;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInUp {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.timer-overlay-info {
  display: flex;
  flex-direction: column;
}
.timer-overlay-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.timer-overlay-time {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-purple);
}
.timer-overlay-btn {
  background: rgba(255, 74, 117, 0.15);
  border: 1px solid rgba(255, 74, 117, 0.3);
  color: var(--accent-rose);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}
.timer-overlay-btn:hover {
  background: rgba(255, 74, 117, 0.25);
}
