
/* iOS Design System Variables */
:root {
  --ios-bg-color: #F2F2F7;
  --ios-card-bg: #FFFFFF;
  --ios-primary: #007AFF;
  --ios-secondary: #5AC8FA;
  --ios-success: #34C759;
  --ios-danger: #FF3B30;
  --ios-warning: #FF9500;
  --ios-gray-1: #8E8E93;
  --ios-gray-2: #AEAEB2;
  --ios-gray-3: #C7C7CC;
  --ios-gray-4: #D1D1D6;
  --ios-gray-5: #E5E5EA;
  --ios-gray-6: #F2F2F7;
  --ios-text-primary: #000000;
  --ios-text-secondary: #3C3C43;
  --ios-border-radius: 12px;
  --ios-safe-area-top: env(safe-area-inset-top, 44px);
  --ios-safe-area-bottom: env(safe-area-inset-bottom, 34px);
  --ios-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--ios-bg-color);
  color: var(--ios-text-primary);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

a {
  color: var(--ios-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.ios-container {
  position: relative;
  min-height: 100vh;
  padding-bottom: 88px; /* Height of tabbar + safe area */
}

/* Status Bar */
.ios-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background-color: var(--ios-bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  font-weight: 600;
}

.status-bar-time {
  font-size: 15px;
}

.status-bar-icons {
  display: flex;
  gap: 5px;
}

/* Header */
.ios-header {
  padding: 12px 16px;
  background-color: var(--ios-bg-color);
  position: relative;
  z-index: 99;
}

.ios-menu-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ios-primary);
}

.ios-logo {
  width: 36px;
  height: auto;
}

/* Side Menu */
.ios-sidemenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ios-sidemenu.active {
  pointer-events: auto;
  opacity: 1;
}

.ios-sidemenu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ios-sidemenu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--ios-card-bg);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.ios-sidemenu.active .ios-sidemenu-content {
  transform: translateX(0);
}

.ios-sidemenu-header {
  padding: 16px;
  display: flex;
  justify-content: flex-end;
}

.ios-sidemenu-close {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: var(--ios-gray-5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-menu-section {
  padding: 16px;
  border-bottom: 1px solid var(--ios-gray-5);
}

.ios-menu-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ios-gray-1);
  margin-bottom: 12px;
}

.ios-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-menu-item {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: var(--ios-text-primary);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.ios-menu-item:hover, .ios-menu-item:active {
  background-color: var(--ios-gray-6);
}

.ios-menu-empty {
  color: var(--ios-gray-2);
  font-size: 14px;
  padding: 8px 0;
}

.ios-menu-footer {
  padding: 24px 16px;
  margin-top: auto;
}

.ios-menu-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ios-danger);
  font-size: 16px;
  font-weight: 500;
}

/* Main Content */
.ios-content {
  padding: 16px;
  padding-bottom: 32px;
}

/* Cards */
.ios-card {
  background-color: var(--ios-card-bg);
  border-radius: var(--ios-border-radius);
  box-shadow: var(--ios-shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

/* Estilos modificados para la tarjeta de bienvenida */
.welcome-card {
  padding: 30px 20px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #0071e3 0%, #34aadc 100%);
  color: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.2);
  margin-bottom: 25px;
  overflow: hidden;
  border: none;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.welcome-profile {
  position: relative;
  z-index: 2;
}

.welcome-profile h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: white;
  letter-spacing: -0.5px;
}

.welcome-profile p {
  font-size: 16px;
  margin: 5px 0;
  color: rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.profile-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: white;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Sections */
.ios-section {
  margin-bottom: 28px;
}

.ios-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ios-section-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

.ios-section-header h2 img {
  width: 24px;
  height: 24px;
}

.ios-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background-color: var(--ios-gray-6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ios-gray-1);
  transition: all 0.2s ease;
}

.ios-refresh-btn:hover, .ios-refresh-btn:active {
  background-color: var(--ios-gray-5);
  color: var(--ios-primary);
}

/* Cards Container */
.ios-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Action Cards */
.ios-action-card {
  background-color: var(--ios-card-bg);
  border-radius: var(--ios-border-radius);
  box-shadow: var(--ios-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ios-action-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ios-card-content {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ios-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ios-card-info {
  flex: 1;
}

.ios-card-info h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.ios-card-info p {
  font-size: 14px;
  color: var(--ios-gray-1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ios-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--ios-success);
  animation: blink 1.5s infinite;
}

.ios-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: var(--ios-primary);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.ios-action-btn:hover, .ios-action-btn:active {
  background-color: #0062cc;
}

/* Card Colors */
.online-class .ios-card-icon {
  color: var(--ios-primary);
}

.assignments .ios-card-icon {
  color: var(--ios-success);
}

.quizzes .ios-card-icon {
  color: var(--ios-warning);
}

/* Empty State */
.ios-empty-state {
  text-align: center;
  padding: 32px 20px;
  background-color: var(--ios-card-bg);
  border-radius: var(--ios-border-radius);
  box-shadow: var(--ios-shadow);
}

.ios-empty-state img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}

.ios-empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ios-gray-1);
  max-width: 280px;
  margin: 0 auto;
}

/* Achievements Grid */
.ios-achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ios-achievement-card {
  background-color: var(--ios-card-bg);
  border-radius: var(--ios-border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--ios-shadow);
}

.ios-achievement-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-achievement-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ios-achievement-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ios-primary);
}

