/* ==========================================================================
   SHE'S BY RUIDIAZ - PANEL DE ALUMNA STYLES
   Diseño Spa Femenino de Alta Gama, Mobile-First Nativo & Desktop sin solapamiento
   Colores Corporativos: #4f6848 y #fbf6eb
   ========================================================================== */

/* Layout Base */
.panel-app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background-color: var(--color-bg);
  position: relative;
}

@media (min-width: 992px) {
  .panel-app-wrapper {
    flex-direction: row;
    align-items: stretch;
  }
}

/* ==========================================================================
   SIDEBAR DESKTOP (STICKY, CERO SOLAPAMIENTO)
   ========================================================================== */
.panel-sidebar {
  display: none;
}

@media (min-width: 992px) {
  .panel-sidebar {
    display: flex;
    flex-direction: column;
    width: 270px;
    min-width: 270px;
    max-width: 270px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 1.1rem;
    z-index: 90;
    box-shadow: 2px 0 12px rgba(79, 104, 72, 0.04);
    overflow-y: auto;
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 1.25rem 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--color-primary-ultra-soft);
  border-radius: var(--radius-md);
  margin: 1.25rem 0 1rem 0;
  border: 1px solid rgba(79, 104, 72, 0.12);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.sidebar-item a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.sidebar-item.active a {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 104, 72, 0.22);
}

.sidebar-item.active a .icon {
  fill: #ffffff;
}

/* ==========================================================================
   HEADER MÓVIL SUPERIOR (NATIVE APP FEEL)
   ========================================================================== */
.panel-mobile-header {
  position: sticky;
  top: 0;
  background: rgba(251, 246, 235, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
}

@media (min-width: 992px) {
  .panel-mobile-header {
    display: none;
  }
}

.mobile-brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.mobile-brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-top: 1px;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR MÓVIL
   ========================================================================== */
.panel-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom, 0px)) 0.25rem;
  z-index: 990;
  box-shadow: 0 -4px 20px rgba(79, 104, 72, 0.08);
}

@media (min-width: 992px) {
  .panel-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  flex: 1;
  min-height: 48px;
}

.bottom-nav-item .icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--color-primary);
  font-weight: 700;
}

.bottom-nav-item.active .icon {
  fill: var(--color-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTENIDO PRINCIPAL (FLUIDO, SIN SOLAPAMIENTO)
   ========================================================================== */
.panel-main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 1.25rem 1rem 6.5rem 1rem;
}

@media (min-width: 992px) {
  .panel-main-content {
    padding: 2.2rem 2.5rem 4rem 2.5rem;
  }
}

.view-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .view-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   CALENDARIO MENSUAL & SEMANAL
   ========================================================================== */

/* Toggle Mensual / Semanal */
.calendar-view-toggle {
  display: inline-flex;
  align-self: flex-start;
  background: var(--color-bg-sand);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  border: 1px solid var(--color-border);
}

@media (max-width: 767px) {
  .calendar-view-toggle {
    width: 100%;
    display: flex;
  }
  .calendar-view-btn {
    flex: 1;
    text-align: center;
  }
  .growth-table-card {
    padding: 1rem 0.75rem;
    border-radius: var(--radius-lg);
  }
}

.calendar-view-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calendar-view-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 104, 72, 0.25);
}

/* Tarjeta Calendario */
.calendar-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.25rem 0.9rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .calendar-card {
    padding: 1.75rem;
    margin-bottom: 2rem;
  }
}

.calendar-header-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .calendar-header-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.calendar-month-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.calendar-grid-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border-light);
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  padding-top: 0.6rem;
}

@media (min-width: 768px) {
  .calendar-grid-days {
    gap: 0.45rem;
  }
}

/* Celda del Calendario Mensual */
.calendar-day-cell {
  aspect-ratio: 1;
  min-height: 42px;
  background: var(--color-bg-pure);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

@media (min-width: 768px) {
  .calendar-day-cell {
    border-radius: var(--radius-md);
    min-height: 58px;
    justify-content: space-between;
    padding: 0.45rem;
  }
}

.calendar-day-cell:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-ultra-soft);
  transform: translateY(-1px);
}

