    body { font-family: 'Inter', Arial, sans-serif; }

    /* ── HERO ── */
    .hero-tareas {
      background: linear-gradient(135deg, #0f172a 0%, #1a0f2e 50%, #1e293b 100%);
      padding: 50px 50px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      border-bottom: 1px solid #2d1f4a;
    }
    .hero-tareas-texto h1 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
    .hero-tareas-texto p { color: #94a3b8; font-size: 0.95rem; }
    .alumno-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3);
      border-radius: 20px; padding: 5px 14px; font-size: 0.82rem; color: #c084fc; margin-bottom: 14px;
    }
    .stats-tareas { display: flex; gap: 16px; }
    .stat-card {
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px; padding: 16px 22px; text-align: center; min-width: 105px; transition: 0.3s;
    }
    .stat-card:hover { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.4); }
    .stat-valor { font-size: 1.9rem; font-weight: 800; display: block; }
    .sv-total     { color: #a78bfa; }
    .sv-pendiente { color: #f97316; } /* Naranja */
    .sv-entregada { color: #22c55e; } /* Verde */
    .sv-vencida   { color: #ef4444; } /* Rojo */
    .stat-label { font-size: 0.72rem; color: #64748b; margin-top: 3px; display: block; text-transform: uppercase; letter-spacing: 0.05em; }

    /* ── CALENDARIO ── */
    .calendario-container {
      padding: 40px 50px;
      background: #0f172a;
    }
    .calendario-wrapper {
      background: #fdfbf7; /* Blanco crema */
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
      color: #1e293b;
    }
    .calendario-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .calendario-header h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; text-transform: capitalize; }
    .cal-nav-btn {
      background: #e2e8f0; border: none; padding: 8px 16px; border-radius: 8px;
      font-weight: 600; color: #334155; cursor: pointer; transition: 0.2s;
    }
    .cal-nav-btn:hover { background: #cbd5e1; }
    
    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 8px;
    }
    .cal-dia-head {
      text-align: center; font-weight: 700; font-size: 0.85rem; color: #64748b;
      padding-bottom: 10px;
    }
    .cal-dia {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      min-height: 100px;
      padding: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .cal-dia:hover {
      box-shadow: 0 6px 12px rgba(0,0,0,0.1);
      transform: translateY(-2px);
      border-color: #cbd5e1;
    }
    .cal-dia.empty { background: transparent; border: none; cursor: default; box-shadow: none; transform: none; }
    .dia-num { font-size: 0.9rem; font-weight: 600; color: #334155; margin-bottom: 4px; }
    .dia-hoy { background: #0ea5e9; color: white; border-radius: 50%; padding: 2px 6px; }

    /* Tags Tareas en Calendario */
    .cal-tarea {
      font-size: 0.7rem;
      padding: 4px 6px;
      border-radius: 4px;
      color: white;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 2px;
    }
    .cal-tarea.t-pendiente { background: #f97316; }
    .cal-tarea.t-acabada { background: #22c55e; }
    .cal-tarea.t-vencida { background: #ef4444; }
    .cal-tarea.t-evento { background: #64748b; }

    /* ── LISTA CONTROLES ── */
    .lista-tareas-container {
      padding: 0 50px 60px;
      background: #0f172a;
    }
    .controles-lista {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      padding: 20px 0;
      border-bottom: 1px solid #1e293b;
      margin-bottom: 24px;
    }
    .filtros-tab { display: flex; gap: 6px; }
    .tab-btn {
      padding: 8px 18px; border-radius: 8px; border: 1px solid #334155;
      background: transparent; color: #94a3b8; font-size: 0.85rem; font-weight: 500;
      cursor: pointer; transition: 0.2s; font-family: 'Inter', Arial, sans-serif;
    }
    .tab-btn:hover { background: #1e293b; color: #e2e8f0; }
    .tab-btn.activo { background: #a855f7; border-color: #a855f7; color: #fff; }
    .buscador {
      display: flex; align-items: center; gap: 8px;
      background: #1e293b; border: 1px solid #334155; border-radius: 8px;
      padding: 8px 14px; min-width: 240px; transition: 0.2s;
    }
    .buscador:focus-within { border-color: #a855f7; }
    .buscador input {
      background: none; border: none; outline: none; color: #e2e8f0;
      font-size: 0.88rem; font-family: 'Inter', Arial, sans-serif; width: 100%;
    }

    /* ── LISTA DE TAREAS ── */
    .tarea-item {
      background: #1e293b; border: 1px solid #334155; border-radius: 12px;
      padding: 16px 22px; margin-bottom: 10px; display: flex; align-items: center; gap: 18px;
      transition: 0.2s; cursor: pointer;
    }
    .tarea-item:hover { background: #243447; border-color: #475569; }
    .tarea-item.pendiente { border-left: 4px solid #f97316; }
    .tarea-item.acabada { border-left: 4px solid #22c55e; opacity: 0.75; }
    .tarea-item.vencida { border-left: 4px solid #ef4444; }
    .tarea-item.evento { border-left: 4px solid #64748b; }

    .tarea-info { flex: 1; min-width: 0; }
    .tarea-nombre { font-size: 1rem; font-weight: 600; color: #e2e8f0; margin-bottom: 4px; }
    .tarea-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: #94a3b8; }
    .t-badge-asig { background: #334155; color: #cbd5e1; padding: 2px 8px; border-radius: 12px; font-weight: 500; }
    
    .tarea-derecha { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
    .estado-pill { font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
    .pill-pendiente  { background: rgba(249,115,22,0.15); color: #f97316; }
    .pill-acabada  { background: rgba(34,197,94,0.15);  color: #4ade80; }
    .pill-vencida    { background: rgba(239,68,68,0.15);  color: #f87171; }
    .pill-evento     { background: rgba(100,116,139,0.15); color: #94a3b8; }

    /* ── MODAL ── */
    .overlay-modal {
      display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
      z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(4px);
    }
    .overlay-modal.visible { display: flex; }
    .modal {
      background: #1e293b; border: 1px solid #334155; border-radius: 16px;
      padding: 36px; width: 100%; max-width: 450px; box-shadow: 0 25px 60px rgba(0,0,0,0.5);
      animation: modalEntrada 0.3s ease;
    }
    @keyframes modalEntrada { from { opacity: 0; transform: translateY(-20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
    .modal h2 { font-size: 1.3rem; margin-bottom: 24px; color: #fff; }
    .campo-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
    .campo-form label { font-size: 0.82rem; color: #94a3b8; font-weight: 500; }
    .campo-form input, .campo-form select {
      background: #0f172a; border: 1px solid #334155; border-radius: 8px; color: #e2e8f0;
      padding: 10px 14px; font-size: 0.9rem; font-family: 'Inter', Arial, sans-serif; transition: 0.2s;
    }
    .campo-form input:focus, .campo-form select:focus { outline: none; border-color: #a855f7; }
    .modal-acciones { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
    .btn-m { flex: 1; border: none; padding: 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: 0.2s; font-family: inherit; color: white; min-width: 45%; }
    .btn-guardar { background: #0ea5e9; }
    .btn-guardar:hover { background: #0284c7; }
    .btn-cancelar { background: transparent; border: 1px solid #334155; color: #94a3b8; }
    .btn-cancelar:hover { background: #334155; color: #fff; }
    .btn-finalizar { background: #22c55e; }
    .btn-finalizar:hover { background: #16a34a; }
    .btn-eliminar { background: transparent; border: 1px solid #ef4444; color: #ef4444; }
    .btn-eliminar:hover { background: #ef4444; color: white; }
