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

  :root {
    /* Paleta */
    --bg-app: #f3f6fc;    
    --card-bg: #ffffff;
    --primary: #4f46e5;    
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --accent: #0ea5e9;     
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    
    /* Estados */
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #fbbf24;
    
    /* UI Helpers */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  * { box-sizing: border-box; }
  html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
  body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-app); 
    color: var(--text-main); 
    margin: 0; 
    padding: 20px;
    min-height: 100vh;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
  }

  /* --- HEADER --- */
  header {
    width: 100%;
    max-width: 1200px;
    background: var(--card-bg);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.5);
  }

  .header-brand h1 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
  .header-brand span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
  
  .score-badge {
    background: var(--bg-app);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: right;
  }
  .score-badge .label { font-size: 10px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
  .score-badge .value { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; }

  /* Pestañas de Navegación */
  .nav-tabs { display: flex; gap: 8px; background: #f1f5f9; padding: 4px; border-radius: var(--radius-md); }
  .tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
  }
  .tab-btn:hover { color: var(--primary); background: rgba(255,255,255,0.5); }
  .tab-btn.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  /* --- LAYOUT PRINCIPAL --- */
  .layout { 
    width: 100%; 
    max-width: 1200px; 
    display: grid; 
    grid-template-columns: 1fr 340px; 
    gap: 24px; 
  }

  /* Contenedores */
  .task-container, .card-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: 20px;
    transition: var(--transition);
  }

  /* --- LISTA DE TAREAS  --- */
  .task-list { display: flex; flex-direction: column; gap: 12px; }
  
  .task-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    align-items: center;
    transition: var(--transition);
    position: relative;
  }
  .task-item:hover { 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--primary);
  }
  .task-item.done {
    background: #f8fafc;
    border-color: transparent;
    opacity: 0.7;
  }
  .task-item.critical-task { border-left: 4px solid var(--danger); background: #fef2f2; }
  /* Banda de tarea reasignada */
.reassigned-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #78350f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.task-item.is-reassigned {
  border-top: none !important;
  border-radius: 0 0 12px 12px;
  margin-top: 0 !important;
}
.task-item-wrapper {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  border: 1.5px solid #fcd34d;
}

  /* Checkbox Personalizado */
  .check-box {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer;
    transition: var(--transition);
  }
  .check-box:hover { background: #e2e8f0; }
  .check-box.active { 
    background: var(--success); 
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
  }

  .tab-text, .history-date {
    text-transform: capitalize;
}

/* BOTONES DE SECCIÓN COLAPSABLE */
.task-section-toggle {
    width: 100%;
    background: #F2F2F7;
    border: none;
    padding: 12px 15px;
    border-radius: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #1C1C1E;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.task-section-toggle:active {
    background: #E5E5EA;
}

.task-section-toggle .count-badge {
    background: #E5E5EA;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #8E8E93;
}

/* Animación de apertura suave */
.collapsible-content {
    display: none; 
    animation: slideDown 0.3s ease-out;
}

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

  /* Etiquetas y Texto */
  .bonus-tag { 
    background: linear-gradient(135deg, #8b5cf6, #d946ef); 
    color: white; padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; 
  }
  /* tarea marcada quienn completo */
  .task-item.done {
  background-color: #f8fafc !important;
  border-left: 5px solid #22c55e !important; 
}

  /* --- SIDEBAR & STAFF --- */
  .staff-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; margin-bottom: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
  }
  .staff-row:hover { background: #f8fafc; }
  .staff-row.active { 
    background: #eff6ff; 
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
  }
  

  /* Barra XP */
  .xp-bar { height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 6px; overflow: hidden; }
  .xp-fill { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

  /* Badges de Estado */
  .day-off-badge {
    font-size: 10px; padding: 4px 10px; border-radius: 20px; font-weight: 600;
    background: #e2e8f0; color: var(--text-muted); cursor: pointer; transition: 0.2s;
  }
  .day-off-badge.resting { background: #fee2e2; color: var(--danger); }
  .day-off-badge:hover { filter: brightness(0.95); }

  /* Iluminación para las pestañas del Header */
.header-tabs .tab-btn.active {
  background: var(--accent) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(2, 80, 196, 0.966);
}

/* Iluminación para las sub-pestañas (Hoy/Adelantar) */
.nav-tabs:not(.header-tabs) .tab-btn.active {
  background: var(--accent) !important;
  color: white !important;
}

@keyframes gold-shimmer {
  0% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.8; }
}

.leader-effect {
  animation: gold-shimmer 2s infinite ease-in-out;
}

  /* Botones de Acción */
  .btn-action {
    width: 100%; padding: 14px; border: none; border-radius: var(--radius-md);
    font-weight: 600; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
  }
  .btn-print { background: var(--text-main); color: white; }
  .btn-print:hover { background: black; transform: translateY(-1px); }
  .btn-csv { background: white; border: 1px solid var(--border-light); color: var(--text-muted); }
  .btn-csv:hover { border-color: var(--primary); color: var(--primary); }
  .btn-reset {
  background: none;
  border: 1px solid transparent;
  color: #94a3b8; 
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 15px;
  padding: 8px;
  width: 100%;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none; 
}

.btn-reset:hover {
  background: #fef2f2; 
  color: #ef4444;   
  border-color: #fecaca;
}

/* ETIQUETAS DE HORARIO EN CALENDARIO */
.cal-shift-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    margin-bottom: 4px;
    display: inline-block;
    width: fit-content;
}

.cal-shift-work { background: #E0F2FE; color: #0284C7; border: 1px solid #BAE6FD; }
.cal-shift-off { background: #F3F4F6; color: #64748B; border: 1px dashed #CBD5E1; }
.cal-shift-vac { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }

  /* --- ALERTAS --- */
  #priorityAlert { 
    width: 100%; max-width: 1200px;
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
    padding: 15px; border-radius: var(--radius-md); text-align: center;
    margin-bottom: 20px; display: none;
    animation: bounce 0.5s;
  }

  /* --- TIENDA DE PREMIOS --- */
.prize-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
  @media (max-width:600px) { .prize-grid { grid-template-columns:repeat(2, 1fr); } }
  .prize-card { background:white; border-radius:18px; border:1.5px solid #F2F2F7; transition:all 0.2s; text-align:center; padding:20px 14px 16px; position:relative; overflow:hidden; }
  .prize-card.affordable { border-color:#FFD60A; box-shadow:0 4px 20px rgba(255,214,10,0.2); }
  .prize-card.locked { opacity:0.7; }
  .btn-buy { margin-top:12px; width:100%; padding:9px; border-radius:10px; border:none; font-weight:700; font-size:12px; cursor:default; }
  .prize-card.affordable .btn-buy { background:linear-gradient(135deg,#FF9500,#FF6B00); color:white; cursor:pointer; box-shadow:0 4px 10px rgba(255,149,0,0.35); }
  .prize-card.affordable .btn-buy:hover { transform:translateY(-1px); box-shadow:0 6px 14px rgba(255,149,0,0.4); }
  .prize-card.locked .btn-buy { background:#F2F2F7; color:#C7C7CC; }

  /* --- RESPONSIVE --- */
  @media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    header { justify-content: center; text-align: center; }
    .header-brand { width: 100%; margin-bottom: 10px; }
    .nav-tabs { width: 100%; justify-content: center; }
  }
  /* Contenedor principal de Perfil estilo Tarjeta */
.profile-card-rpg {
  background: #1e293b;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  color: white;
  margin-bottom: 25px;
  border: 1px solid rgba(255,255,255,0.1);
}

.profile-avatar {
  font-size: 60px;
  margin-bottom: 10px;
  display: block;
}

.profile-header h2 {
  margin: 5px 0;
  font-size: 24px;
  letter-spacing: 1px;
}

.profile-rank-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.profile-stats-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.stat-item small {
  display: block;
  font-size: 10px;
  color: #1e293b;
  margin-bottom: 4px;
  font-weight: 700;
}

.stat-item b {
  font-size: 18px;
}

/* Historial */
.history-container {
  background: rgba(156, 156, 156, 0.2);
  border-radius: 12px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.history-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}

/* Estilo para el botón de admin cuando está en el nav */
.nav-tabs .tab-btn:last-child {
    opacity: 0.6;
    font-size: 16px;
    padding: 8px;
}

.nav-tabs .tab-btn:last-child:hover {
    opacity: 1;
}

.history-row:last-child { border-bottom: none; }

.history-row .points-pos { color: #4ade80; font-weight: 800; }
.history-row .points-neg { color: #f87171; font-weight: 800; }
.task-item[style*="border: 2px solid"] {
    animation: pulse-border 2s infinite;
}
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10000;
  font-weight: 600;
  font-size: 14px;
}

.toast-active {
  transform: translateX(-50%) translateY(0);
}

.toast-error { border-left: 4px solid #ef4444; }
.toast-success { border-left: 4px solid #22c55e; }

/* Estilos para el Notificador (Toast) */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.toast-active {
    transform: translateX(-50%) translateY(0);
}

.toast-error { border-bottom: 4px solid #ef4444; }
.toast-success { border-bottom: 4px solid #22c55e; }
.toast-warning { border-bottom: 4px solid #f59e0b; }

/* Estilos para los puntos del PIN */
.dot {
    width: 15px; 
    height: 15px; 
    border-radius: 50%; 
    border: 2px solid #cbd5e1;
    transition: all 0.2s;
}

/* Efecto de presionar botones del teclado */
.pin-btn:active {
    transform: scale(0.9);
    background: #cbd5e1 !important;
}

/* Contenedor principal del menú */
.header-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-top: 1px solid #f2f2f7;
}

/* Estilo base del botón */
.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}


.modal-content { 
    width: 95%; 
    max-width: 650px;
    padding: 25px;
}

/* Iconos  */
.tab-icon {
    font-size: 26px;
    transition: transform 0.2s ease;
}

/* Avatar en el menú */
.nav-avatar {
    width: 32px; 
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* OCULTAR TEXTO POR DEFECTO */
.tab-text {
    font-size: 11px;
    font-weight: 700;
    color: #007AFF;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 2px;
}

/* MOSTRAR TEXTO AL PASAR EL MOUSE (HOVER) */
.tab-btn:hover .tab-text {
    opacity: 1;
    max-height: 20px;
    margin-top: 5px;
}

/* EFECTO EN EL ICONO AL PASAR EL MOUSE */
.tab-btn:hover .tab-icon, 
.tab-btn:hover .nav-avatar {
    transform: translateY(-3px); 
}

/* Estilo para el botón activo siempre mostrando texto  */
.tab-btn.active .tab-text {
    opacity: 1;
    max-height: 20px;
    color: #007AFF;
}

/* Forzamos el ancho del contenedor interno del modal */
#admin-modal > div {
    width: 90% !important;
    max-width: 700px !important; 
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s ease;
}

/* Ajuste para que la lista de abajo no se desborde */
#admin-tasks-list-container {
    max-height: 300px;
    overflow-y: auto;  
    padding-right: 5px;
}

/* Efecto para las tarjetas de control */
.control-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #007AFF !important;
}

.control-card:active {
    transform: scale(0.96);
    background-color: #f9f9f9 !important;
}

/* Ajuste de iconos dentro de las tarjetas */
.control-card div:first-child {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
}

.shake-error {
  animation: shake 0.3s ease-in-out;
  border: 2px solid #ff3b30 !important;
}

@keyframes pulse-border {
    0% { border-color: var(--accent); }
    50% { border-color: #93c5fd; }
    100% { border-color: var(--accent); }
}
  @keyframes bounce { 0%{transform:scale(0.95);opacity:0} 70%{transform:scale(1.02)} 100%{transform:scale(1)} }

  /* ESTILOS WFM INTEGRADOS */
#modal-wfm {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4); 
    padding: 20px;
    box-sizing: border-box;
    align-items: center; 
}

/* Contenedor Principal (La "Hoja" de Papel) */
#wfm-modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 1200px;
    height: 90vh;     
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Cabecera del Modal */
.wfm-header {
    padding: 20px 24px;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid #E5E5EA;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    z-index: 20;
}

/* Área de Contenido Scrollable */
#wfm-content {
    flex: 1; 
    overflow: auto; 
    padding: 0; 
    background: #F5F5F7; 
}

/* --- TABLA RESPONSIVE --- */
.wfm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Cabecera de la Tabla (Días) - STICKY TOP */
.wfm-table thead th {
    position: sticky;
    top: 0;
    background: #F5F5F7; 
    color: #86868B;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 8px;
    border-bottom: 1px solid #D1D1D6;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* Primera Columna (Empleados) - STICKY LEFT */
.wfm-table tbody th, 
.col-employee {
    position: sticky;
    left: 0;
    background: #FFFFFF;
    z-index: 5;
    border-right: 1px solid #E5E5EA;
    box-shadow: 4px 0 8px rgba(0,0,0,0.02); 
}

/* Intersección Esquina Superior Izquierda */
.wfm-table thead th:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    background: #F5F5F7;
    border-right: 1px solid #D1D1D6;
}

/* Celdas del Cuerpo */
.wfm-table td {
    padding: 4px; 
    border-bottom: 1px solid #E5E5EA;
    border-right: 1px solid transparent; 
    background: white;
}

/* --- TARJETAS DE TURNO (SHIFT PILLS) --- */
.shift-box {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    border-radius: 8px; 
    min-height: 48px;  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shift-box:hover {
    background: #F2F2F7;
    border-color: #007AFF;
    transform: scale(0.98); 
}

/* Variantes de Estado */
.shift-box.off { background: #F9FAFB; border-style: dashed; border-color: #D1D1D6; opacity: 0.7; }
.shift-box.vac { background: #ECFDF5; border-color: #A7F3D0; }
.shift-box.modified { background: #EFF6FF; border-color: #BFDBFE; border-left: 3px solid #007AFF; }

/* Tipografía dentro de la celda */
.shift-time { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; color: #1C1C1E; letter-spacing: -0.3px; }
.shift-old { font-size: 9px; color: #8E8E93; text-decoration: line-through; margin-bottom: 1px; }
.shift-meta { display: flex; gap: 4px; margin-top: 2px; }

/* Tags Ultra Compactos */
.mini-tag { font-size: 8px; font-weight: 800; padding: 1px 4px; border-radius: 4px; text-transform: uppercase; }
.tag-extra { background: #DCFCE7; color: #166534; }
.tag-late  { background: #FEF2F2; color: #991B1B; }
.tag-rh    { background: #DBEAFE; color: #1D4ED8; }   /* TXTRH - Recuperó horas */
.tag-sh    { background: #FEE2E2; color: #991B1B; }   /* TXTSH - Solicitó horas */
.tag-rd    { background: #EDE9FE; color: #6D28D9; }   /* TXTRD - Recuperó día */
.tag-sd    { background: #FFF7ED; color: #C2410C; }   /* TXTSD - Solicitó día */
/* Scrollbar invisible */
#wfm-content::-webkit-scrollbar { width: 6px; height: 6px; }
#wfm-content::-webkit-scrollbar-thumb { background: #D1D1D6; border-radius: 10px; }

/* --- MODAL EDITAR  --- */
#wfm-edit-modal {
    backdrop-filter: blur(12px); /* Efecto vidrio esmerilado */
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease;
    z-index: 50000 !important; /* Siempre encima de todo */
}

.ios-card {
    background: #FFFFFF;
    width: 340px;
    border-radius: 24px; /* Bordes muy redondeados */
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    padding: 24px;
    transform: scale(1);
    animation: modalPop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Títulos y Texto */
.ios-title { font-size: 19px; font-weight: 700; color: #1C1C1E; margin: 0 0 4px 0; letter-spacing: -0.5px; }
.ios-subtitle { font-size: 13px; color: #8E8E93; margin-bottom: 20px; font-weight: 500; }
.ios-label { font-size: 11px; font-weight: 700; color: #8E8E93; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }

/* Inputs */
.ios-input {
    width: 100%;
    background: #F2F2F7; /* Gris muy suave */
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px; /* Evita zoom en móviles */
    color: #1C1C1E;
    font-weight: 500;
    box-sizing: border-box;
    transition: background 0.2s;
}
.ios-input:focus { background: #E5E5EA; outline: none; }

/* Checkboxes como Botones Seleccionables */
.ios-toggle-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #F2F2F7;
    padding: 4px;
    border-radius: 12px;
}
.ios-checkbox-wrapper {
    flex: 1;
    position: relative;
}
.ios-checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    z-index: 2;
}
/* El diseño visual del checkbox */
.ios-checkbox-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
    background: transparent;
    transition: all 0.2s;
}
/* Estado seleccionado */
.ios-checkbox-wrapper input:checked + .ios-checkbox-btn {
    background: #FFFFFF;
    color: #007AFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sección de Ajustes Extra */
.ios-section {
    border-top: 1px solid #E5E5EA;
    margin-top: 20px;
    padding-top: 15px;
}

/* Botones de Acción */
.ios-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}
.ios-btn-primary {
    flex: 1;
    background: #007AFF;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ios-btn-primary:active { opacity: 0.7; }

.ios-btn-cancel {
    background: transparent;
    color: #007AFF;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    padding: 0 10px;
}
@media (max-width: 600px) {
  body {
    padding: 8px;
  }
  header {
    padding: 10px 8px;
    gap: 8px;
    border-radius: 12px;
    width: calc(100vw - 16px);
    box-sizing: border-box;
  }
  .header-tabs {
    padding: 6px 2px;
    gap: 0;
    width: 100%;
    overflow: hidden;
  }
  .tab-btn {
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    max-width: 60px;
  }
  .tab-icon {
    font-size: 18px;
    line-height: 1;
  }
  .nav-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }
  .tab-text,
  .tab-btn:hover .tab-text,
  .tab-btn.active .tab-text {
    display: none !important;
  }
  header {
  overflow: hidden;
}
}