.calendar-day-cell.inactive {
  opacity: 0.25;
  pointer-events: none;
}

.calendar-day-cell.today {
  border: 2px solid var(--color-primary);
  background: var(--color-primary-soft);
}

.calendar-day-cell.has-workout {
  background: #f1f6ef;
  border-color: #bcd2b8;
}

.calendar-day-cell.selected-day {
  box-shadow: 0 0 0 2px var(--color-terracotta);
}

.day-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1;
}

@media (min-width: 768px) {
  .day-num {
    font-size: 0.9rem;
  }
}

.workout-mobile-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 3px;
  display: block;
}

@media (min-width: 768px) {
  .workout-mobile-dot {
    display: none;
  }
}

.workout-pill-indicator {
  display: none;
}

@media (min-width: 768px) {
  .workout-pill-indicator {
    display: block;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-full);
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.mobile-day-preview-card {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--color-primary-ultra-soft);
  border-radius: var(--radius-md);
  border: 1px solid rgba(79, 104, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ==========================================================================
   VISTA SEMANAL DEL CALENDARIO (7 COLUMNAS FLUIDAS Y RESPONSIVAS)
   ========================================================================== */
.weekly-calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
  width: 100%;
}

@media (min-width: 600px) {
  .weekly-calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .weekly-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
  }
}

.weekly-day-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.weekly-day-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.weekly-day-card.today {
  border: 2px solid var(--color-primary);
  background: var(--color-primary-ultra-soft);
  box-shadow: 0 4px 14px rgba(79, 104, 72, 0.12);
}

.weekly-day-card.completed {
  border-color: #bcd2b8;
  background: #f4f8f3;
}

.weekly-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.weekly-day-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.weekly-day-number {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.1;
  margin: 0.15rem 0;
}

.weekly-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.weekly-routine-focus {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-day-status {
  margin-top: 0.2rem;
}

.weekly-card-footer {
  border-top: 1px solid var(--color-border-light);
  padding-top: 0.45rem;
  margin-top: 0.5rem;
}

/* Cronómetro en Vivo */
.workout-timer-bar {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .workout-timer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 1.5rem 1.75rem;
  }
}

.timer-digits {
  font-family: monospace;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Tarjeta del Instructor Andrés Ruidiaz */
.instructor-notes-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .instructor-notes-card {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   MIS RUTINAS (TABS RESPONSIVAS)
   ========================================================================== */
.routine-days-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.routine-tab-btn {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-main);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 86px;
  text-align: center;
}

.routine-tab-day-name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
}

.routine-tab-date-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.routine-tab-today-tag {
  background: #10b981;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  text-transform: uppercase;
}

.routine-tab-btn.is-today-tab:not(.active) {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.routine-tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 104, 72, 0.25);
}

.routine-tab-btn.active .routine-tab-date-label {
  color: rgba(255, 255, 255, 0.9);
}

.routine-tab-btn.active .routine-tab-today-tag {
  background: #ffffff;
  color: var(--color-primary-dark);
}

.exercise-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .exercise-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
  }
}

/* ==========================================================================
   VISTA: MI CRECIMIENTO (REDISIEÑO ESTILO SPA DE ALTA GAMA)
   ========================================================================== */
.growth-dashboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero Card de Transformación & Hitos */
.growth-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-bg-sand) 100%);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .growth-hero-card {
    padding: 1.85rem 2rem;
  }
}

.growth-hero-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .growth-hero-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.growth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(79, 104, 72, 0.2);
  align-self: flex-start;
}

.growth-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(79, 104, 72, 0.3);
}

/* Track de Hitos Semanales */
.growth-milestones-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
}

.milestone-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.milestone-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffffff;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
}

.milestone-step.completed .milestone-step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.milestone-step.active .milestone-step-circle {
  background: #ffffff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.milestone-step-info {
  display: flex;
  flex-direction: column;
}

.milestone-step-info strong {
  font-size: 0.82rem;
  color: var(--color-text-main);
}