.ios-achievement-info p {
  font-size: 14px;
  color: var(--ios-gray-1);
}

/* Tab Bar */
.ios-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background-color: var(--ios-card-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  padding-top: 8px;
  border-top: 1px solid var(--ios-gray-5);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.ios-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ios-gray-1);
  width: 20%;
  text-align: center;
  font-size: 10px;
}

.ios-tab i {
  font-size: 20px;
}

.ios-tab.active {
  color: var(--ios-primary);
}

/* Modal */
.ios-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  display: none;
}

.ios-modal.active {
  display: block;
}

.ios-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ios-modal-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--ios-card-bg);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.ios-modal.active .ios-modal-container {
  transform: translateY(0);
}

.ios-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--ios-gray-5);
}

.ios-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.ios-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: var(--ios-gray-5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ios-gray-1);
}

.ios-modal-content {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Animation */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Media Queries */
@media (min-width: 768px) {
  .ios-content {
    max-width: 768px;
    margin: 0 auto;
  }

  .ios-achievements-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ios-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* Dark Mode - Versión suave */
@media (prefers-color-scheme: dark) {
  :root {
    --ios-bg-color: #F5F5F7;      /* Gris muy claro en lugar de negro */
    --ios-card-bg: #FFFFFF;        /* Blanco puro para las tarjetas */
    --ios-text-primary: #1D1D1F;   /* Casi negro para texto principal */
    --ios-text-secondary: rgba(0, 0, 0, 0.65); /* Texto secundario más suave */
    --ios-gray-1: #86868B;         /* Gris más claro */
    --ios-gray-2: #AEAEB2;         /* Mantener similar */
    --ios-gray-3: #C7C7CC;         /* Mantener similar */
    --ios-gray-4: #D1D1D6;         /* Mantener similar */
    --ios-gray-5: #E5E5EA;         /* Mantener similar */
    --ios-gray-6: #F2F2F7;         /* Mantener similar */
    
    /* Los colores de acentos puedes mantenerlos igual */
     --ios-primary: #007AFF;    
   --ios-secondary: #5AC8FA;   
   --ios-success: #34C759;     
  --ios-danger: #FF3B30;     
     --ios-warning: #FF9500;    
  }
}

/* Legacy Support - Clases originales */
.play {
  width: 45px;
  margin-top: -20px !important;
}

.mbltabs {
  display: none;
}

.thumbnail {
  border-radius: 20px !important;
}

.col-md-6 {
  width: 50%;
  margin-top: -45px;
}

.col-md-6mbl, .col-md-6mbl1, .col-md-6mbl2 {
  display: none;
}

.danger {
  color: var(--ios-danger) !important;
}

.mblShadow {
  box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.1) !important;
}

@media screen and (max-width: 500px) {
  .thumbnail1 { display: none; }
  .tabsmbl { display: none; }
  .pctabs { display: none; }
  .mbltabs { display: block; }
  .col-md-6mbl {
    display: block;
    margin-top: 40px !important;
  }
  .col-md-6mbl1, .col-md-6mbl2 {
    display: block;
    margin-top: 0px !important;
  }
  .col-md-6pc { display: none; }
}

@media screen and (min-width: 501px) and (max-width: 1000px) {
 .thumbnail1 { display: none; }
 .tabsmbl { display: none; }
 .pctabs { display: none; }
 .mbltabs { display: block; }
 .col-md-6mbl {
   display: block;
   margin-top: 40px !important;
 }
 .col-md-6mbl1, .col-md-6mbl2 {
   display: block;
   margin-top: 0px !important;
 }
 .col-md-6pc { display: none; }
 .danger { color: #e74c3c !important; }
 .mblShadow { box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.65) !important; }
}

/* Compatibilidad con Bootstrap */
.modal-dialog.ios-modal-dialog {
 margin: 10px auto;
 max-width: 90%;
 border-radius: var(--ios-border-radius);
 overflow: hidden;
}

.modal-content {
 border-radius: var(--ios-border-radius);
 border: none;
 overflow: hidden;
}

/* Soporte para clases antiguas */
.text-happy {
 color: var(--ios-success);
 font-weight: 500;
}

.text-danger {
 color: var(--ios-danger);
}

.hr_maestro {
 border: 0;
 height: 1px;
 background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.15), rgba(0,0,0,0));
 margin: 15px 0;
}

