.rutina-header {
  padding: 2rem 0;
  position: relative;
}

.rutina-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.day-card {
  scroll-margin-top: 140px;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--surface-border);
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rutina-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.rutina-table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--surface-border);
  font-weight: 600;
}

.rutina-table tbody tr {
  transition: all 0.3s ease;
}

.rutina-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.exercise-name {
  font-weight: 600;
  color: var(--text-strong);
}

.exercise-notes {
  font-size: 0.8rem;
  color: var(--text-subtle);
  display: block;
  margin-top: 0.2rem;
}

.exercise-series {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-strong);
}

.exercise-rir {
  white-space: nowrap;
  color: var(--text-strong);
}

.exercise-rest {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.exercise-media {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.media-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed var(--surface-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.media-placeholder:hover {
  background: rgba(74, 111, 165, 0.2);
  border-color: var(--accent-blue);
  color: var(--text-strong);
  transform: scale(1.1);
}

.media-placeholder.has-media {
  border-style: solid;
  background: rgba(74, 111, 165, 0.15);
  border-color: var(--accent-blue);
}

.media-placeholder.has-media:hover {
  background: rgba(74, 111, 165, 0.3);
}

.day-nav-wrapper .cv-nav-container {
  max-width: 100%;
  overflow-x: auto;
}

.day-nav-wrapper .cv-nav-wrapper {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: min-content;
  padding-bottom: 4px;
}

.day-nav-item {
  white-space: nowrap;
  flex-shrink: 0;
}

.day-nav-item i {
  font-size: 1rem;
  margin-bottom: 0;
  margin-right: 0.4rem;
  display: inline;
}

@media (max-width: 768px) {
  .day-header {
    flex-direction: column;
    text-align: center;
  }

  .rutina-table thead {
    display: none;
  }

  .rutina-table tbody tr {
    display: block;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--surface-overlay);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
  }

  .rutina-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: none;
  }

  .rutina-table tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 1rem;
  }

  .exercise-media {
    justify-content: flex-end;
  }

  .day-nav-wrapper .cv-nav-wrapper {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .day-nav-item {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .rutina-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.week-table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--surface-border);
}

.week-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.week-day-name {
  font-weight: 700;
  color: var(--text-strong);
}

.week-day-focus {
  color: var(--text-muted);
}

.prog-week {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.prog-week:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.prog-week-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.prog-week-number {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-blue);
}

.supplement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.supplement-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.supplement-item i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.supplement-name {
  font-weight: 600;
  color: var(--text-strong);
  display: block;
  margin-bottom: 0.25rem;
}

.supplement-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.recovery-tip {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(58, 180, 242, 0.08);
  border: 1px solid rgba(58, 180, 242, 0.2);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.recovery-tip:hover {
  background: rgba(58, 180, 242, 0.12);
  transform: translateY(-2px);
}

.recovery-tip i {
  color: var(--glass-color-info);
}

.warmup-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.warmup-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  transition: all 0.3s ease;
}

.warmup-step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.warmup-step .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .warmup-list {
    grid-template-columns: 1fr;
  }
}

.media-modal .modal-content {
  background: transparent;
  border: none;
}

.media-modal .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.8;
}

.media-modal .btn-close:hover {
  opacity: 1;
}

.exercise-detail-link {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.exercise-detail-link:hover {
  color: var(--accent-blue);
}

@media print {
  .header, .mobile-nav, .day-nav-wrapper, .footer {
    display: none !important;
  }
  .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body {
    padding-top: 0 !important;
    background: white !important;
  }
  .glass-card, .glass-card-enhanced {
    border: 1px solid #ddd !important;
    background: white !important;
    box-shadow: none !important;
  }
  .text-gradient {
    -webkit-text-fill-color: #1a1a2e !important;
    background: none !important;
  }
}