.milestone-step-info span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.milestone-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  min-width: 25px;
}

.milestone-line.completed {
  background: var(--color-primary);
}

.milestone-line.active {
  background: linear-gradient(90deg, var(--color-primary), var(--color-border));
}

/* Grid de Métricas Principales */
.growth-kpis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 550px) {
  .growth-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .growth-kpis-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.growth-kpi-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.growth-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.growth-kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.growth-kpi-value {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.growth-kpi-sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.kpi-mini-progress {
  width: 100%;
  height: 6px;
  background: var(--color-bg-sand);
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  overflow: hidden;
}

.kpi-mini-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

/* Estudio de Comparativa Fotográfica */
.photo-studio-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .photo-studio-card {
    padding: 2rem;
  }
}

.studio-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .studio-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.studio-angles-pill {
  display: inline-flex;
  background: var(--color-bg-sand);
  border-radius: var(--radius-full);
  padding: 3px;
  align-self: flex-start;
}

.studio-angle-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.studio-angle-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 104, 72, 0.2);
}

.studio-selectors-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .studio-selectors-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Fotos Lado a Lado Estilizadas */
.studio-photos-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .studio-photos-compare {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.photo-studio-frame {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: var(--transition-smooth);
}

.photo-studio-frame.current-period {
  background: #fbfdfa;
  border-color: #bcd2b8;
  box-shadow: 0 4px 18px rgba(79, 104, 72, 0.08);
}

.frame-tag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--color-border-light);
}

.frame-img-wrap {
  background: #192017;
  border-radius: var(--radius-md);
  padding: 0.25rem;
  border: 1px solid var(--color-border-light);
  max-height: 250px;
  overflow: hidden;
}

.photo-studio-frame img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.photo-meta-footer {
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
  text-align: left;
}

.frame-coach-note {
  background: var(--color-bg-sand);
  border-left: 3px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-top: 0.5rem;
}

.studio-evolution-summary-bar {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
}

/* Tabla Comparativa de Medidas */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.growth-table-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.growth-metrics-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.growth-metrics-table th {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--color-border);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.growth-metrics-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-main);
}

.growth-metrics-table tr:hover td {
  background: var(--color-primary-ultra-soft);
}

/* Línea de Tiempo de Chequeos */
.growth-timeline-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--color-primary-ultra-soft);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
}

@media (min-width: 650px) {
  .timeline-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.timeline-item-meta {
  min-width: 130px;
  flex-shrink: 0;
}

.timeline-item-content {
  flex: 1;
}

/* Chat tipo WhatsApp */
.whatsapp-chat-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 250px);
  min-height: 480px;
  max-height: 700px;
}

.chat-header-bar {
  background: #384c33;
  color: #ffffff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-box {
  flex: 1;
  background: #f8f5ee;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-bubble {
  max-width: 86%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}