/* Ajustes específicos para iOS */
@supports (-webkit-touch-callout: none) {
 /* Estilos específicos para iOS */
 .ios-button, button, input[type="submit"], input[type="button"] {
   -webkit-appearance: none;
 }
 
 /* Arreglos para notch en iPhone X o superior */
 .ios-status-bar {
   padding-top: env(safe-area-inset-top);
 }
 
 .ios-tabbar {
   padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
 }
}

/* Animaciones */
.blinking {
 -webkit-animation: 1s blink ease infinite;
 -moz-animation: 1s blink ease infinite;
 -ms-animation: 1s blink ease infinite;
 -o-animation: 1s blink ease infinite;
 animation: 1s blink ease infinite;
}

@keyframes blink {
 from, to { opacity: 0; }
 50% { opacity: 1; }
}

@-moz-keyframes blink {
 from, to { opacity: 0; }
 50% { opacity: 1; }
}

@-webkit-keyframes blink {
 from, to { opacity: 0; }
 50% { opacity: 1; }
}

@-ms-keyframes blink {
 from, to { opacity: 0; }
 50% { opacity: 1; }
}

@-o-keyframes blink {
 from, to { opacity: 0; }
 50% { opacity: 1; }
}

/* Transiciones */
.ios-transition {
 transition: all 0.3s ease;
}

/* Estilos para formularios */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
 appearance: none;
 -webkit-appearance: none;
 background-color: var(--ios-gray-6);
 border: 1px solid var(--ios-gray-4);
 border-radius: 8px;
 padding: 12px;
 font-size: 16px;
 color: var(--ios-text-primary);
 width: 100%;
 margin-bottom: 16px;
}

input:focus,
textarea:focus,
select:focus {
 outline: none;
 border-color: var(--ios-primary);
 box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.25);
}

