
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --hw-charcoal: #1e1e1e;
  --hw-graphite: #656f77;
  --hw-wrought-iron: #4a4a4a;
  --hw-white: #ffffff;
  --hw-off-white: #f8f9fa;
  --hw-light-gray: #e9ecef;
  
  --primary-blue: #1e1e1e;
  --primary-blue-dark: #1e1e1e;
  --primary-blue-light: #656f77;
  --secondary-blue: #656f77;
  --accent-blue: #656f77;
  
  --green: #28a745;
  --orange: #ffc107;
  --purple: #6f42c1;
  --red: #dc3545;
  
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1e1e1e;
  --text-secondary: #495057;
  --text-tertiary: #6c757d;
  --border-color: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.08);
  
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;
}

body.dark-mode {
  --hw-charcoal: #1a202c;
  --hw-graphite: #a0aec0;
  --hw-white: #e4e7eb;
  --hw-off-white: #2d3748;
  
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --bg-card: #2d3748;
  --text-primary: #e4e7eb;
  --text-secondary: #cbd5e0;
  --text-tertiary: #a0aec0;
  --border-color: rgba(203, 213, 224, 0.15);
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.perfil-header {
  background: var(--hw-charcoal);
  border-bottom: none;
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-center h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--hw-white);
}

.btn-back {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--hw-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-theme {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-theme:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.perfil-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--spacing-lg);
}

.perfil-sidebar {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: 0 2px 12px var(--shadow);
}

.perfil-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.nav-item:hover {
  background: rgba(147, 161, 173, 0.08);
  color: #93a1ad;
}

.nav-item.active {
  background: var(--hw-off-white);
  color: #93a1ad;
  font-weight: 600;
  border-left: 3px solid rgba(147, 161, 173, 0.8);
}

.nav-item i {
  width: 20px;
  height: 20px;
}

.perfil-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 2px 12px var(--shadow);
}

.perfil-section {
  display: none;
}

.perfil-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  background-image: url('../../images/banner1.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--hw-charcoal);
  border-radius: var(--radius-lg);
  color: white;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
}

.profile-header-card > * {
  position: relative;
  z-index: 1;
}

.btn-change-banner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hw-charcoal);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-change-banner:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-change-banner i {
  width: 18px;
  height: 18px;
}

.profile-avatar-container {
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  border: 4px solid rgba(255, 255, 255, 0.3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
}

.profile-avatar #avatarInitials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-change-avatar {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: white;
  color: var(--primary-blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.btn-change-avatar:hover {
  transform: scale(1.1);
}

.profile-header-info h2 {
  font-size: clamp(1.5rem, 4vw + 0.25rem, 2rem);
  margin-bottom: var(--spacing-sm);
}

.profile-badges {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.badge-role {
  background: #93a1ad;
  color: white;
}

.badge-status {
  background: rgba(76, 175, 80, 0.3);
  color: #c8e6c9;
}

.profile-username {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.profile-joined {
  font-size: 14px;
  opacity: 0.8;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-md);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--shadow);
  border-color: #93a1ad;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(25, 118, 210, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card-content h4 {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
}

.info-card-content p {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.biografia-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border: 1px solid var(--border-color);
}

.biografia-section h3 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.biografia-section h3 i {
  width: 20px;
  height: 20px;
  color: var(--primary-blue);
}

.biografia-content {
  background: var(--bg-primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-blue);
}

.biografia-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  white-space: pre-wrap;
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: clamp(1.25rem, 3vw + 0.25rem, 1.75rem);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.section-header h2 i {
  color: var(--primary-blue);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.perfil-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-textarea {
  resize: vertical;
  font-family: inherit;
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--hw-charcoal);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--hw-charcoal);
  border-color: rgba(147, 161, 173, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 161, 173, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: #93a1ad;
  color: #93a1ad;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.academic-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--shadow);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stat-icon.blue {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.stat-icon.green {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.stat-icon.orange {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.stat-icon.purple {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.stat-content h3 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-content p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.courses-section {
  margin-top: var(--spacing-xl);
}

.courses-section h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--shadow);
  border-color: var(--primary-blue);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--spacing-sm);
}

.course-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.course-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(25, 118, 210, 0.1);
  color: var(--primary-blue);
}

.course-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.stat-card-large {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
}

.stat-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--shadow);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  color: var(--primary-blue);
}

.stat-header h4 {
  font-size: 16px;
  font-weight: 600;
}

.stat-value h2 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.25rem);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.stat-value p {
  font-size: 14px;
  color: var(--text-tertiary);
}