.chat-bubble.instructor {
  align-self: flex-start;
  background: #ffffff;
  color: var(--color-text-main);
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.chat-bubble.user {
  align-self: flex-end;
  background: #e2ede0;
  color: #20311d;
  border-bottom-right-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Barra de Input del Chat (Botón inline a la derecha) */
.whatsapp-chat-container .chat-input-bar,
.chat-input-bar {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.8rem 1rem !important;
  background: #ffffff !important;
  border-top: 1px solid var(--color-border) !important;
}

.whatsapp-chat-container .chat-input-bar .form-control,
.chat-input-bar .form-control {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
}

.whatsapp-chat-container .chat-input-bar button[type="submit"],
.chat-input-bar button[type="submit"] {
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   SEGMENTED CONTROL (SWITCH DE LOGIN / REGISTRO ANIMADO)
   ========================================================================== */
.auth-segmented-control {
  position: relative;
  display: flex;
  background: var(--color-bg-sand);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.auth-segmented-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(79, 104, 72, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.auth-segmented-control.show-register .auth-segmented-pill {
  transform: translateX(100%);
}

.auth-segmented-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.25s ease, font-weight 0.25s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-segmented-btn.active {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* Wizard Anamnesis */
.wizard-overlay-screen {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.wizard-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 660px;
  padding: 2rem 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .wizard-card {
    padding: 2.75rem 2.25rem;
  }
}

/* CSS for Wizard / Cuestionario Options */
.wizard-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--color-border-light);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.wizard-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.wizard-option-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.wizard-option-btn:hover {
  border-color: var(--color-primary-light);
  background: var(--color-bg-sand);
}
.wizard-option-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: #ffffff;
  font-weight: 600;
}
.wizard-option-btn .opt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: transparent;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}
.wizard-option-btn.selected .opt-check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   DESKTOP TIMER & FAB (NUEVO)
   ========================================================================== */
.sidebar-timer-container {
  padding: 1.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 0.5rem;
}
.sidebar-play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(214, 114, 91, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.25s;
  animation: pulseSoft 2.5s infinite;
}
.sidebar-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(214, 114, 91, 0.5);
}
.sidebar-play-btn svg {
  fill: currentColor;
  width: 32px;
  height: 32px;
  margin-left: 5px;
  transition: transform 0.2s;
}

/* Estado Activo: Botón de STOP */
.sidebar-play-btn.is-stop {
  background: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
  animation: pulseStop 1.8s infinite !important;
}
.sidebar-play-btn.is-stop:hover {
  background: #b91c1c !important;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.55) !important;
}
.sidebar-play-btn.is-stop svg {
  margin-left: 0 !important;
}

.sidebar-timer-label {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 0.6rem;
  color: var(--color-primary-dark);
  text-align: center;
  transition: color 0.2s;
}

.sidebar-timer-controls,
#desktop-timer-controls {
  display: none !important;
}

/* ==========================================================================
   MOBILE FAB TIMER
   ========================================================================== */
.bottom-nav-fab-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
}
.bottom-nav-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: white;
  border: 4px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: absolute;
  top: -30px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.25s;
  animation: pulseSoft 2.5s infinite;
}
.bottom-nav-fab svg {
  fill: currentColor;
  width: 26px;
  height: 26px;
  margin-left: 3px;
  transition: transform 0.2s;
}

/* Estado Activo Móvil: Botón de STOP */
.bottom-nav-fab.is-stop {
  background: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
  animation: pulseStop 1.8s infinite !important;
}
.bottom-nav-fab.is-stop:hover {
  background: #b91c1c !important;
  transform: scale(1.06);
}
.bottom-nav-fab.is-stop svg {
  margin-left: 0 !important;
}

/* Barra flotante eliminada por requerimiento UX */
.mobile-timer-bar,
#mobile-timer-bar {
  display: none !important;
}

.weekly-day-num {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}
.weekly-day-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.weekly-day-card.selected-day {
  border: 2px solid var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(79, 104, 72, 0.2);
  transform: translateY(-2px);
}


/* ==========================================================================
   VIDEOS GRID
   ========================================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.video-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.video-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background-color: var(--color-bg-warm);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}
.video-play-btn-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.video-card:hover .video-play-btn-circle {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1);
}
.video-play-btn-circle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 2px; /* optical alignment for play icon */
}
.video-content-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Cards Profesionales para Subida de Fotos de Chequeo */
.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.photo-upload-card {
  background: var(--color-bg-pure);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.photo-upload-card:hover {
  border-color: var(--color-primary);
  background: rgba(79, 104, 72, 0.03);
}

.photo-upload-card.has-file {
  border-style: solid;
  border-color: var(--color-primary);
  background: #fbfdfa;
}

.photo-upload-preview-box {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 160px;
  background: #f4f6f3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  position: relative;
}

.photo-upload-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-muted);
  gap: 0.35rem;
  padding: 0.5rem;
}

.photo-upload-placeholder svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  opacity: 0.7;
}

.photo-upload-placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
}

.photo-upload-card input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.photo-lockout-banner {
  background: #fff8eb;
  border: 1px solid #ffd8a8;
  color: #b25e02;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   MODAL LIGHTBOX PANTALLA COMPLETA & EFECTO LUPA EN FOTOS
   ========================================================================== */
.modal-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 10, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.22s ease-in-out;
}