```css
/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Espaciado */
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 16px; }
.m-4 { margin: 24px; }
.m-5 { margin: 32px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 16px; }
.ml-4 { margin-left: 24px; }
.ml-5 { margin-left: 32px; }

.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 16px; }
.mr-4 { margin-right: 24px; }
.mr-5 { margin-right: 32px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 32px; }

.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }
.pt-5 { padding-top: 32px; }

.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 16px; }
.pb-4 { padding-bottom: 24px; }
.pb-5 { padding-bottom: 32px; }

.pl-1 { padding-left: 4px; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 16px; }
.pl-4 { padding-left: 24px; }
.pl-5 { padding-left: 32px; }

.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 16px; }
.pr-4 { padding-right: 24px; }
.pr-5 { padding-right: 32px; }

/* Flexbox */
.d-flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Visibilidad */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.visibility-hidden { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Posicionamiento */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Bordes y sombras */
.border { border: 1px solid var(--ios-gray-4); }
.border-top { border-top: 1px solid var(--ios-gray-4); }
.border-bottom { border-bottom: 1px solid var(--ios-gray-4); }
.border-left { border-left: 1px solid var(--ios-gray-4); }
.border-right { border-right: 1px solid var(--ios-gray-4); }
.border-0 { border: 0 !important; }
.rounded { border-radius: var(--ios-border-radius); }
.rounded-circle { border-radius: 50%; }
.shadow-sm { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: var(--ios-shadow); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }

/* Colores de texto */
.text-primary { color: var(--ios-primary); }
.text-secondary { color: var(--ios-secondary); }
.text-success { color: var(--ios-success); }
.text-danger { color: var(--ios-danger); }
.text-warning { color: var(--ios-warning); }
.text-muted { color: var(--ios-gray-1); }

/* Fondos */
.bg-primary { background-color: var(--ios-primary); }
.bg-secondary { background-color: var(--ios-secondary); }
.bg-success { background-color: var(--ios-success); }
.bg-danger { background-color: var(--ios-danger); }
.bg-warning { background-color: var(--ios-warning); }
.bg-light { background-color: var(--ios-gray-6); }
.bg-dark { background-color: var(--ios-gray-1); }
.bg-white { background-color: var(--ios-card-bg); }
.bg-transparent { background-color: transparent; }

/* Tipografía */
.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }
.font-italic { font-style: italic; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-decoration-none { text-decoration: none; }
.text-break { word-break: break-word; }
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tamaños de fuente */
.fs-xs { font-size: 12px; }
.fs-sm { font-size: 14px; }
.fs-md { font-size: 16px; }
.fs-lg { font-size: 18px; }
.fs-xl { font-size: 20px; }
.fs-xxl { font-size: 24px; }

/* Grids */
.ios-grid {
  display: grid;
  gap: 16px;
}

.ios-grid-1 { grid-template-columns: repeat(1, 1fr); }
.ios-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ios-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ios-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
  .ios-grid-md-2 { grid-template-columns: repeat(2, 1fr); }
  .ios-grid-md-3 { grid-template-columns: repeat(3, 1fr); }
  .ios-grid-md-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Compatibilidad para elementos específicos */
.abre-cursos {
  display: none;
}

@media screen and (max-width: 768px) {
  .abre-cursos {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--ios-primary);
    color: white;
    border-radius: var(--ios-border-radius);
    font-weight: 600;
    margin: 16px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
  }
  
  .div_cursos {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ios-card-bg);
    z-index: 150;
    padding: 16px;
    overflow-y: auto;
  }
}

```css
/* Fix para el botón de cierre de modal */
.modal-header .close {
  background: var(--ios-gray-5);
  width: 30px;
  height: 30px;
  border-radius: 15px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -10px;
}

/* Ajustes para elementos específicos del Portal Educativo */
.h2_pro {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.h2_pro img {
  width: 24px;
  height: 24px;
}

.box_s, .box_s22 {
  background-color: var(--ios-card-bg);
  border-radius: var(--ios-border-radius);
  box-shadow: var(--ios-shadow);
  margin-bottom: 20px;
  padding: 16px;
}

.caption {
  padding: 8px;
}

/* Soporte para versiones anteriores de Bootstrap */
.btn-primary {
  background-color: var(--ios-primary);
  border-color: var(--ios-primary);
  color: white;
  border-radius: 8px;
}

.btn-danger {
  background-color: var(--ios-danger);
  border-color: var(--ios-danger);
  color: white;
  border-radius: 8px;
}

.btn-success {
  background-color: var(--ios-success);
  border-color: var(--ios-success);
  color: white;
  border-radius: 8px;
}

.form-control {
  border-radius: 8px;
  border-color: var(--ios-gray-4);
  padding: 10px 12px;
}

.form-control:focus {
  border-color: var(--ios-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
}

/* Ajustes para diseño responsivo */
@media (max-width: 768px) {
  .col-md-offset-3 {
    margin-left: 0;
  }
  
  .dashboard_container {
    padding-top: 60px;
  }
  
  .h2_pro {
    font-size: 18px;
  }
  
  .h2_pro img {
    width: 20px;
    height: 20px;
  }
}

/* Fix para el problema de acentos en textos */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cursores */
.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-scroll {
  overflow: scroll;
}

.overflow-visible {
  overflow: visible;
}

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* Transiciones adicionales */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: transform 0.3s;
}

.slide-enter, .slide-leave-to {
  transform: translateX(-100%);
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Personalización SVG */
.svg-icon {
  fill: currentColor;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Forzar colores en modo oscuro para ciertos elementos */
@media (prefers-color-scheme: dark) {
  .force-dark-text {
    color: var(--ios-text-primary) !important;
  }
  
  .force-light-bg {
    background-color: var(--ios-card-bg) !important;
  }
}

/* Soporte para impresión */
@media print {
  .no-print {
    display: none !important;
  }
  
  .ios-container {
    padding: 0;
    margin: 0;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .ios-card, .box_s, .box_s22 {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .ios-tabbar, .ios-status-bar {
    display: none;
  }
}