.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.config-card h3 {
  font-size: 18px;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.config-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.btn-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.btn-action:hover {
  border-color: var(--primary-blue);
  background: rgba(25, 118, 210, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-action i {
  width: 32px;
  height: 32px;
  color: var(--primary-blue);
}

@media (max-width: 1024px) {
  .perfil-container {
    grid-template-columns: 1fr;
  }

  .perfil-sidebar {
    position: static;
  }

  .perfil-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .nav-item span {
    display: none;
  }
}

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

  .header-container {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .info-cards-grid,
  .academic-stats,
  .courses-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  * {
    box-sizing: border-box;
  }

  .perfil-container {
    padding: 14px;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .perfil-content {
    padding: 0;
  }

  .profile-header-card {
    padding: 22px 18px;
    gap: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .profile-avatar-container {
    margin-bottom: 0;
  }

  .profile-avatar {
    width: 90px;
    height: 90px;
    font-size: 36px;
    border-width: 3px;
  }

  .btn-change-avatar {
    width: 34px;
    height: 34px;
  }

  .profile-header-info h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .profile-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .badge {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  .profile-username {
    font-size: 0.92rem;
  }

  .profile-joined {
    font-size: 0.82rem;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .info-card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
  }

  .info-card-content h4 {
    font-size: 0.78rem;
  }

  .info-card-content p {
    font-size: 0.92rem;
  }

  .biografia-section {
    padding: 18px 16px;
    margin-top: 18px;
    border-radius: 14px;
  }

  .biografia-section h3 {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .biografia-content {
    padding: 14px;
    border-radius: 10px;
  }

  .biografia-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .section-header {
    margin-bottom: 22px;
  }

  .section-header h2 {
    font-size: 1.35rem;
    gap: 8px;
  }

  .section-header p {
    font-size: 0.88rem;
  }

  .perfil-form {
    gap: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group {
    gap: 6px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-input,
  .form-textarea {
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .academic-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .stat-card {
    padding: 16px 14px;
    gap: 10px;
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0 auto;
  }

  .stat-content h3 {
    font-size: 1.5rem;
    margin-bottom: 2px;
  }

  .stat-content p {
    font-size: 0.72rem;
  }

  .courses-section {
    margin-top: 22px;
  }

  .courses-section h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .course-header {
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .course-title {
    font-size: 0.98rem;
  }

  .course-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .course-info {
    font-size: 0.85rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card-large {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .stat-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .stat-header h4 {
    font-size: 0.95rem;
  }

  .stat-value h2 {
    font-size: 2rem;
  }

  .stat-value p {
    font-size: 0.82rem;
  }

  .config-card {
    padding: 20px 18px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .config-card h3 {
    font-size: 1.05rem;
  }

  .config-description {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn-action {
    padding: 18px 14px;
    gap: 8px;
    font-size: 0.82rem;
    border-radius: 12px;
  }

  .btn-action i {
    width: 26px;
    height: 26px;
  }

  .data-display-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .data-display-item {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .data-display-item.full-width {
    grid-column: 1;
  }

  .data-label {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .data-value {
    font-size: 0.9rem;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .curso-card-readonly {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .curso-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .curso-header h3 {
    font-size: 1rem;
  }

  .curso-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .curso-details {
    gap: 10px;
  }

  .curso-detail {
    font-size: 0.85rem;
    gap: 8px;
  }

  .curso-detail i {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .progress-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .progress-card h3 {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .progress-bar-container {
    height: 20px;
    margin-bottom: 10px;
  }

  .progress-text {
    font-size: 0.85rem;
  }

  .perfil-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    gap: 8px;
    scrollbar-width: none;
  }

  .perfil-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-item span {
    display: inline;
    font-size: 0.82rem;
  }

  .nav-item i {
    width: 18px;
    height: 18px;
  }
}


.data-display-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.data-display-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.data-display-item.full-width {
  grid-column: 1 / -1;
}

.data-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-value {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.curso-card-readonly {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.curso-card-readonly:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.curso-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.curso-header h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}

.curso-badge {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.curso-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curso-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.curso-detail i {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stat-icon i {
  width: 28px;
  height: 28px;
}

.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.progress-card h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: var(--text-primary);
}

.progress-bar-container {
  width: 100%;
  height: 24px;
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 12px;
  transition: width 0.5s ease;
}

.progress-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

body.dark-mode .data-display-item,
body.dark-mode .curso-card-readonly,
body.dark-mode .stat-card,
body.dark-mode .progress-card {
  background: var(--bg-white);
  border-color: var(--border-color);
}

body.dark-mode .data-value,
body.dark-mode .curso-header h3,
body.dark-mode .stat-value,
body.dark-mode .progress-card h3 {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .data-display-grid,
  .cursos-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .data-display-item.full-width {
    grid-column: 1;
  }
}




/* Forzar fuente Inter en todos los elementos de Mi Perfil */
#perfil-classroom *,
.perfil-header *,
.perfil-container *,
.perfil-sidebar *,
.perfil-nav *,
.perfil-content *,
.perfil-section *,
.profile-header-card *,
.info-cards-grid *,
.info-card *,
.biografia-section *,
.perfil-form *,
.form-group *,
.form-input,
.form-textarea,
.config-card *,
.quick-actions *,
.btn-primary,
.btn-secondary,
.btn-action,
label,
input,
textarea,
button,
h1, h2, h3, h4, h5, h6,
p, span, div {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