.modal-lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100001;
}

.lightbox-close-btn:hover {
  background: rgba(220, 53, 69, 0.9);
  border-color: transparent;
  transform: scale(1.1);
}

.lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 82vh;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
  background: #000000;
}

.lightbox-image-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-caption {
  margin-top: 0.8rem;
  color: #f0ece1;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  max-width: 85vw;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
}

/* Efecto Hover Lupa en Fotos */
.zoomable-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoomable-photo-wrap img {
  transition: transform 0.25s ease, filter 0.25s ease;
  width: 100%;
  height: 100%;
  display: block;
}

.zoomable-photo-wrap:hover img {
  transform: scale(1.035);
  filter: brightness(0.92);
}

.photo-lupa-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(18, 24, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.85;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.zoomable-photo-wrap:hover .photo-lupa-badge {
  opacity: 1;
  background: rgba(43, 64, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   BADGE DE MENSAJES NO LEÍDOS DEL INSTRUCTOR TIPO WHATSAPP
   ========================================================================== */
#student-chat-unread-badge,
.chat-badge-circle {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

#student-chat-unread-badge-mobile,
.chat-badge-circle-mobile {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

/* ==========================================================================
   ENTRENAMIENTOS POR EJERCICIO Y CALENDARIO SEMÁNTICO SHE IS
   ========================================================================== */

/* Botón moderno: Realizar este ejercicio */
.btn-exercise-play {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-full);
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 104, 72, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-exercise-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 104, 72, 0.38);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #364932 100%);
}

.btn-exercise-play:active {
  transform: translateY(0);
}

.btn-exercise-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Botón activo mientras corre el cronómetro: Ejercicio realizado (MM:SS) */
.btn-exercise-running {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-full);
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.38);
  animation: pulse-exercise-timer 1.8s infinite;
  white-space: nowrap;
}

@keyframes pulse-exercise-timer {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.btn-exercise-running:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.btn-exercise-running svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Tarjeta de ejercicio completada: Fondo verde y borde destacado */
.exercise-card.is-completed {
  background: #f0fdf4 !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12) !important;
  transition: all 0.3s ease;
}

/* Contenedor de notas por ejercicio para el instructor */
.exercise-notes-container {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #bbf7d0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.exercise-notes-container label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #166534;
}

.exercise-notes-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 420px) {
  .exercise-notes-input-group {
    flex-direction: column;
    align-items: stretch;
  }
}

.exercise-notes-input-group input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  background: #ffffff;
  color: var(--color-text-main);
  min-height: 40px;
}

.exercise-notes-input-group input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* Calendarios Semanal y Mensual: Estados Semánticos */
/* 1. Días completados: VERDE */
.calendar-day-cell.is-completed {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  box-shadow: inset 0 0 0 1px #10b981;
}

.calendar-day-cell.is-completed .day-num {
  color: #065f46 !important;
  font-weight: 700;
}

.weekly-day-card.is-completed {
  background: #ecfdf5 !important;
  border: 2px solid #10b981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.16);
}

.weekly-day-card.is-completed .weekly-day-num {
  color: #047857 !important;
}

/* 2. Días de descanso / sin rutina asignada: GRIS OPACO */
.calendar-day-cell.is-rest {
  opacity: 0.55 !important;
  background: #e5e7eb !important;
  border: 1px dashed #cbd5e1 !important;
  color: #64748b !important;
}

.calendar-day-cell.is-rest .day-num {
  color: #64748b !important;
}

.weekly-day-card.is-rest {
  opacity: 0.55 !important;
  background: #f1f5f9 !important;
  border: 1.5px dashed #cbd5e1 !important;
}

.weekly-day-card.is-rest .weekly-day-name,
.weekly-day-card.is-rest .weekly-day-num,
.weekly-day-card.is-rest .weekly-day-title {
  color: #64748b !important;
}

/* Chips de ejercicios para modales y admin */
.exercise-chip-done {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.exercise-chip-pending {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}



